/* ========================================================
   SAHA ARAÇ KONTROLÜ & HASAR BİLDİRİMİ (PWA)
   Mobil Öncelikli, Tek Elle Kullanıma Uygun Tasarım Sistemi
   ======================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* LIGHT THEME (Varsayılan) */
  --bg-app: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-subtle: #f8fafc;
  --bg-input: #f8fafc;
  --border: #e2e8f0;
  --border-focus: #3b82f6;

  --text-main: #0f172a;
  --text-sub: #475569;
  --text-muted: #94a3b8;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-text: #ffffff;

  --success: #10b981;
  --success-light: #ecfdf5;
  --success-text: #065f46;

  --warning: #f59e0b;
  --warning-light: #fffbeb;

  --danger: #ef4444;
  --danger-light: #fef2f2;
  --danger-text: #991b1b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --shadow-float: 0 -4px 16px rgba(0, 0, 0, 0.06);

  --nav-height: 68px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* DARK THEME */
[data-theme="dark"] {
  --bg-app: #090d16;
  --bg-card: #131b2e;
  --bg-card-subtle: #1c263d;
  --bg-input: #1a233a;
  --border: #263352;
  --border-focus: #60a5fa;

  --text-main: #f8fafc;
  --text-sub: #cbd5e1;
  --text-muted: #64748b;

  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: rgba(59, 130, 246, 0.15);
  --primary-text: #ffffff;

  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.15);
  --success-text: #34d399;

  --warning: #f59e0b;
  --warning-light: rgba(245, 158, 11, 0.15);

  --danger: #f87171;
  --danger-light: rgba(239, 68, 68, 0.15);
  --danger-text: #fca5a5;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.6);
  --shadow-float: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 24px);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  overflow-x: hidden;
}

/* TOP APP BAR */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.25s, border-color 0.25s;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.brand-text h1 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-main);
}

.brand-text span {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--success);
  display: inline-block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* CANLI SAHA SAATİ GÖSTERGESİ (TURKEY TIME) */
.live-clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.22);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.8px;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

[data-theme="dark"] .live-clock-badge {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

.live-clock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulse-clock 2s infinite;
}

@keyframes pulse-clock {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

@media (max-width: 480px) {
  .live-clock-badge {
    padding: 3px 6px;
    font-size: 11px;
    letter-spacing: 0.2px;
    gap: 4px;
  }
}


.icon-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.2s;
}

.icon-btn:active {
  transform: scale(0.92);
}

/* MAIN CONTENT CONTAINER */
.app-container {
  max-width: 540px;
  margin: 0 auto;
  padding: 16px;
}

/* SECTION TABS CONTENT */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* CARD CONTAINER */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  transition: background-color 0.25s, border-color 0.25s;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-info {
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge-success {
  background-color: var(--success-light);
  color: var(--success-text);
}

.badge-warning {
  background-color: var(--warning-light);
  color: var(--warning);
}

/* PHOTO SLOTS GRID (3-4 ADET ARAÇ FOTOĞRAFI) */
.photo-slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.photo-slot {
  position: relative;
  background-color: var(--bg-input);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.2s ease;
  user-select: none;
}

.photo-slot.filled {
  border-style: solid;
  border-color: var(--border);
  background-color: #000;
}

.photo-slot.qr-detected {
  border-color: var(--success);
  box-shadow: 0 0 0 2px var(--success-light);
}

.slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* YENİ İKİLİ ETKİLEŞİM ALANI (ÜST KAMERA, ALT GALERİ) */
.slot-zone-cam {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 8px 4px 4px 4px;
  text-align: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s;
}

.slot-zone-cam:active {
  background-color: rgba(37, 99, 235, 0.15);
}

.slot-zone-cam svg {
  color: var(--primary);
  margin-bottom: 3px;
}

.slot-zone-cam .slot-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.slot-cam-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.slot-zone-gal {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s;
}

.slot-zone-gal:active {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.slot-retake-actions {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  display: flex;
  gap: 6px;
  z-index: 6;
}

.btn-slot-retake {
  flex: 1;
  padding: 5px 6px;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  user-select: none;
}

.btn-slot-retake:active {
  background: rgba(37, 99, 235, 0.9);
}

.slot-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.15s;
}

.slot-remove-btn:active {
  transform: scale(0.85);
}

.slot-qr-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background-color: var(--success);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  animation: pulseBadge 1.5s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* VIN / ŞASE NO INPUT AREA */
.form-group {
  margin-bottom: 16px;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.char-counter {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
}

.char-counter.valid {
  color: var(--success);
}

.input-with-action {
  position: relative;
  display: flex;
  align-items: stretch;
}

.vin-input {
  width: 100%;
  background-color: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 44px 14px 14px;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-main);
  text-transform: uppercase;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vin-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.vin-input.qr-success {
  border-color: var(--success);
  background-color: var(--success-light);
}

.input-cam-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qr-info-box {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border);
  color: var(--text-sub);
}

.qr-info-box.detected {
  background-color: var(--success-light);
  border-color: var(--success);
  color: var(--success-text);
  font-weight: 500;
}

/* VISUALLY HIDDEN FILE INPUT (MOBİL VE ANDROID UYUMLU GİZLİ INPUT) */
.visually-hidden-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* QR KOD OKUYUCU EYLEM ÇUBUĞU */
.qr-scanner-action-bar {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.qr-big-scan-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer;
  text-align: center;
  border-radius: var(--radius-sm);
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.qr-big-scan-btn:active {
  transform: scale(0.97);
}

.qr-gal-scan-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer;
  text-align: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-main) !important;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.qr-gal-scan-btn:active {
  transform: scale(0.97);
}

/* BUTTONS (TEK ELLE KULLANIMA UYGUN BÜYÜK DOKUNMA ALANLARI) */
.btn {
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, opacity 0.2s, background-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-gmail {
  background: linear-gradient(135deg, #ea4335, #d93025);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(234, 67, 53, 0.35);
}

.btn-gmail:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background-color: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-danger {
  background-color: var(--danger-light);
  color: var(--danger-text);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.slot-compress-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #38bdf8;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 3px;
}


.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* BEKLEYEN TASLAKLAR LİSTESİ */
.drafts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.draft-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.draft-card:active {
  transform: scale(0.985);
  border-color: var(--primary);
}

.draft-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.draft-vin {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.draft-time {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.draft-preview-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.draft-thumb {
  width: 54px;
  height: 42px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background-color: #000;
}

.draft-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  font-size: 12px;
}

.draft-counts {
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 6px;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  margin-bottom: 12px;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13px;
  margin-bottom: 18px;
}

/* BOTTOM NAVIGATION BAR (SABİT ALT MENÜ) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background-color: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  box-shadow: var(--shadow-float);
  transition: background-color 0.25s, border-color 0.25s;
}

.nav-item {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  position: relative;
  transition: color 0.2s;
}

.nav-item svg {
  transition: transform 0.2s, stroke 0.2s;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active svg {
  transform: translateY(-2px);
  stroke: var(--primary);
}

.nav-badge {
  position: absolute;
  top: 8px;
  right: calc(50% - 22px);
  background-color: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* MODAL / BOTTOM SHEET (DETAY & RAPOR EKLEME) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  background-color: var(--bg-card);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.modal-overlay.open .modal-sheet {
  transform: translateY(0);
}

.modal-header {
  position: sticky;
  top: 0;
  background-color: var(--bg-card);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.modal-header h2 {
  font-size: 16px;
  font-weight: 700;
}

.modal-body {
  padding: 20px;
  flex: 1;
}

.modal-footer {
  position: sticky;
  bottom: 0;
  background-color: var(--bg-card);
  padding: 16px 20px calc(16px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

/* RAPOR FOTOĞRAFI YÜKLEME ALANI */
.report-upload-box {
  background-color: var(--bg-input);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  margin-top: 14px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.report-upload-box.has-file {
  border-style: solid;
  border-color: var(--success);
  padding: 10px;
}

.report-preview-img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background-color: #000;
  display: block;
  margin-bottom: 10px;
}

/* ========================================================
   FULLSCREEN WEBRTC CAMERA & REAL-TIME QR SCANNER MODALS
   (Harici kamera uygulamasını açmadan hafif tarayıcı içi çekim)
   ======================================================== */
.webrtc-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: #000000;
  z-index: 99999;
  display: none;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.webrtc-modal-overlay.active {
  display: flex !important;
}

.camera-view-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background-color: #000000;
}

#camera-capture-video,
#qr-scanner-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background-color: #000000;
}

/* Üst Kontrol Çubuğu */
.camera-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: max(16px, env(safe-area-inset-top, 16px)) 16px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
  pointer-events: auto;
}

.camera-title-badge {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 78%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.camera-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.camera-circle-btn:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.25);
}

.camera-circle-btn.torch-active {
  background: #facc15;
  color: #000000;
  border-color: #fef08a;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.8), 0 0 4px #ffffff;
  transform: scale(1.05);
}

.camera-circle-btn.torch-active:active {
  transform: scale(0.96);
  background: #eab308;
}

/* Flaş / Deklanşör Efekti */
.camera-flash-overlay {
  position: absolute;
  inset: 0;
  background-color: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  transition: opacity 0.1s ease-out;
}

.camera-flash-overlay.flash {
  opacity: 0.95;
}

/* Alt Kontrol Çubuğu & Deklanşör */
.camera-bottom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 20px 24px calc(24px + env(safe-area-inset-bottom, 0px)) 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  pointer-events: auto;
}

.camera-shutter-btn {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: transparent;
  border: 4px solid #ffffff;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.camera-shutter-btn:active {
  transform: scale(0.92);
}

.shutter-inner-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, background-color 0.1s ease;
}

.camera-shutter-btn:active .shutter-inner-ring {
  transform: scale(0.88);
  background-color: #cbd5e1;
}

.shutter-core-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #2563eb;
  opacity: 0.25;
}

/* ========================================================
   CANLI QR & ŞASE VİZÖRÜ (MARKET / BANKA ANLIK TARAYICI)
   ======================================================== */
.qr-viewfinder-wrapper {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.qr-viewfinder-frame {
  position: relative;
  width: min(72vw, 280px);
  height: min(72vw, 280px);
  border-radius: 20px;
  box-shadow: 0 0 0 4000px rgba(0, 0, 0, 0.58);
  overflow: hidden;
}

.corner-bracket {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: #22c55e;
  border-style: solid;
  pointer-events: none;
}

.corner-bracket.top-left {
  top: 0;
  left: 0;
  border-width: 4px 0 0 4px;
  border-top-left-radius: 16px;
}

.corner-bracket.top-right {
  top: 0;
  right: 0;
  border-width: 4px 4px 0 0;
  border-top-right-radius: 16px;
}

.corner-bracket.bottom-left {
  bottom: 0;
  left: 0;
  border-width: 0 0 4px 4px;
  border-bottom-left-radius: 16px;
}

.corner-bracket.bottom-right {
  bottom: 0;
  right: 0;
  border-width: 0 4px 4px 0;
  border-bottom-right-radius: 16px;
}

.qr-laser-line {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #22c55e 20%, #4ade80 50%, #22c55e 80%, transparent 100%);
  box-shadow: 0 0 14px #22c55e, 0 0 5px #4ade80;
  border-radius: 2px;
  animation: laserScanMove 2.2s ease-in-out infinite alternate;
}

@keyframes laserScanMove {
  0% {
    top: 10px;
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 13px);
    opacity: 0.8;
  }
}

.qr-scan-hint {
  margin-top: 32px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  max-width: 82%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}



/* TOAST NOTIFICATION */
.toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background-color: var(--text-main);
  color: var(--bg-card);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 90%;
  text-align: center;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background-color: var(--success);
  color: #fff;
}

.toast.error {
  background-color: var(--danger);
  color: #fff;
}

/* LOADING SPINNER */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* SETTINGS MODAL & FORM CONTROLS */
.form-input {
  width: 100%;
  background-color: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.setting-card {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* TOGGLE SWITCH */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--border);
  transition: 0.25s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background-color: var(--success);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-main);
}

/* ======================================================== */
/* DEPO & ARAÇ HAREKETİ SEGMENTED KONTROLLER                */
/* ======================================================== */
.segmented-control {
  display: flex;
  background-color: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 6px;
  width: 100%;
}

.segment-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  min-height: 42px;
}

.segment-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.segment-btn:active {
  transform: scale(0.97);
}

/* FOTOĞRAF SLOTLARI İÇİ BUTONLARI (KAMERA & GALERİ AYRIMI) */
.slot-actions-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  pointer-events: auto;
}

.btn-slot-action {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s;
  pointer-events: auto;
}

.btn-slot-action:active {
  transform: scale(0.92);
}

.btn-slot-cam {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.3);
}

.btn-slot-gal {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.3);
}

/* EK FOTOĞRAFLAR ALANI */
.extra-photos-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.extra-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.extra-photo-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: #000;
}

.extra-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.extra-photo-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background-color: rgba(0, 0, 0, 0.75);
  color: #10b981;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 4px;
}

.extra-photo-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(239, 68, 68, 0.85);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

/* CANLI MAİL ÖNİZLEME ROZETİ */
.mail-live-preview-box {
  margin-top: 12px;
  padding: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.mail-preview-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mail-preview-subject {
  font-family: monospace;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-main);
  background: var(--bg-card);
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  word-break: break-word;
}

.mail-preview-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
  white-space: pre-line;
}

/* VERSİYON ROZETİ */
.version-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.15);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.3);
  letter-spacing: 0.3px;
  vertical-align: middle;
}
[data-theme="dark"] .version-badge {
  background: rgba(96, 165, 250, 0.2);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.35);
}

/* ŞASE ARAMA & FİLTRELEME ÇUBUĞU */
.search-box-row {
  position: relative;
}
.search-box-row .search-input {
  font-size: 13px;
  padding-left: 12px;
  height: 42px;
  border-radius: var(--radius-md);
}

/* GÖNDERİLENLER GALERİ VE DETAY */
.sent-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.sent-photos-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  background: #000;
}
.sent-report-container img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #000;
  cursor: pointer;
}
.btn-copy-vin {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-copy-vin:active {
  transform: scale(0.9);
}

/* ======================================================== */
/* UYGULAMA GİRİŞ KİLİDİ (PIN EKRANI & NUMPAD)              */
/* ======================================================== */
.app-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
  user-select: none;
  -webkit-user-select: none;
}

.app-lock-overlay.unlocked {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  pointer-events: none;
}

.pin-lock-container {
  width: 100%;
  max-width: 340px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pin-lock-icon-wrapper {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(59, 130, 246, 0.15));
  border: 1.5px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.3);
}

.pin-lock-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.pin-lock-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 22px 0;
}

/* PIN NOKTALARI (4 HANELİ GÖSTERGE) */
.pin-dots-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}

.pin-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pin-dot.filled {
  background: #3b82f6;
  border-color: #3b82f6;
  transform: scale(1.2);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.7);
}

.pin-dot.error {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  transform: scale(1.15) !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.8) !important;
}

.pin-dot.success {
  background: #10b981 !important;
  border-color: #10b981 !important;
  transform: scale(1.25) !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.8) !important;
}

/* PIN TİTREŞİM (SHAKE) ANİMASYONU */
@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-14px); }
  40%, 80% { transform: translateX(14px); }
}

.pin-dots-container.shake {
  animation: pinShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.pin-status-text {
  min-height: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #ef4444;
  margin-bottom: 14px;
}

/* DOKUNMATİK NUMPAD TUŞ TAKIMI */
.pin-numpad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.numpad-key {
  aspect-ratio: 1;
  min-height: 62px;
  max-height: 72px;
  border-radius: 50%;
  font-size: 25px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
  touch-action: manipulation;
  outline: none;
}

.numpad-key:active {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0.92);
  border-color: rgba(255, 255, 255, 0.3);
}

.numpad-key.key-action {
  font-size: 16px;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

.numpad-key.key-action:active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.pin-hint-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 18px;
  line-height: 1.4;
}

.pin-hint-note strong {
  color: #93c5fd;
}

/* ======================================================== */
/* YÖNETİCİ GİRİŞİ MODALI & GÜVENLİK AYARLARI               */
/* ======================================================== */
.modal-auth-sheet {
  max-width: 420px;
}

.admin-shield-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.security-settings-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.security-settings-box input {
  font-family: inherit;
}

/* ======================================================== */
/* KURUMSAL GİRİŞ & PERSONEL YÖNETİMİ STİLLERİ             */
/* ======================================================== */
.corporate-login-container {
  max-width: 380px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 20px;
  padding: 4px 10px;
}

.user-name-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--primary);
  color: #ffffff;
  letter-spacing: 0.5px;
}

.btn-logout {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: transform 0.15s, opacity 0.15s;
}

.btn-logout:hover {
  opacity: 1;
}

.btn-logout:active {
  transform: scale(0.9);
}

.staff-list-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.staff-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  transition: border-color 0.2s;
}

.staff-card:hover {
  border-color: var(--primary);
}

.staff-info-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 180px;
}

.staff-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.staff-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.staff-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.staff-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-sm-action {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card-subtle);
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.btn-sm-action:hover {
  background: var(--bg-input);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm-danger {
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

.btn-sm-danger:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: #ef4444 !important;
}

/* ======================================================== */
/* TESLİM EDEN DİJİTAL İMZA MODÜLÜ & KURUMSAL TUTANAK      */
/* ======================================================== */
.handover-signature-box {
  background: var(--bg-card-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}

.signature-pad-container {
  position: relative;
  width: 100%;
  height: 155px;
  background-color: #ffffff;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 16px 16px;
  border: 2px dashed #94a3b8;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.signature-pad-container.signed {
  border-style: solid;
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

.signature-pad-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.signature-pad-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  padding: 12px;
  transition: opacity 0.2s;
}

.signature-pad-container.signed .signature-pad-placeholder {
  opacity: 0;
}

.signature-pad-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.signature-receiver-info {
  font-size: 12px;
  color: var(--text-muted);
}

.signature-receiver-info strong {
  color: var(--text-main);
}

.btn-clear-signature {
  width: auto !important;
  min-height: 34px !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  border-radius: var(--radius-sm);
}

.protocol-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.protocol-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.protocol-col-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.protocol-col-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-word;
}

.protocol-col-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.company-notify-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s;
}

.company-notify-checkbox-row:hover {
  border-color: var(--primary);
}

.company-notify-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.company-notify-checkbox-row.disabled {
  opacity: 0.58;
  cursor: not-allowed;
  background: var(--bg-input);
}

.company-notify-checkbox-row.disabled input[type="checkbox"] {
  cursor: not-allowed;
}

