/* ================================
   RetroSuit — Dashboard 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: 4fr 2fr fr;
    gap: var(--gap-section);
}
.dashboard-text h2 { font-size: 2rem; }
.dashboard-text p { color: var(--text-main); }

/* Dashboard Image */
.dashboard-image img,
.dashboard-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: block;
}

/* ================================
   Highlight Cards
   ================================ */
.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);
    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: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
    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);
    color: var(--text-main);
}
.metric-value { font-size: 1.5rem; font-weight: 600; }
.metric-label { font-size: 0.95rem; }

/* ================================
   Inputs & Buttons
   ================================ */
.search-input,
select {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: var(--bg-card);
    color: var(--text-main);
}
select option { background: var(--bg-accent); color: var(--text-main); }

.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.06);
    color: var(--text-main);
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); }

/* Dashboard Controls */
.dashboard-controls {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.dashboard-controls .row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}
.dashboard-controls .new-total { margin-top: 0.5rem; }

/* ================================
   Tables
   ================================ */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
    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.65rem 0.85rem;
    text-align:left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.table th, .table td { color: var(--text-main); }
.table th { font-weight: 600; font-size: 0.95rem; }
.table td { font-size: 0.92rem; }
.table tbody tr:hover { background: rgba(255,255,255,0.05); }

/* ================================
   Misc Helpers
   ================================ */
.muted { color: var(--text-main); font-size: 0.95rem; }
.small { font-size: 0.88rem; }
.controls { display:flex; gap:0.5rem; flex-wrap:wrap; align-items:center; }

/* ================================
   Dashboard Graphs Grid
   ================================ */
   .graphs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;               /* Increased gap for better spacing */
    margin-top: 2rem;        /* Added spacing above the grid */
}

/* Individual Graph Cards */
.graph-card {
    background: var(--bg-card);
    padding: 1.5rem;         /* Slightly larger padding for more breathing room */
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
    color: var(--text-main);
    min-height: 280px;       /* Enlarge graph card height */
    display: flex;
    flex-direction: column;
}

/* Graph Titles */
.graph-card h4 {
    margin-bottom: 1rem;     /* Slightly more space below title */
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Graph Canvas */
.graph-card canvas {
    width: 100% !important;
    height: 220px !important; /* Increased canvas height */
    flex-grow: 1;             /* Fill remaining space */
}

/* Responsive Adjustments */
@media (max-width:900px){
    .graphs-grid { 
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}


.graph-card h4 { margin-bottom: 0.75rem; font-size: 1rem; }

.graph-card canvas { width: 100% !important; height: 200px !important; }

/* Color variants for graphs */
.graph-green canvas { border-left: 4px solid #4caf50; }
.graph-blue canvas { border-left: 4px solid #4f8cff; }
.graph-orange canvas { border-left: 4px solid #ff9800; }
.graph-red canvas { border-left: 4px solid #f44336; }

/* Responsive Adjustments */
@media (max-width:900px){ .graphs-grid { grid-template-columns: 1fr; } }
@media (max-width:600px){
    .features-hero h1 { font-size:2rem; }
    .features-hero p { font-size:1rem; }
    .dashboard-text h2 { font-size:1.5rem; }
}


/* ================================
   Dashboard Card Wrapper
   ================================ */
   .dashboard-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 1.5rem;
  }
  
  .dashboard-card h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--text-main);
    text-align: center;
  }
  

  /* ================================
   Print Daily Report Section
   ================================ */
.report-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }
  
  .report-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
  }
  
  .report-text .btn {
    margin-top: 1rem;
  }
  
  .report-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
  }
  
  /* Responsive */
  @media (max-width: 900px) {
    .report-section {
      grid-template-columns: 1fr;
      text-align: center;
    }
    .report-text { order: 2; }
    .report-image { order: 1; }
  }
  

  /* Receipt Machine Container */
/* Receipt Machine Container */
.receipt-machine {
    position: relative;
    width: 240px;
    height: 260px;
    background: #2b2b2b; /* darker, like a printer body */
    border-radius: 12px;
    box-shadow: inset 0 -6px 12px rgba(0,0,0,0.4), var(--shadow);
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
  }
  
  /* Slot at the top (receipt exit) */
  .receipt-machine .slot {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 14px;
    background: #111;
    border-radius: 4px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
    z-index: 2;
  }
  
  /* Receipt inside */
    /* Default state: hidden above */
    .receipt {
        position: absolute;
        top: -150%;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        background: #fff;
        color: #000;
        padding: 1rem;
        border-radius: 4px;
        font-size: 0.85rem;
        line-height: 1.3;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        opacity: 1;
        z-index: 1;
    }
    
    /* Keyframes for realistic print → drop */
    @keyframes printAndDrop {
        0% {
        top: -150%;
        opacity: 1;
        }
        40% {
        top: 20px; /* Sticks out of slot */
        opacity: 1;
        }
        70% {
        top: 20px; /* Pause at slot */
        opacity: 1;
        }
        100% {
        top: 120%; /* Falls away */
        opacity: 0;
        }
    }
    
  .receipt.active {
    animation: printAndDrop 3s ease forwards;
  }
  
  
  /* Animate receipt sliding out */
.receipt.active {
    top: 120%; /* Slides fully down out of view */
    opacity: 0; /* fades out while sliding */
  }
  
  
  /* Add little perforation effect */
  .receipt::before {
    content: "";
    display: block;
    width: 100%;
    height: 6px;
    background: repeating-linear-gradient(
      to right,
      #ccc 0,
      #ccc 4px,
      transparent 4px,
      transparent 8px
    );
    margin-bottom: 6px;
  }
  

/* ================================
   CTA Section (Minimal)
   ================================ */
   .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);
  }
  
  .cta .btn {
    background: var(--primary);
    box-shadow: 0 4px 14px rgba(79,140,255,0.4);
  }
  
  .cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79,140,255,0.55);
  }
  
  .cta .btn-ghost {
    border: 1px solid rgba(255,255,255,0.08);
    background: transparent;
  }
  
  .cta .btn-ghost:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-1px);
  }
  