/* ================================
   RetroSuit — Staff Management CSS
   ================================ */

/* --------- Root Variables --------- */
:root {
    --bg-dark: #0e0e12;
    --bg-card: #121212;
    --bg-accent: #1f1f27;
    --primary: #4f8cff;
    --text-main: #ffffff;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-light: 0 4px 14px rgba(0,0,0,0.3);
    --max-width: 1200px;
    --transition: 0.25s ease;
    --gap-section: 2rem;
    --font-base: "Poppins", sans-serif;
  }
  
  /* --------- Base Styles --------- */
  body {
    font-family: var(--font-base);
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
  }
  
  h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 1rem;
    color: var(--text-main);
  }
  
  section {
    padding: 3rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
  }
  
  /* ================================
     Hero Section
     ================================ */
  .features-hero {
    text-align: center;
    padding: 5rem 1.5rem 3rem;
    background: linear-gradient(180deg, #4f8cff14, transparent 80%);
    border-radius: 40px;
  }
  .features-hero h1 { font-size: 2.5rem; }
  .features-hero p {
    max-width: 700px;
    margin: 1.5rem auto 0;
    font-size: 1.125rem;
  }
  
  /* ================================
     Highlights Section
     ================================ */
  .pos-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-start;
  }
  .highlight-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-light);
    text-align: center;
    flex: 1 1 220px;
    min-width: 180px;
    transition: transform var(--transition), box-shadow var(--transition);
  }
  .highlight-card .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
  }
  .highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }
  
  /* ================================
     Tables (Staff & Payroll)
     ================================ */
  .table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  }
  .table th, .table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .table th {
    font-weight: 600;
    font-size: 0.95rem;
  }
  .table td {
    font-size: 0.9rem;
  }
  .table tbody tr:hover {
    background: rgba(255,255,255,0.05);
  }
  
  /* ================================
     Buttons
     ================================ */
  .btn {
    background: var(--primary);
    color: #fff;
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  .btn:hover { opacity: 0.9; }
  
  .btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-main);
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
  }
  .btn-ghost:hover { background: rgba(255,255,255,0.06); }
  
  /* ================================
     Metrics (Payroll Summary)
     ================================ */
  .metrics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.25rem;
    justify-content: space-between;
  }
  .metric-card {
    flex: 1 1 180px;
    text-align: center;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
  }
  .metric-value {
    font-size: 1.6rem;
    font-weight: 600;
  }
  .metric-label {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
  }
  
  /* ================================
     CTA Section
     ================================ */
  .cta {
    text-align: center;
    padding: 3rem 1.5rem;
    margin-top: 3rem;
    background: linear-gradient(0deg, #4f8cff14, transparent 80%);
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
  }
  .cta .btn,
  .cta .btn-ghost {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    margin: 0.5rem;
    transition: transform var(--transition), box-shadow var(--transition);
  }
  .cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79,140,255,0.55);
  }
  .cta .btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-1px);
  }
  
  /* ================================
     Responsive
     ================================ */
  @media (max-width: 800px) {
    .metrics-grid { flex-direction: column; }
    .features-hero h1 { font-size: 2rem; }
    .features-hero p { font-size: 1rem; }
  }
  
  /* === Overview Section === */
.overview-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 4rem 2rem;
    background: #0e0e12;
    border-radius: 12px;
    margin-bottom: 3rem;
    color: #fff; /* default text white */
  }
  
  /* Text */
  .overview-section .dashboard-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff; /* white headings */
  }
  
  .overview-section .dashboard-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #f0f0f0; /* softer white for readability */
  }
  
  /* Highlighted parts */
  .overview-section strong {
    color: #ffffff; /* subtle bright accent */
  }
  
  .overview-section em {
    font-style: italic;
    color: #d0d0d0; /* lighter grayish white */
  }
  
  /* Image */
  .overview-section .dashboard-devices {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .overview-section .dashboard-img {
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .overview-section .dashboard-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.8);
  }
  
  /* Bottom paragraph (below image) */
  .overview-section > p {
    grid-column: span 2;
    margin-top: 1rem;
    font-size: 1rem;
    color: #e0e0e0;
    text-align: center;
    line-height: 1.6;
  }
  
  /* Responsive */
  @media (max-width: 900px) {
    .overview-section {
      grid-template-columns: 1fr;
      text-align: center;
    }
    .overview-section > p {
      grid-column: 1;
    }
  }
  
      /* === Staff Page Additions === */
      .dashboard-controls {
        display: flex;
        justify-content: space-between;
        margin-bottom: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
      }
      .search-input {
        padding: 0.5rem 1rem;
        border-radius: 6px;
        border: 1px solid #444;
        background: #0e0e12;
        color: #fff;
      }
      .highlight-card { transition: transform 0.2s ease; }
      .highlight-card:hover { transform: translateY(-5px); }
      .table th { cursor: pointer; }
      .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0; top: 0;
        width: 100%; height: 100%;
        background-color: rgba(0,0,0,0.7);
        justify-content: center; align-items: center;
      }
      .modal-content {
        background: #1a1a1a;
        padding: 2rem;
        border-radius: 12px;
        color: #fff;
        width: 90%; max-width: 450px;
        position: relative;
      }
      .modal .close {
        position: absolute;
        top: 10px; right: 15px;
        font-size: 1.5rem;
        cursor: pointer;
      }
      .modal-content input {
        width: 100%;
        margin-bottom: 1rem;
        padding: 0.5rem;
        border-radius: 6px;
        border: 1px solid #444;
        background: #0e0e12;
        color: #fff;
      }