/* ========================================
   GLOBAL STYLES & RESET
   ======================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f3f4f6;
    color: #1f2937;
    margin: 0;
    padding: 0;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #1f2937;
    color: white;
    border-bottom: 4px solid #10b981;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 80px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.header-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ========================================
   MAIN CONTENT & FOOTER
   ======================================== */
main {
    padding: 30px 20px;
    max-width: 1600px;
    margin: 0 auto;
}

footer {
    background: #1f2937;
    color: #9ca3af;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 4px solid #10b981;
}

footer p {
    margin: 8px 0;
    font-size: 0.95rem;
}

footer p:first-child {
    font-weight: 600;
    color: #e5e7eb;
}

/* ========================================
   BUTTONS (GLOBAL)
   ======================================== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    background: #10b981;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn.primary {
    background: #10b981;
}

.btn.warning {
    background: #f59e0b;
}

.btn.large {
    padding: 20px 40px;
    font-size: 1.8rem;
    min-width: 200px;
}

.btn.small {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin: 0 4px;
    min-width: 60px;
}

/* Remove underline from button links */
.btn, .btn * {
    text-decoration: none !important;
    color: white !important;
}

/* ========================================
   FORMS & INPUTS
   ======================================== */
input[type="text"],
input[type="date"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 15px;
    font-size: 1.6rem;
    border: 3px solid #d1d5db;
    border-radius: 10px;
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

label {
    font-size: 1.8rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 10px;
    display: block;
}

/* Login / Kiosk Styles */
.login-container, .kiosk-container {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.login-container h1, .kiosk-container h1 {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 60px;
}

.login-form, .kiosk-form {
    width: 100%;
    max-width: 500px;
}

.login-form input, .kiosk-form input[type="text"] {
    width: 100%;
    padding: 25px;
    font-size: 2rem;
    text-align: center;
    border: 4px solid #10b981;
    border-radius: 20px;
    margin-bottom: 20px;
}

.login-button, .kiosk-signin {
    font-size: 3rem;
    padding: 30px 100px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(16,185,129,0.4);
}

.login-button:hover, .kiosk-signin:hover {
    background: #059669;
    transform: translateY(-3px);
}

/* ========================================
   DASHBOARD & GENERAL CARDS
   ======================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

@media print {
    /* Hide everything except the table */
    body * {
        visibility: hidden;
    }
    .print-area, .print-area * {
        visibility: visible;
    }
    .print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    /* Hide nav, buttons, footer, etc. */
    nav, .btn, footer, .sidebar, header, .alert, .modal {
        display: none !important;
    }
    h1, h2 {
        text-align: center;
    }
    table {
        width: 100%;
        border-collapse: collapse;
    }
    th, td {
        border: 1px solid black;
        padding: 8px;
        text-align: left;
    }
    th {
        background-color: #f2f2f2;
    }
}

/* ========================================
   STAFF STATS SECTION
   ======================================== */
.staff-stats-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.staff-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    background: #e8f5e9; /* Light green */
    border: 2px solid #4caf50; /* Green border */
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    margin: 0 0 15px;
    font-size: 1.4rem;
    color: #2e7d32;
}

.big-stat {
    font-size: 4rem;
    font-weight: 900;
    color: #1b5e20;
    line-height: 1;
}

/* Centered Add Button */
.add-button-container {
    text-align: center;
    margin-top: 40px;
}

.add-button-container .btn.large.primary {
    display: inline-block;
    font-size: 1.5rem;
    padding: 18px 50px;
    min-width: 340px;
    border-radius: 50px;
    background: #4caf50;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.add-button-container .btn.large.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(76, 175, 80, 0.4);
}

/* ========================================
   TABLES (STAFF, SCHEDULE, VISITORS, etc.)
   ======================================== */
.data-table, .schedule-table, .staff-table, .visitor-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.data-table th, .data-table td,
.schedule-table th, .schedule-table td,
.staff-table th, .staff-table td,
.visitor-table th, .visitor-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: #10b981;
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #f9fafb;
}

/* Actions column styling */
.staff-table td:last-child,
.visitor-table td:last-child {
    width: 180px;
    text-align: center;
    white-space: nowrap;
}

tr.dawn-row {
    font-weight: bold;
    background-color: #e9f7ff;
    border-top: 2px solid #007bff;
}

#editShiftModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
}
#editShiftModal .modal-dialog {
    margin: 10% auto;
    max-width: 500px;
}
#editShiftModal.show {
    display: block;
}
.modal-open {
    overflow: hidden;
}
/* ========================================
   SCHEDULE & TIME PICKERS
   ======================================== */
.schedule-table {
    table-layout: fixed;
}

.time-range {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.time-range div {
    flex: 1;
}

.small-label {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

#custom_start_time, #custom_end_time {
    width: 90%;
    padding: 20px;
    font-size: 1.8rem;
    height: 60px;
    border: 3px solid #10b981;
    border-radius: 12px;
    text-align: center;
}

.week-nav .btn {
    min-width: 140px;
}

/* ========================================
   QUICK ACTIONS & MENU EDIT
   ======================================== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    justify-content: center;
    margin: 50px auto;
    max-width: 1400px;
    padding: 0 20px;
}

.btn.large {
    flex: 1 1 280px;
    max-width: 360px;
    padding: 20px 24px;
    font-size: 1.2rem;
    text-align: center;
    background: #10b981;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn.large:hover {
    background: #059669;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.menu-edit-container {
    max-width: none;
    margin: 40px auto;
    padding: 60px 100px;
    background: white;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 120px;
    justify-content: center;
    margin: 80px 0 100px;
}

.meal-section {
    width: 500px;
}

.meal-section textarea {
    width: 100%;
    height: 400px;
    font-size: 1.6rem;
}

.meal-section label {
    font-size: 2.5rem;
    color: #10b981;
    text-align: center;
    margin-bottom: 20px;
    display: block;
}

.theme-section {
    text-align: center;
    margin: 60px 0;
}

.theme-preview-row {
    display: flex;
    align-items: center;
    justify-content: center;  /* Center everything */
    gap: 80px;
    margin: 40px auto;
    flex-wrap: wrap;
    max-width: 1200px;
}

.theme-preview-img {
    width: 500px;
    height: auto;
    border: 5px solid #10b981;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.centered-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin: 60px 0;
    flex-wrap: wrap;
}

.save-button {
    display: block;
    margin: 60px auto 40px;
    font-size: 2.5rem;
    padding: 25px 80px;
    min-width: 300px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.save-button:hover {
    background: #059669;
    transform: translateY(-3px);
}

.week-picker {
    margin-bottom: 30px;
    text-align: center;
}
.week-picker label {
    font-size: 1.3rem;
    margin-right: 15px;
    color: #374151;
}
.week-picker select {
    padding: 12px 20px;
    font-size: 1.2rem;
    border: 2px solid #10b981;
    border-radius: 10px;
    background: white;
    min-width: 300px;
    cursor: pointer;
}
.week-picker select:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* ========================================
   RESPONSIVE (Mobile / Tablet)
   ======================================== */
@media (max-width: 1200px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .meal-section {
        width: 90%;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 20px;
    }
    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .staff-stats-grid {
        grid-template-columns: 1fr;
    }
    .quick-actions {
        grid-template-columns: 1fr;
    }
}
/* Larger, more touch-friendly checkboxes and radio buttons site-wide */
input[type="checkbox"],
input[type="radio"] {
    width: 1.4em;           /* bigger size */
    height: 1.4em;          /* bigger size */
    margin-right: 0.5em;    /* better spacing */
    vertical-align: middle;
    cursor: pointer;
}

/* Optional: Make them even more visible when checked */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: #4caf50;  /* green fill when checked */
    border-color: #4caf50;
}

/* Make labels easier to tap */
.form-check-label {
    cursor: pointer;
    font-size: 1.1rem;
}

