/* PSH Admin — Stylesheet */


  @import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@300;400;500;600&display=swap');

  :root {
    --navy: #0b1d3a;
    --navy2: #1e3a5f;
    --sky: #2e5c8a;
    --sky2: #3a6ea8;
    --sun: #f5b800;
    --coral: #ff6b4a;
    --light: #e8f4ff;
    --tint: #faf8f3;
    --border: #c8d8e8;
    --muted: #5a6a7e;
    --white: #ffffff;
    --green: #22c55e;
    --red: #ef4444;
    --orange: #f97316;
  }

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

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--navy);
    color: var(--white);
    min-height: 100vh;
  }

  /* LOGIN */
  #login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  }

  .login-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 48px;
    width: 360px;
    text-align: center;
    backdrop-filter: blur(10px);
  }

  .login-logo {
    font-size: 32px;
    margin-bottom: 8px;
  }

  .login-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
  }

  .login-sub {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 32px;
  }

  .login-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: var(--white);
    font-size: 15px;
    font-family: 'DM Mono', monospace;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s;
  }

  .login-input:focus {
    border-color: var(--sky2);
  }

  .login-btn {
    width: 100%;
    padding: 14px;
    background: var(--sun);
    color: var(--navy);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
  }

  .login-btn:hover { opacity: 0.9; }

  .google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    color: #1a1a1a;
    font-weight: 600;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  }
  .google-btn:hover { background: #f5f5f5; opacity: 1; }

  .login-error {
    color: var(--coral);
    font-size: 13px;
    margin-top: 12px;
    display: none;
  }

  /* MAIN APP */
  #app { display: none; }

  /* HEADER */
  .header {
    background: var(--navy2);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .header-logo {
    font-size: 22px;
  }

  .header-title {
    font-size: 16px;
    font-weight: 600;
  }

  .header-sub {
    font-size: 11px;
    color: var(--muted);
    font-family: 'DM Mono', monospace;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .live-badge {
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.3);
    color: var(--green);
    font-size: 11px;
    font-family: 'DM Mono', monospace;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .live-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
  }

  .logout-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--muted);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
  }

  .logout-btn:hover {
    border-color: var(--coral);
    color: var(--coral);
  }

  /* STATS BAR */
  .stats-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .stat-card {
    background: var(--navy2);
    padding: 20px 24px;
    text-align: center;
  }

  .stat-num {
    font-size: 32px;
    font-weight: 600;
    font-family: 'DM Mono', monospace;
    line-height: 1;
    margin-bottom: 4px;
  }

  .stat-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .stat-num.green { color: var(--green); }
  .stat-num.sun { color: var(--sun); }
  .stat-num.coral { color: var(--coral); }
  .stat-num.sky { color: #6ab0f5; }

  /* TABS */
  .tabs {
    display: flex;
    gap: 0;
    padding: 0 24px;
    background: var(--navy2);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    overflow-x: auto;
  }

  .tab {
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .tab:hover { color: var(--white); }
  .tab.active { color: var(--sun); border-bottom-color: var(--sun); }

  .tab-badge {
    background: var(--coral);
    color: white;
    font-size: 10px;
    font-family: 'DM Mono', monospace;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
  }

  /* CONTENT */
  .content {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .tab-panel { display: none; }
  .tab-panel.active { display: block; }

  /* SECTION TITLE */
  .section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* BOOKINGS LIST */
  .booking-card {
    background: var(--navy2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
    cursor: pointer;
  }

  .booking-card:hover {
    border-color: rgba(255,255,255,0.2);
  }

  .booking-card.urgent {
    border-left: 3px solid var(--sun);
  }

  .booking-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .booking-name {
    font-size: 16px;
    font-weight: 600;
  }

  .booking-meta {
    font-size: 12px;
    color: var(--muted);
    font-family: 'DM Mono', monospace;
    margin-top: 2px;
  }

  .status-badge {
    font-size: 11px;
    font-family: 'DM Mono', monospace;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
  }

  .status-badge.review { background: rgba(245,184,0,0.15); color: var(--sun); border: 1px solid rgba(245,184,0,0.3); }
  .status-badge.active { background: rgba(34,197,94,0.15); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
  .status-badge.pending { background: rgba(99,102,241,0.15); color: #818cf8; border: 1px solid rgba(99,102,241,0.3); }
  .status-badge.rejected { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
  .status-badge.overdue { background: rgba(249,115,22,0.15); color: var(--orange); border: 1px solid rgba(249,115,22,0.3); }

  .booking-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
  }

  .booking-detail {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 10px 12px;
  }

  .detail-label {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
  }

  .detail-value {
    font-size: 14px;
    font-weight: 500;
    font-family: 'DM Mono', monospace;
  }

  .risk-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    font-family: 'DM Mono', monospace;
    margin-bottom: 12px;
  }
  .risk-low    { background: rgba(34,197,94,0.15);  color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
  .risk-medium { background: rgba(245,184,0,0.15);  color: #f5b800; border: 1px solid rgba(245,184,0,0.3); }
  .risk-high   { background: rgba(239,68,68,0.15);  color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }

  .risk-factors {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
  }
  .risk-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    font-family: 'DM Mono', monospace;
  }
  .risk-tag.bad  { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
  .risk-tag.good { background: rgba(34,197,94,0.12); color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }
  .risk-tag.warn { background: rgba(245,184,0,0.12); color: #f5b800; border: 1px solid rgba(245,184,0,0.2); }

  .section-block {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  .section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 8px;
  }
  .info-grid { display: flex; flex-direction: column; gap: 4px; }
  .info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 3px 0;
    border-bottom: 1px dashed var(--border);
  }
  .info-row:last-child { border-bottom: none; }
  .info-lbl { color: var(--muted); }
  .info-val { font-weight: 600; color: var(--text); text-align: right; }

  /* PARKING PHOTOS */
  .photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }

  .photo-thumb {
    aspect-ratio: 1;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 24px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s;
  }

  .photo-thumb:hover { border-color: var(--sky2); }

  .photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }

  .photos-note {
    font-size: 12px;
    color: var(--muted);
    font-style: italic;
    margin-bottom: 16px;
  }

  /* ACTION BUTTONS */
  .action-row {
    display: flex;
    gap: 10px;
  }

  .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .btn-approve {
    background: var(--green);
    color: white;
    flex: 1;
  }

  .btn-approve:hover { background: #16a34a; }

  .btn-reject {
    background: rgba(239,68,68,0.15);
    color: var(--red);
    border: 1px solid rgba(239,68,68,0.3);
    flex: 1;
  }

  .btn-reject:hover { background: rgba(239,68,68,0.25); }

  .btn-call {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.15);
  }

  .btn-call:hover { background: rgba(255,255,255,0.15); }

  /* FLEET GRID */
  .fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
  }

  .scooter-card {
    background: var(--navy2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
  }

  .scooter-card:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
  }

  .scooter-icon { font-size: 36px; margin-bottom: 10px; }

  .scooter-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
  }

  .scooter-rego {
    font-size: 12px;
    color: var(--muted);
    font-family: 'DM Mono', monospace;
    margin-bottom: 12px;
  }

  .scooter-status {
    display: inline-block;
    font-size: 11px;
    font-family: 'DM Mono', monospace;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
  }

  .scooter-status.available { background: rgba(34,197,94,0.15); color: var(--green); }
  .scooter-status.rented { background: rgba(245,184,0,0.15); color: var(--sun); }
  .scooter-status.maintenance { background: rgba(239,68,68,0.15); color: var(--red); }

  .scooter-km {
    font-size: 12px;
    color: var(--muted);
    font-family: 'DM Mono', monospace;
  }

  /* EMPTY STATE */
  .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
  }

  .empty-icon { font-size: 48px; margin-bottom: 16px; }
  .empty-text { font-size: 15px; }

  /* LOADING */
  .loading {
    text-align: center;
    padding: 40px;
    color: var(--muted);
    font-family: 'DM Mono', monospace;
    font-size: 13px;
  }

  /* MODAL */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 200;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
  }

  .modal-overlay.open { display: flex; }

  .modal {
    background: var(--navy2);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
  }

  .modal-sub {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
  }

  .modal-textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: var(--white);
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 16px;
    outline: none;
  }

  .modal-buttons {
    display: flex;
    gap: 10px;
  }

  .btn-cancel {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.15);
    flex: 1;
  }

  /* TOAST */
  .toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--navy2);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 14px;
    z-index: 300;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
  }

  .toast.show {
    transform: translateY(0);
    opacity: 1;
  }

  .toast.success { border-left: 3px solid var(--green); }
  .toast.error { border-left: 3px solid var(--red); }

  /* RESPONSIVE */
  /* VEHICLE DETAIL TABS */
  .vd-tab {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
  }
  .vd-tab:hover { color: var(--white); }
  .vd-tab.active { color: var(--sun); border-bottom-color: var(--sun); }
  .vd-panel { display: none; }
  .vd-panel.active { display: block; }

  /* VEHICLE FORM INPUTS */
  .vf-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 5px;
    font-weight: 500;
  }
  .vf-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: var(--white);
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s;
  }
  .vf-input:focus { border-color: var(--sky2); }

  /* INFO GRID */
  .vd-info-row {
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 10px 12px;
  }
  .vd-info-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 3px; }
  .vd-info-val { font-size: 13px; font-weight: 600; color: var(--white); }

  /* SERVICE / INCIDENT / REPAIR ROWS */
  .log-row {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
  }
  .log-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  @keyframes pulse-red {
    0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
    50%      { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
  }

  .kill-btn-active {
    background: rgba(239,68,68,0.15) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239,68,68,0.4) !important;
    animation: pulse-red 1.5s infinite;
  }

  @media (max-width: 600px) {
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .booking-details { grid-template-columns: repeat(2, 1fr); }
    .photos-grid { grid-template-columns: repeat(2, 1fr); }
    .fleet-grid { grid-template-columns: repeat(2, 1fr); }
    .content { padding: 16px; }
  }
