/* ================================
   RetroSuit — Menu 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: 1.5rem;
    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 (Menu Table)
   ================================ */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    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); }

/* ================================
   Dashboard Controls
   ================================ */
.dashboard-controls {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.dashboard-control-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.search-input {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.9rem;
}
.search-input::placeholder {
    color: rgba(255,255,255,0.5);
}
.menu-select {
    min-width: 150px;
}

/* ================================
   Dashboard Image
   ================================ */
.dashboard-image {
    margin-top: 3rem;
    text-align: center;
}
.dashboard-image .dashboard-img {
    max-width: 600px;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
}

/* ================================
   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);
}

/* ================================
   New Sections: Menu Stats / Charts / Featured
   ================================ */
.menu-stats .stats-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}
.menu-stats .stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-light);
    text-align: center;
    min-width: 140px;
    flex: 1 1 140px;
    transition: transform var(--transition), box-shadow var(--transition);
}
.menu-stats .stat-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}
.menu-stats .stat-card p {
    font-size: 1.25rem;
    font-weight: 600;
}
.menu-stats .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Menu Charts */
.menu-charts {
    margin-top: 3rem;
    text-align: center;
}
.menu-charts h2 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}
.menu-charts canvas {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-light);
}

/* Featured Items */
.menu-featured {
    margin-top: 3rem;
}
.menu-featured h2 {
    text-align: center;
    margin-bottom: 1rem;
}
.featured-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.featured-cards .card {
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
    min-width: 160px;
    flex: 1 1 160px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.featured-cards .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 900px) {
    .features-hero h1 { font-size: 2rem; }
    .features-hero p { font-size: 1rem; }
    .pos-highlights { justify-content: center; }
    .dashboard-control-group { flex-direction: column; }
    .menu-stats .stats-cards { flex-direction: column; }
    .featured-cards { flex-direction: column; }
}

/* === 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;
}

/* Text */
.overview-section .dashboard-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.overview-section .dashboard-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #f0f0f0;
}
/* Highlighted parts */
.overview-section strong { color: #ffffff; }
.overview-section em { color: #d0d0d0; }
/* 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 */
.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; }
}


.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8); /* darker background overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal.hidden { display: none; }

.modal-content {
    background: #000; /* black modal */
    color: #fff;       /* white text */
    padding: 2rem;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.close-btn {
    position: absolute;
    top: 1rem; right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

/* Inputs and buttons inside modal */
.modal-content input,
.modal-content select {
    width: 100%;
    padding: 0.5rem;
    margin: 0.5rem 0 1rem 0;
    border-radius: 6px;
    border: 1px solid #fff;
    background: #111;
    color: #fff;
}

.modal-content input::placeholder {
    color: #ccc;
}

.modal-content button {
    margin-right: 0.5rem;
}
