﻿.qr-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}


.qr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 1.25rem;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}

.qr-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
  padding: 1.25rem;
  min-height: 0;
}

.qr-options {
  overflow: auto;
}

.qr-panel-header {
  margin-bottom: 1rem;
}

.qr-panel-header h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
}

.qr-panel-header p,
.qr-form-title p,
.qr-download-hint {
  color: #64748b;
  font-size: 0.92rem;
}

.qr-type-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.qr-type-btn {
  position: relative;
  min-height: 42px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  color: #0f172a;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  padding: 0.42rem 0.35rem;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.qr-type-btn i {
  color: #10b981;
  font-size: 0.95rem;
}

.qr-type-btn strong {
  font-size: 0.72rem;
  line-height: 1.15;
}


.qr-type-btn:hover,
.qr-type-btn.active {
  border-color: #10b981;
  background: #ecfdf5;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}

.qr-form {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 1rem;
}

.qr-form-title h3 {
  color: #00345a !important;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
}

.qr-form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.qr-field .form-label {
  color: #0f172a;
  font-weight: 700;
  font-size: 0.82rem;
}

.qr-field .form-control,
.qr-form .form-select {
  border-color: rgba(15, 23, 42, 0.16);
  min-height: 44px;
  box-shadow: none !important;
}

.qr-field textarea.form-control {
  min-height: 112px;
  resize: vertical;
}

.qr-field .form-control:focus,
.qr-form .form-select:focus {
  border-color: #10b981;
}

.qr-check {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.qr-note {
  background: #f0fdf9;
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #065f46;
  padding: 0.85rem;
  font-size: 0.9rem;
}

.qr-message {
  min-height: 24px;
  margin-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.qr-message.is-success {
  color: #047857;
}

.qr-message.is-danger {
  color: #b91c1c;
}

.qr-message.is-warning {
  color: #b45309;
}

.qr-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 100%;
}

.qr-canvas-wrap {
  position: relative;
  width: min(350px, 100%);
  aspect-ratio: 1;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: inset 0 0 0 10px #f8fafc, 0 18px 45px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qr-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-empty-state {
  position: absolute;
  inset: 10px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(236, 253, 245, 0.96));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #64748b;
  padding: 1rem;
}

.qr-empty-state i {
  color: #10b981;
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.qr-empty-state[hidden] {
  display: none;
}

.qr-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.qr-actions .btn {
  min-width: 132px;
  font-weight: 800;
}

@media (max-width: 1199.98px) {
  .qr-shell {
    overflow: auto;
  }

  .qr-grid {
    display: flex;
    flex-direction: column;
    align-content: initial;
    overflow: auto;
  }

  .qr-options {
    flex: 0 0 auto;
    min-height: 260px;
    max-height: 42dvh;
  }

  .qr-type-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .qr-result {
    flex: 0 0 auto;
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  .qr-shell {
    min-height: 0;
  }

  .qr-panel {
    padding: 1rem;
  }

  .qr-type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .qr-options {
    min-height: 315px;
    max-height: 46dvh;
  }
}

@media (max-width: 420px) {
  .qr-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qr-actions {
    width: 100%;
  }

  .qr-actions .btn {
    width: 100%;
  }
}





