/* ================================
   RetroSuit — Profit & Loss Page 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.75rem; }
  .features-hero p {
    max-width: 680px;
    margin: 1.5rem auto 0;
    font-size: 1.125rem;
    color: var(--text-main);
  }
  
  /* ================================
     Dashboard Section
     ================================ */
  .dashboard-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-section);
  }
  
  .dashboard-text h2 { font-size: 2rem; }
  .dashboard-text p { color: var(--text-main); }

  .dashboard-img {
    max-width: 550px;   /* adjust to your liking */
    width: 100%;
    height: auto;
    display: block;
}

  
  /* ================================
     PNL Highlights
     ================================ */
  .pnl-cards {
    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);
    color: var(--text-main);
    transition: transform var(--transition), box-shadow var(--transition);
    text-align: center;
    flex: 1 1 220px;
    min-width: 180px;
  }
  
  .highlight-card .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
  }
  
  .highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }
  
  /* ================================
     Metrics Grid
     ================================ */
  .metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .metric-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
  }
  
  .metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }
  
  .metric-value {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  
  .metric-label {
    font-size: 0.9rem;
    opacity: 0.8;
  }
  
  /* ================================
     Tables (Revenue & Expenses)
     ================================ */
  .table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
  }
  
  .table th, .table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    font-size: 0.9rem;
  }
  
  .table th {
    background: var(--bg-accent);
    font-weight: 600;
  }
  
  .table tbody tr:hover {
    background: rgba(79,140,255,0.05);
  }
  
  /* ================================
     Overview Section (Optional Top Description)
     ================================ */
  .overview-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 4rem 2rem;
    background: var(--bg-dark);
    border-radius: 12px;
    margin-bottom: 3rem;
    color: #fff;
  }
  
  .overview-section .dashboard-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
  }
  
  .overview-section .dashboard-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #f0f0f0;
  }
  
  .overview-section strong { color: #ffffff; }
  .overview-section em { font-style: italic; color: #d0d0d0; }
  
  /* ================================
     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;
    border-radius: 10px;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    color: #fff;
  }
  
  .cta .btn {
    background: var(--primary);
    box-shadow: 0 0 12px rgba(79,140,255,0.6), 0 0 24px rgba(79,140,255,0.3);
  }
  
  .cta .btn:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(79,140,255,0.8), 0 0 32px rgba(79,140,255,0.45);
  }
  
  .cta .btn-ghost {
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: rgba(255,255,255,0.9);
    box-shadow: 0 0 10px rgba(255,255,255,0.05);
  }
  
  .cta .btn-ghost:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 0 14px rgba(255,255,255,0.15), 0 0 24px rgba(255,255,255,0.1);
  }
  
  /* ================================
     Responsive Adjustments
     ================================ */
  @media (max-width: 900px) {
    .overview-section {
      grid-template-columns: 1fr;
      text-align: center;
    }
    .metrics-grid {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 768px) {
    .table th, .table td {
      font-size: 0.85rem;
      padding: 0.5rem 0.75rem;
    }
    .highlight-card {
      flex: 1 1 100%;
    }
  }
  