/* ScribeLive SAAT — Admin Panel Styles */

  :root {
    --navy: #002f6c;
    --blue: #00689c;
    --accent: #cbeff0;
    --orange: #e8622a;
    --dark: #333333;
    --grey: #c0c0c0;
    --light-grey: #f4f6f9;
    --white: #ffffff;
    --success: #1a9e6e;
    --danger: #cc3333;
    --warning: #e8a020;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'Outfit', sans-serif;
    background: var(--light-grey);
    color: var(--dark);
    min-height: 100vh;
  }

  /* ── LOGIN SCREEN ── */
  .login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
  }

  .login-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    width: 360px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  }

  .login-logo {
    font-family: 'Varela Round', sans-serif;
    font-size: 26px;
    color: var(--navy);
    margin-bottom: 4px;
  }

  .login-logo span { color: var(--orange); }

  .login-sub {
    font-size: 12px;
    color: #888;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
  }

  .login-card input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: 0.1em;
  }

  .login-card input:focus { outline: none; border-color: var(--blue); }

  .login-btn {
    width: 100%;
    padding: 12px;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
  }

  .login-btn:hover { background: var(--blue); }
  .login-error { color: var(--danger); font-size: 13px; margin-top: 10px; display: none; }

  /* ── ADMIN LAYOUT ── */
  .admin-wrap { display: none; min-height: 100vh; }

  nav {
    background: var(--navy);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    box-shadow: 0 2px 12px rgba(0,47,108,0.3);
  }

  .logo-text { font-family: 'Varela Round', sans-serif; font-size: 18px; color: white; }
  .logo-text span { color: var(--orange); }

  .admin-badge {
    font-size: 10px;
    background: var(--orange);
    color: white;
    padding: 3px 8px;
    border-radius: 99px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-left: 8px;
  }

  .nav-right { display: flex; align-items: center; gap: 12px; }

  .nav-link {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
  }

  .nav-link:hover { color: white; }

  .admin-body { display: flex; }

  /* ── SIDEBAR ── */
  .sidebar {
    width: 200px;
    flex-shrink: 0;
    background: var(--white);
    border-right: 1px solid #e0e0e0;
    min-height: calc(100vh - 56px);
    padding: 1rem 0;
  }

  .sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 1.25rem;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.15s;
  }

  .sidebar-item:hover { color: var(--navy); background: var(--light-grey); }

  .sidebar-item.active {
    color: var(--navy);
    background: var(--accent);
    border-left-color: var(--navy);
  }

  .sidebar-icon { font-size: 16px; width: 20px; text-align: center; }

  /* ── MAIN CONTENT ── */
  .main-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
  }

  .section { display: none; }
  .section.active { display: block; }

  .page-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1.5rem;
  }

  /* ── STAT CARDS ── */
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 1.5rem;
  }

  .stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0,47,108,0.06);
  }

  .stat-card-label { font-size: 12px; color: #888; margin-bottom: 6px; }
  .stat-card-val { font-size: 28px; font-weight: 600; color: var(--navy); }
  .stat-card-sub { font-size: 12px; color: #aaa; margin-top: 4px; }

  /* ── CARDS ── */
  .card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0,47,108,0.06);
    margin-bottom: 1.25rem;
  }

  .card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
  .field label { font-size: 12px; font-weight: 500; color: #555; }

  .field input, .field select {
    padding: 9px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    background: var(--white);
  }

  .field input:focus, .field select:focus { outline: none; border-color: var(--blue); }

  .field input[type=password] { letter-spacing: 0.1em; }

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

  /* ── BUTTONS ── */
  .btn-primary {
    padding: 9px 20px;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
  }

  .btn-primary:hover { background: var(--blue); }

  .btn-danger {
    padding: 9px 20px;
    background: #fdecea;
    color: var(--danger);
    border: 1px solid #f5c6c6;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
  }

  .btn-success {
    padding: 6px 14px;
    background: #e6f7ef;
    color: var(--success);
    border: 1px solid #b8e8d4;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
  }

  /* ── TABLE ── */
  .data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .data-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
  }
  .data-table td { padding: 10px; border-bottom: 1px solid #f5f5f5; vertical-align: middle; }
  .data-table tr:hover td { background: var(--light-grey); }

  .status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
  }

  .badge-done { background: #e6f7ef; color: var(--success); }
  .badge-processing { background: #fff3e0; color: var(--warning); }
  .badge-failed { background: #fdecea; color: var(--danger); }

  /* ── DICTIONARY TAGS ── */
  .dict-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    min-height: 36px;
  }

  .dict-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--accent);
    color: var(--navy);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 99px;
  }

  .dict-tag button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--blue);
    font-size: 14px;
  }

  .dict-input-row { display: flex; gap: 8px; }

  .dict-input-row input {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
  }

  .btn-outline {
    padding: 8px 14px;
    background: white;
    border: 1.5px solid var(--blue);
    color: var(--blue);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
  }

  .btn-outline:hover { background: var(--accent); }

  .section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
    margin-top: 16px;
  }

  .empty-state {
    text-align: center;
    padding: 2rem;
    color: #aaa;
    font-size: 13px;
  }
