/* ========================================
   PUANTAJ ADMIN - MODERN UI
   ======================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #111827;
  --bg-card: #1f2937;
  --bg-input: #374151;
  --border: #374151;
  --border-light: #4b5563;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --success: #10b981;
  --success-hover: #059669;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --warning: #f59e0b;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.2), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -4px rgba(0,0,0,0.2);
  --safe: env(safe-area-inset-bottom, 0px);
}

html { font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.gizli { display: none !important; }

/* ========================================
   LOGIN
   ======================================== */

#login-ekran {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

.login-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo {
  width: 80px;
  height: auto;
  margin-bottom: 20px;
}

.login-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.login-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.error-msg {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-align: center;
}

/* ========================================
   HEADER
   ======================================== */

.app-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  padding-top: calc(env(safe-area-inset-top, 0) + 12px);
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  flex-shrink: 0;
}

.header-logo {
  width: 56px !important;
  max-width: 56px !important;
  height: 24px !important;
  max-height: 24px !important;
  object-fit: contain;
  object-position: left center;
  background: #fff;
  padding: 4px 6px;
  border-radius: 4px;
}

.header-center {
  flex: 1;
  min-width: 0;
}

.header-title {
  font-size: 16px;
  font-weight: 600;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-stats {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-stats.veri-var {
  color: var(--success);
  font-weight: 500;
}

.header-stats.veri-yok {
  color: var(--danger);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.badge {
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-danger {
  background: var(--danger);
  color: white;
  animation: pulse 2s infinite;
}

.badge-suspended {
  background: var(--danger);
  color: white;
  animation: suspended-pulse 1s infinite;
  font-size: 11px;
  padding: 6px 12px;
}

@keyframes suspended-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.95); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.btn-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: rgba(239,68,68,0.1);
  border-color: var(--danger);
  color: var(--danger);
}

/* ========================================
   MAIN CONTENT
   ======================================== */

main {
  padding: 20px;
  padding-bottom: calc(var(--safe) + 24px);
  max-width: min(1280px, 100%);
  margin: 0 auto;
  width: 100%;
}

/* Haftalık plan ve izin ekranı tam genişlik */
#plan-panel .form-card,
#izin-panel .form-card {
  max-width: 100%;
}

#plan-tablo-container {
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

/* ========================================
   CARDS
   ======================================== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  overflow: hidden;
}

.card-highlight {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.step-number {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.card-header h2 {
  font-size: 16px;
  font-weight: 600;
}

.card-body {
  padding: 20px;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.input-group {
  margin-bottom: 16px;
}

.input-group:last-child {
  margin-bottom: 0;
}

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input-group .optional {
  color: var(--text-dim);
  font-weight: 400;
}

.input-group input,
.input-group select,
select {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.input-group input:focus,
.input-group select:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

.input-group input::placeholder {
  color: var(--text-dim);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L4 6h8l-4 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
  cursor: pointer;
}

.select-lg {
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 500;
}

.input-hint {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-row .input-group {
  margin-bottom: 0;
}

.time-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-input select {
  flex: 1;
}

.time-input span {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 18px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.filter-item label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.filter-item select {
  margin-bottom: 0;
}

/* Checkbox & Radio */
.checkbox-group,
.radio-group {
  margin-bottom: 12px;
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 0;
}

.checkbox-label input,
.radio-label input {
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--primary);
}

.checkbox-label span,
.radio-label span {
  font-size: 14px;
  color: var(--text);
}

.checkbox-danger span {
  color: var(--danger);
}

.checkbox-danger input:checked + span {
  font-weight: 600;
}

.checkbox-success span {
  color: var(--success);
}

.checkbox-success input:checked + span {
  font-weight: 600;
}

.radio-group > label:first-child {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.radio-group.pasif {
  opacity: 0.5;
  pointer-events: none;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-input);
  border-color: var(--border-light);
}

.btn-warning {
  border-color: var(--warning);
  color: var(--warning);
}

.btn-warning:hover {
  background: rgba(245,158,11,0.1);
}

.btn-lg {
  padding: 16px 24px;
  font-size: 15px;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.help-text {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

.live-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  color: var(--success);
  letter-spacing: 0.5px;
  animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ========================================
   ACTION BUTTONS (Giriş/Çıkış)
   ======================================== */

.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.action-btn:active {
  transform: scale(0.97);
}

.action-btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(16,185,129,0.3);
}

.action-btn-success:hover {
  box-shadow: 0 6px 20px rgba(16,185,129,0.4);
  transform: translateY(-2px);
}

.action-btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(239,68,68,0.3);
}

.action-btn-danger:hover {
  box-shadow: 0 6px 20px rgba(239,68,68,0.4);
  transform: translateY(-2px);
}

.action-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-label {
  font-size: 15px;
  font-weight: 600;
}

.action-hint {
  font-size: 11px;
  opacity: 0.8;
}

/* ========================================
   RECORD LIST
   ======================================== */

.record-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kayit-satir {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  gap: 12px;
}

.kayit-bilgi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  flex: 1;
  min-width: 0;
}

.kayit-satir .tarih {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  min-width: 100px;
}

.kayit-satir .saat {
  font-size: 14px;
  font-weight: 600;
  color: var(--success);
}

.kayit-satir .sure {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 4px;
}

.kayit-ops {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.mini-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.mini-btn:hover {
  background: var(--bg-card);
}

.mini-btn.sil {
  border-color: rgba(239,68,68,0.3);
  color: var(--danger);
}

.mini-btn.sil:hover {
  background: rgba(239,68,68,0.1);
}

.mini-btn:active {
  transform: scale(0.95);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
}

.empty-state svg {
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state span {
  display: block;
  font-size: 14px;
}

#kayit-listesi:not(:empty) + #kayit-yok {
  display: none;
}

/* ========================================
   BOTTOM ACTIONS
   ======================================== */

.bottom-actions {
  margin-top: 8px;
}

/* ========================================
   FORM CARD (Modal-like)
   ======================================== */

.form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.form-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.btn-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-close:hover {
  background: rgba(239,68,68,0.1);
  border-color: var(--danger);
  color: var(--danger);
}

.form-body {
  padding: 24px 20px;
}

.form-section {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
  margin-bottom: 24px;
  padding-bottom: 0;
  border-bottom: none;
}

.form-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.special-day-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.special-day-row:last-child {
  border-bottom: none;
}

.special-day-row .checkbox-group {
  margin-bottom: 0;
}

.input-group.mini {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}

.input-group.mini input {
  width: 70px;
  padding: 8px 12px;
  text-align: center;
}

.input-group.mini span {
  color: var(--text-muted);
  font-size: 14px;
}

.device-status {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 12px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

/* ========================================
   TOAST
   ======================================== */

#toast {
  position: fixed;
  bottom: calc(var(--safe) + 24px);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 24px;
  background: var(--bg-card);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
  max-width: calc(100% - 48px);
}

#toast.goster {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

#toast.success {
  border-left: 4px solid var(--success);
}

#toast.error {
  border-left: 4px solid var(--danger);
}

/* ========================================
   HEADER ISTATISTIK
   ======================================== */

.header-istatistik {
  display: none;
}

.header-istatistik.veri-var,
.header-istatistik.veri-yok {
  display: block;
}

.header-istatistik .istatistik-calisma {
  color: var(--success);
}

.header-istatistik .istatistik-ayrac {
  color: var(--text-dim);
  margin: 0 4px;
}

.header-istatistik .istatistik-tutar {
  color: var(--text);
}

.header-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ucret-tipi-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ucret-tipi-badge.tip-sabit {
  background: #d92d20;
  box-shadow: 0 8px 18px rgba(217, 45, 32, 0.22);
}

.ucret-tipi-badge.tip-saatlik {
  background: #175cd3;
  box-shadow: 0 8px 18px rgba(23, 92, 211, 0.24);
}

.ucret-tipi-badge.tip-gunlukcu {
  background: #166534;
  box-shadow: 0 8px 18px rgba(22, 101, 52, 0.24);
}

/* Backwards compat */
.alan { margin-bottom: 16px; }
.alan label { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 8px; }
.alan input { width: 100%; padding: 14px 16px; font-size: 15px; background: var(--bg-input); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.alan input:focus { outline: none; border-color: var(--primary); }
.alan-checkbox label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.alan-checkbox input[type="checkbox"] { width: 20px; height: 20px; margin: 0; }
.alan-radio label { margin-bottom: 6px; }
.alan-radio.pasif { opacity: 0.5; pointer-events: none; }
.saat-girisi { display: flex; align-items: center; gap: 8px; }
.saat-girisi select { flex: 1; }
.saat-girisi span { color: var(--text-muted); font-weight: 600; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 400px) {
  .action-buttons {
    grid-template-columns: 1fr;
  }
  
  .action-btn {
    flex-direction: row;
    padding: 16px 20px;
    text-align: left;
  }
  
  .action-icon {
    width: 40px;
    height: 40px;
  }
  
  .action-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .btn-row {
    grid-template-columns: 1fr;
  }
  
  .filter-row {
    grid-template-columns: 1fr;
  }
  
  .input-row {
    grid-template-columns: 1fr;
  }
}

/* Beacon Cihaz Listesi */
.beacon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
}

.beacon-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.beacon-info strong {
  color: var(--text);
  font-size: 1rem;
}

.beacon-uuid {
  color: var(--muted);
  font-size: 0.75rem;
  font-family: monospace;
}

.beacon-lokasyon {
  color: var(--primary);
  font-size: 0.85rem;
}

.beacon-actions {
  display: flex;
  gap: 8px;
}

/* Şantiye bilgisi - yeni tasarım */
.saat-row {
  display: flex;
  gap: 24px;
  margin: 8px 0;
}

.saat-blok {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.saat-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.saat-deger {
  font-size: 1rem;
  font-weight: 600;
  color: var(--success);
}

.santiye-etiket {
  font-size: 0.7rem;
  color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.santiye-etiket.cikis {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

@media (max-width: 480px) {
  .saat-row {
    gap: 16px;
  }
}

/* Şantiye select */
.santiye-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: 4px;
}

.santiye-select {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border: none;
}

.btn-danger:hover {
  background: #dc2626;
}

@media (max-width: 600px) {
  .beacon-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .beacon-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Firma Ekleme Satırı */
.firma-ekle-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}

.firma-ekle-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

.firma-ekle-row select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}

.firma-ekle-row .btn-sm {
  white-space: nowrap;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 480px) {
  .firma-ekle-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .firma-ekle-row input,
  .firma-ekle-row select,
  .firma-ekle-row .btn-sm {
    width: 100%;
  }
}

/* Varsayılan Kurallar Bilgi */
.varsayilan-kurallar-bilgi {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
}

.varsayilan-kurallar-bilgi h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.varsayilan-kurallar-bilgi ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.varsayilan-kurallar-bilgi li {
  font-size: 13px;
  color: var(--text);
  padding: 6px 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
}

.varsayilan-kurallar-bilgi li strong {
  color: var(--primary);
}

.kurallar-not {
  margin: 12px 0 0 0;
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
}

/* Mesai Panelleri */
.mesai-panel {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
}

.select-sm {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-dark);
  color: var(--text);
  font-size: 14px;
}

/* Özel Kurallar Paneli */
.ozel-kurallar-panel {
  background: #1a2744;
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}

.kurallar-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kural-grup h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.kural-grup .input-row {
  gap: 12px;
}

.kural-grup .input-group {
  flex: 1;
  min-width: 80px;
}

.kural-grup .input-group label {
  font-size: 12px;
}

.kural-grup .input-group input {
  padding: 8px 10px;
  font-size: 14px;
  text-align: center;
}

.badge-info {
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

@media (max-width: 600px) {
  .ozel-kurallar-panel {
    padding: 12px;
  }
  
  .kural-grup .input-row {
    flex-wrap: wrap;
  }
  
  .kural-grup .input-group {
    min-width: 70px;
    flex: 1 1 30%;
  }
}

.input-error {
  display: block;
  color: #ff4444;
  font-size: 12px;
  margin-top: 6px;
  font-weight: 500;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Modal Stilleri */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal.gizli {
  display: none;
}

.modal-content {
  background: var(--bg-secondary);
  border-radius: 16px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.btn-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
}

.btn-close:hover {
  color: var(--text-primary);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-icon {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  border-radius: 6px;
  color: var(--text-secondary);
}

.btn-icon:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Anlaşma kartları */
.anlasma-kart {
  transition: transform 0.2s, box-shadow 0.2s;
}

.anlasma-kart:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Tab Container */
.tab-container {
  display: flex;
  gap: 4px;
  background: var(--bg-primary);
  padding: 4px;
  border-radius: 8px;
}

.tab-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.tab-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.tab-btn.aktif {
  background: var(--accent);
  color: white;
}

.tab-content.gizli {
  display: none;
}

/* İzin Talep Kartları */
.izin-talep-kart {
  background: var(--bg-primary);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.izin-talep-bilgi {
  flex: 1;
  min-width: 200px;
}

.izin-talep-bilgi strong {
  display: block;
  margin-bottom: 4px;
}

.izin-talep-bilgi .tarih {
  color: var(--text-secondary);
  font-size: 13px;
}

.izin-talep-bilgi .tip {
  display: inline-block;
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-top: 4px;
}

.izin-talep-durum {
  text-align: center;
  min-width: 100px;
}

.izin-talep-durum .badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.badge-beklemede {
  background: #ffc107;
  color: #000;
}

.badge-onaylandi {
  background: #28a745;
  color: #fff;
}

.badge-reddedildi {
  background: #dc3545;
  color: #fff;
}

.izin-talep-aksiyonlar {
  display: flex;
  gap: 6px;
}

/* İzin Tip Kartları */
.izin-tip-kart {
  background: var(--bg-primary);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.izin-tip-kart .tip-ad {
  font-weight: 500;
}

.izin-tip-kart .tip-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

.tip-badge.ucretli {
  background: #28a745;
  color: white;
}

.tip-badge.ucretsiz {
  background: #6c757d;
  color: white;
}

/* Haftalık Plan Tablosu */
.plan-tablo {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.plan-tablo th,
.plan-tablo td {
  border: 1px solid var(--border);
  padding: 8px;
  text-align: center;
  vertical-align: top;
  min-width: 112px;
}

.plan-tablo th {
  background: var(--bg-card);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
  vertical-align: middle;
}

.plan-tablo th:first-child {
  z-index: 3;
  left: 0;
  text-align: left;
  background: var(--bg-card);
  box-shadow: 4px 0 8px -4px rgba(0,0,0,0.4);
}

.plan-tablo td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--bg-card);
  z-index: 2;
  box-shadow: 4px 0 8px -4px rgba(0,0,0,0.25);
}

.plan-personel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-personel-ad {
  font-weight: 700;
  color: var(--text);
}

.plan-personel-ucret {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-personel-ucret.tip-sabit {
  background: rgba(217, 45, 32, 0.12);
  color: #b42318;
  border: 1px solid rgba(217, 45, 32, 0.18);
}

.plan-personel-ucret.tip-saatlik {
  background: rgba(23, 92, 211, 0.12);
  color: #175cd3;
  border: 1px solid rgba(23, 92, 211, 0.2);
}

.plan-personel-ucret.tip-gunlukcu {
  background: rgba(22, 101, 52, 0.12);
  color: #166534;
  border: 1px solid rgba(22, 101, 52, 0.2);
}

.plan-th-day {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan-th-date {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}

.plan-tablo td {
  cursor: pointer;
  transition: background 0.2s;
}

.plan-tablo td:hover {
  background: var(--bg-primary);
}

.plan-hucre {
  min-height: 50px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan-hucre .santiye {
  font-weight: 500;
  color: var(--accent);
}

.plan-hucre .vardiya {
  font-size: 11px;
  color: var(--text-secondary);
}

.plan-hucre.izinli-off {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.plan-hucre .izin-off-badge {
  background: #dc3545;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 4px;
}

.plan-hucre .izin-tip {
  font-size: 10px;
  color: #dc3545;
}

.plan-hucre.izin-beklemede {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.plan-hucre .izin-bekleme-badge {
  background: var(--warning);
  color: #111;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 4px;
}

.plan-hucre .izin-bekleme-tip {
  font-size: 10px;
  color: var(--warning);
}

.plan-izin-aksiyonlar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  align-items: stretch;
}

.plan-izin-aksiyonlar .plan-izin-btn {
  width: 100%;
  justify-content: center;
  font-size: 11px;
  padding: 6px 8px;
}

.plan-hafta-ozet {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 10px;
}

.plan-hafta-ozet .hafta-no {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(59, 130, 246, 0.18);
}

.plan-hafta-ozet .hafta-aralik {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.plan-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.plan-toolbar-nav,
.plan-toolbar-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-date-input {
  width: 210px !important;
  min-width: 210px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.plan-date-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.gunluk-mail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gunluk-mail-grid input {
  width: 100%;
}

.input-sm {
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.btn-danger {
  background: #dc3545;
  color: white;
  border: none;
}

.btn-danger:hover {
  background: #c82333;
}

/* ========================================
   PROFESSIONAL UI REFRESH
   ======================================== */

:root {
  --bg: #f3f6fb;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-input: #f8fafc;
  --bg-primary: #eef4ff;
  --bg-secondary: #ffffff;
  --bg-light: #f6f9ff;
  --bg-dark: #dce6f5;
  --card: rgba(255, 255, 255, 0.9);
  --border: rgba(15, 23, 42, 0.1);
  --border-light: rgba(37, 99, 235, 0.24);
  --primary: #0f62fe;
  --primary-hover: #0048ce;
  --accent: #1d4ed8;
  --success: #0f9f6e;
  --success-hover: #0a7f57;
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --warning: #c27a00;
  --text: #0f172a;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 32px 60px rgba(15, 23, 42, 0.18);
}

body {
  font-family: 'Avenir Next', 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15, 98, 254, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(15, 159, 110, 0.1), transparent 22%),
    linear-gradient(180deg, #edf3fb 0%, #f7f9fd 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.45) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.28), transparent 78%);
  z-index: -1;
}

#login-ekran {
  padding: 32px;
  background:
    radial-gradient(circle at 0% 0%, rgba(15, 98, 254, 0.24), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(15, 159, 110, 0.2), transparent 28%),
    linear-gradient(135deg, #0f172a 0%, #1f3b63 48%, #e8eef8 180%);
}

.login-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 420px);
  gap: 28px;
  align-items: stretch;
}

.login-panel,
.login-box,
.app-header,
.card,
.form-card,
.modal-content,
#toast {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-panel {
  color: #f8fbff;
  padding: 40px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(8, 15, 31, 0.46), rgba(8, 15, 31, 0.2));
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-panel h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 10ch;
}

.login-panel p {
  max-width: 48ch;
  color: rgba(248, 251, 255, 0.76);
  font-size: 15px;
}

.login-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.login-highlight {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
}

.login-highlight strong,
.hero-metric strong,
.hero-copy h2 {
  display: block;
}

.login-highlight strong {
  font-size: 14px;
  margin-bottom: 8px;
}

.login-highlight span {
  font-size: 12px;
  color: rgba(248, 251, 255, 0.76);
}

.login-box {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 28px;
  padding: 38px 34px;
  max-width: none;
  color: var(--text);
}

.login-header h1 {
  color: var(--text);
  font-size: 28px;
  letter-spacing: -0.03em;
}

.login-header p {
  color: var(--text-secondary);
}

.error-msg {
  background: rgba(220,38,38,0.08);
  border-color: rgba(220,38,38,0.18);
}

.app-header {
  margin: 16px auto 0;
  width: calc(100% - 32px);
  max-width: 1400px;
  padding: 16px 22px;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 24px;
  background: rgba(255,255,255,0.76);
  box-shadow: var(--shadow);
}

.header-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.header-stats {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}

.header-stats.veri-var {
  color: var(--accent);
}

.header-stats.veri-yok {
  color: var(--danger);
}

.badge {
  border-radius: 999px;
  padding: 7px 12px;
  letter-spacing: 0.08em;
}

.badge-danger,
.badge-suspended {
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.18);
}

.btn-icon {
  width: 42px;
  height: 42px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text-secondary);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.btn-icon:hover {
  transform: translateY(-1px);
  background: #eff6ff;
  border-color: rgba(15, 98, 254, 0.2);
  color: var(--primary);
}

.btn-icon-has-badge {
  position: relative;
}

.menu-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.28);
  border: 2px solid rgba(255,255,255,0.92);
  animation: menuBadgePulse 1.2s infinite;
  z-index: 2;
}

@keyframes menuBadgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.75; }
}

.dashboard-main {
  max-width: 1400px;
  padding: 28px 20px 44px;
}

.dashboard-grid {
  display: grid;
  gap: 20px;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.6);
  background:
    linear-gradient(135deg, rgba(10, 24, 48, 0.94) 0%, rgba(16, 60, 132, 0.92) 58%, rgba(13, 159, 110, 0.76) 140%);
  color: #f8fbff;
  box-shadow: 0 28px 56px rgba(16, 42, 82, 0.24);
}

.hero-copy h2 {
  margin: 14px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.hero-copy p {
  max-width: 56ch;
  color: rgba(248, 251, 255, 0.78);
}

.hero-metrics {
  display: grid;
  gap: 12px;
}

.hero-metric {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  align-self: start;
}

.hero-metric strong {
  margin-bottom: 6px;
  font-size: 15px;
}

.hero-metric span {
  color: rgba(248, 251, 255, 0.78);
  font-size: 13px;
}

.card,
.form-card,
.modal-content {
  border: 1px solid rgba(255,255,255,0.68);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.card-highlight {
  border-color: rgba(15, 98, 254, 0.38);
  box-shadow:
    0 0 0 1px rgba(15, 98, 254, 0.08),
    0 24px 48px rgba(15, 23, 42, 0.1);
}

.card-header,
.form-header,
.modal-header {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.72));
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.card-header h2,
.form-header h2,
.modal-header h3 {
  color: var(--text);
  letter-spacing: -0.02em;
}

.step-number {
  background: linear-gradient(135deg, var(--primary), #4f8cff);
  box-shadow: 0 10px 20px rgba(15, 98, 254, 0.24);
}

.input-group label,
.filter-item label,
.alan label {
  color: var(--text-secondary);
  font-weight: 600;
}

.input-group input,
.input-group select,
select,
.alan input,
.santiye-select,
.input-sm,
.select-sm {
  background: rgba(248, 250, 252, 0.96);
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.input-group input:focus,
.input-group select:focus,
select:focus,
.alan input:focus,
.santiye-select:focus,
.input-sm:focus,
.select-sm:focus {
  border-color: rgba(15, 98, 254, 0.4);
  box-shadow: 0 0 0 4px rgba(15, 98, 254, 0.12);
}

.btn {
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4f8cff);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), #2563eb);
  transform: translateY(-1px);
}

.btn-outline,
.btn-secondary {
  background: rgba(255,255,255,0.7);
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.btn-outline:hover,
.btn-secondary:hover {
  background: #eff6ff;
  color: var(--primary);
  border-color: rgba(15, 98, 254, 0.18);
}

.help-text,
.input-hint,
.kurallar-not,
.device-status {
  color: var(--text-secondary);
}

.record-list {
  gap: 12px;
}

.kayit-satir,
.beacon-item,
.izin-tip-kart {
  background: linear-gradient(180deg, rgba(248,250,252,0.96), rgba(255,255,255,0.9));
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.kayit-satir {
  padding: 18px;
}

.kayit-satir .tarih {
  font-size: 14px;
  color: var(--text);
}

.kayit-satir .sure,
.plan-hafta-ozet .hafta-no {
  background: #eef4ff;
  color: var(--accent);
}

.saat-label,
.santiye-label,
.beacon-uuid {
  color: var(--text-muted);
}

.saat-deger {
  color: var(--text);
}

.santiye-etiket {
  background: rgba(15, 98, 254, 0.1);
  color: var(--accent);
}

.santiye-etiket.cikis {
  background: rgba(220, 38, 38, 0.08);
  color: var(--danger);
}

.mini-btn {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}

.mini-btn:hover {
  border-color: rgba(15, 98, 254, 0.18);
  color: var(--primary);
}

.empty-state {
  padding: 52px 20px;
  background: linear-gradient(180deg, rgba(248,250,252,0.9), rgba(255,255,255,0.72));
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 20px;
}

.varsayilan-kurallar-bilgi,
.ozel-kurallar-panel,
.mesai-panel {
  background: linear-gradient(180deg, #f7fbff, #eef5ff);
  border-color: rgba(15, 98, 254, 0.14);
}

.varsayilan-kurallar-bilgi h4,
.kural-grup h4,
.plan-th-day,
.beacon-lokasyon {
  color: var(--accent);
}

.varsayilan-kurallar-bilgi li {
  background: rgba(15, 98, 254, 0.05);
}

.modal {
  background: rgba(15, 23, 42, 0.38);
}

.modal-content {
  background: rgba(255, 255, 255, 0.94);
}

#toast {
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  border: 1px solid rgba(255,255,255,0.12);
}

.plan-tablo th,
.plan-tablo td {
  border-color: rgba(15, 23, 42, 0.08);
}

.plan-tablo th,
.plan-tablo th:first-child,
.plan-tablo td:first-child {
  background: #f8fafc;
}

.plan-tablo td:hover {
  background: #eef4ff;
}

.segmented-choice {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.segmented-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.segmented-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255,255,255,0.88);
  color: var(--text-secondary);
  font-weight: 700;
  transition: all 0.18s ease;
}

.segmented-pill input:checked + span {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.04));
  border-color: rgba(37, 99, 235, 0.42);
  color: var(--accent);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.10);
}

.money-input {
  font-variant-numeric: tabular-nums;
}

.anlasma-tutar-buyuk {
  font-size: 30px;
  line-height: 1.05;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.anlasma-tutar-etiket {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 700;
}

@media (max-width: 980px) {
  .login-shell,
  .hero-card {
    grid-template-columns: 1fr;
  }

  .login-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  #login-ekran {
    padding: 18px;
  }

  .app-header {
    width: calc(100% - 20px);
    padding: 14px 16px;
    border-radius: 18px;
    flex-wrap: wrap;
  }

  .header-right {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .hero-card,
  .login-panel,
  .login-box,
  .card-body,
  .form-body {
    padding: 20px;
  }

  .dashboard-main {
    padding: 18px 10px 34px;
  }

  .segmented-pill span {
    min-width: 100%;
  }
}
