* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #FFFFFF;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================
   OVERLAY
============================ */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 900;
}

body.menu-open .overlay {
    display: block;
}

/* ============================
   SIDEBAR (DESKTOP + MOBILE)
============================ */
.sidebar {
    width: 250px;
    background: white;
    height: 100vh;
    padding: 30px 25px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

/* Mobile Hidden */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-270px);
        z-index: 200;
        padding: 20px;
    }

    body.menu-open .sidebar {
        transform: translateX(0);
    }
}

/* ============================
   MAIN LAYOUT
============================ */
.layout-wrapper {
    display: flex;
    flex-direction: row;
}

/* ✅ CORRECT DESKTOP CONTENT ALIGNMENT */
.content-area {
    margin-left: 250px;
    padding: 40px;
    width: calc(100% - 250px);
    text-align: center;
    transition: margin-left 0.3s;
    
}

/* ✅ CENTERED HEADING */
.content-area h1 {
    margin: 15px 0 30px 0;
    padding: 0;
    width: 100%;
    text-align: center;
}

/* ✅ CENTERED LOGO */
.content-area .logo {
    display: block;
    margin: 0 auto 10px auto;
    max-width: 90px;
    
}

/* ============================
   SIDEBAR CONTENT
============================ */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.sidebar-header img {
    width: 55px;
    height: auto;
    border-radius: 8px;
}

.sidebar-title h2 {
    font-size: 12px;
    color: #2c3e50;
}

.sidebar-title p {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 4px;
}

.sidebar-divider {
    border: none;
    height: 1px;
    background: #e1e1e1;
    margin: 10px 0 20px;
}

.nav-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 5px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.nav-row:hover {
    background: #EFF6FF;
}

.nav-row:hover .nav-item {
    color: #2563EB;
}

.nav-icon {
    width: 30px;
}

/* ============================
   CARDS & FORMS
============================ */
.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 21px;
}

.input-group {
    margin-bottom: 20px;
}
/* ✅ Make select look exactly like input fields */
.input-group select {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    background: #fff;
    appearance: none;         /* ✅ Remove default arrow (optional) */
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* ✅ Optional: add custom dropdown arrow */
.input-group {
    position: relative;
}

.input-group select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
}

input {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

/* ============================
   BUTTON
============================ */
button {
    width: 100%;
    padding: 16px;
    margin-top: 15px;
    font-size: 17px;
    font-weight: bold;
    background: linear-gradient(135deg, #6ab7ff, #82e09a);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;

    /* ✅ FORCE TEXT PERFECTLY CENTERED */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ============================
   MOBILE MENU BUTTON
============================ */
.menu-toggle {
    display: none;
}

/* ============================
   MOBILE RESPONSIVE FIXES
============================ */
/* ✅ MOBILE FIX */
@media (max-width: 768px) {

    /* Main content reset */
    .content-area {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 20px !important;
        text-align: center;
    }

    /* Logo center */
    .logo {
        margin: 0 auto 20px auto;
        display: block;
    }

    /* Title and subtitle spacing */
    .content-area h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .content-area p {
        font-size: 14px;
        margin-bottom: 20px;
        text-align: center;
    }

    /* ✅ NOTE BOX ALIGN FIX */
    .outer-grid {
        width: 100% !important;
        margin: 0 auto 20px auto !important;
        text-align: center !important;
        padding: 15px;
    }

    /* ✅ MAIN GRID STACK FIX */
    /* .main-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    } */

    /* ✅ FORM CARD FULL WIDTH */
    .form-card {
        width: 100%;
    }

    /* ✅ FORM LABEL LEFT ALIGN */
    .form-card label {
        text-align: left;
        display: block;
    }

    /* ✅ INPUT FULL WIDTH */
    .form-card input {
        width: 100%;
    }

    /* ✅ RIGHT COLUMN STACK */
    .right-column {
        width: 100%;
    }

    /* ✅ INFO CARDS SPACING */
    .info-cards-container {
        display: flex;
        flex-direction: column;
        gap: 20px; /* ✅ SPACE between HOW IT WORKS & NOTICE */
    }

    /* ✅ LIST TEXT LEFT ALIGN */
    .info-card-blue ol,
    .info-card-yellow ul {
        text-align: left;
    }

    /* ✅ TODAY'S AVAILABILITY TEXT FIX */
    .time-slot {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.info-cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;   /* ✅ SPACE BETWEEN HOW IT WORKS & NOTICE */
}

.outer-grid {
    width: 100%;
    max-width: 800px;        /* keeps it neat, not too wide */
    margin: 0 auto 30px;    /* ✅ centers it under the subtitle */
    text-align: center;
    background-color: #f5f8fd;
    padding: 16px 20px;
    border-radius: 10px;
}

/* Time Slots */ 
.time-slot { border: 1px solid #e0e0e0; padding: 18px; border-radius: 12px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; background: #fafafa; font-size: 16px; transition: all 0.3s; } 
.time-slot.available { border-color: #4CAF50; background: #f8fff9; } 
.time-slot strong { color: #27ae60; font-size: 18px; } 
/* Info Cards */ .info-card-blue { background: #EFF6FF; } 
.info-card-blue h3 { color: #1e3a8a; } 
.info-card-yellow { background: #FFF7D6; } 
.info-card-yellow h3 { color: #b45309; } 
.info-card-blue ol, .info-card-yellow ul { padding-left: 20px; line-height: 1.7; color: #444; font-size: 14px; } 
.info-card-yellow ul li { list-style-type: disc; }

/* ✅ Force form text & labels to start from the LEFT */
.form-card,
.form-card * {
    text-align: left;
}

/* ✅ Specifically ensure labels start from left */
.form-card label {
    text-align: left;
}
.info-card-blue ol,
.info-card-yellow ul {
    text-align: left;
}

/* ✅ DESKTOP GRID (RESTORE 2 COLUMNS) */
.main-grid {
    display: grid;
    grid-template-columns:  1.3fr 0.7fr;  /* LEFT = FORM | RIGHT = INFO */
    gap: 30px;
    align-items: start;
    max-width: 1000px;   /* ✅ Reduce overall width */
    margin: 0 auto;     /* ✅ Center it horizontally */
}


/* ✅ RIGHT SIDE STACK */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}



/* =========================
   ✅ MOBILE OVERRIDES
========================= */
/* ✅ FORCE SINGLE COLUMN ON MOBILE */
@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr !important;  /* ✅ Stack everything */
    }

    .right-column {
        width: 100%;
    }

    .form-card {
        width: 100%;
    }
}

@media print {

    /* Hide everything */
    body * {
        visibility: hidden !important;
    }

    /* Show only the print area */
    .print-area, .print-area * {
        visibility: visible !important;
    }

    /* Print area should start at the top-left */
    .print-area {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        text-align: center; /* Center barcode on printed page */
    }

    /* Hide print button on printed version */
    .print-btn {
        display: none !important;
    }
}

.app-footer {
    margin-top: 40px;
    padding: 15px 10px;
    text-align: center;
    font-size: 14px;
    color: #666;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.app-footer a {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
}

.app-footer a:hover {
    text-decoration: underline;
}