/* CSS Variables - MCTF Brand Colors */
:root {
    --primary-color: #1B2B5A;
    /* Deep Navy Blue */
    --primary-dark: #141f42;
    /* Darker Navy */
    --secondary-color: #3A5BA0;
    /* Medium Blue */
    --accent-pink: #E6097A;
    /* Vibrant Magenta */
    --accent-gold: #C9A227;
    /* Gold accent */
    --accent-yellow: #FEE800;
    /* Yellow */
    --light-gray: #f6fbfc;
    --white: #ffffff;
    --text-primary: #1B2B5A;
    /* Navy for text */
    --text-secondary: #6B7A99;
    --border-color: #e1e5eb;
    --gradient-primary: linear-gradient(135deg, #1B2B5A 0%, #3A5BA0 100%);
    --gradient-accent: linear-gradient(135deg, #E6097A 0%, #3A5BA0 100%);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-gray);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: var(--primary-color);
    background: var(--gradient-primary);
    padding: 30px 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(27, 43, 90, 0.3);
    position: relative;
    overflow: hidden;
}

/* Decorative swoosh element */
.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(58, 91, 160, 0.3);
    border-radius: 50%;
    transform: rotate(-15deg);
    z-index: 0;
}

.header::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 40%;
    height: 150%;
    background: rgba(58, 91, 160, 0.2);
    border-radius: 50%;
    transform: rotate(-20deg);
    z-index: 0;
}

.logo-container {
    max-width: 156px;
    height: 83px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 4px;
    position: relative;
    z-index: 1;
}

.logo {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}



/* Navbar Styles - Sticker Inspired */
.navbar {
    background: transparent;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 100;
    pointer-events: none;
    /* Let clicks pass through empty space */
}

.navbar>* {
    pointer-events: auto;
    /* Re-enable clicks on children */
}

.menu-toggle {
    background: var(--primary-color);
    border: 3px solid var(--white);
    cursor: pointer;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 12px;
    box-shadow: 0 4px 0 rgba(20, 31, 66, 0.3);
    transition: all 0.2s ease;
}

.menu-toggle:active {
    transform: translateY(4px);
    box-shadow: none;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-logo {
    text-align: center;
    background-color: var(--white);
    width: auto !important;
    min-width: 100px;
    margin: auto;
    border-radius: 16px;
    padding: 8px 15px;
    margin-right: 10px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
    border: 3px solid var(--white);
}

.navbar-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Side Navigation - Sticker Style */
.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: var(--light-gray);
    /* Changed to match body */
    overflow-x: hidden;
    transition: 0.3s;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidenav.active {
    width: 280px;
}

.sidenav-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    background: var(--accent-pink);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
}

.sidenav-content {
    padding-top: 80px;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidenav a {
    padding: 12px 20px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    transition: all 0.2s;
    border-left: none;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.05);
    border: 2px solid var(--white);
}

.sidenav a:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.1);
    z-index: 5;
    background: var(--white);
}

.sidenav a.active {
    background-color: var(--white);
    color: var(--accent-pink);
    border: 2px solid var(--accent-pink);
    box-shadow: 0 4px 0 rgba(230, 9, 122, 0.2);
}

.sidenav .icon {
    width: 32px;
    height: 32px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

.sidenav .icon svg {
    width: 20px;
    height: 20px;
}

.sidenav a.active .icon {
    color: var(--accent-pink);
    background: rgba(230, 9, 122, 0.1);
}

.sidenav .icon.icon-img img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Content Area */
.content {
    flex: 1;
    padding: 20px 15px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Home Content */
.home-content {
    padding-bottom: 80px;
}

.intro-text {
    background-color: var(--white);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 35px;
    box-shadow: 0 8px 0 rgba(27, 43, 90, 0.1);
    text-align: center;
    border: 3px solid var(--white);
    position: relative;
    z-index: 1;
}

.intro-text p {
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding: 10px;
}

.menu-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 20px 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 6px 0 rgba(27, 43, 90, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    border: 3px solid var(--white);
    position: relative;
    overflow: visible;
    /* changed from hidden to allow transform pop */
}


.menu-card::before {
    display: none;
    /* Remove the top bar gradient */
}

.menu-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 12px 0 rgba(27, 43, 90, 0.15);
    z-index: 10;
}

.menu-card:active {
    transform: scale(0.98) translateY(2px);
    box-shadow: 0 2px 0 rgba(27, 43, 90, 0.1);
}

.menu-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 3px solid var(--white);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.menu-card:hover .menu-icon {
    background: var(--white);
    transform: scale(1.1);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 0 0 rgba(0, 0, 0, 0);
}

.menu-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--primary-color);
    transition: fill 0.3s;
}

.menu-card:hover .menu-icon svg {
    fill: var(--accent-pink);
}

/* Image-based menu icons */
.menu-icon-img {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.menu-icon-img img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    /* filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.1)); */
    transition: all 0.3s;
}

.menu-card:hover .menu-icon-img img {
    transform: scale(1.1);
    /* filter: drop-shadow(0 8px 4px rgba(0, 0, 0, 0.15)); */
}

.menu-title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--primary-color);
    letter-spacing: -0.01em;
    padding: 0 5px;
}

/* Footer */
.home-footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: none;
    /* Removed border */
}

.privacy-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

.privacy-link:hover {
    color: var(--primary-color);
    background: var(--white);
}

.copyright {
    color: var(--text-secondary);
    font-size: 12px;
    opacity: 0.7;
}

/* Page Content */
.page-content {
    padding-bottom: 80px;
}

.page-header {
    background: var(--primary-color);
    background: var(--gradient-primary);
    color: var(--white);
    padding: 20px 20px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 0 rgba(20, 31, 66, 0.2);
    position: relative;
    overflow: hidden;
    border: 3px solid var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-body {
    background-color: var(--white);
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.placeholder-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 15px;
}

.placeholder-box {
    background-color: var(--light-gray);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 600;
}

/* Buttons */
/* Job Action Buttons Styling */

.job-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

/* Base Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 48px;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.2;
}

/* Primary Button (Apply Now) */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--primary-color) 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(230, 9, 122, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff1a8c 0%, #2a4a9a 100%);
    box-shadow: 0 6px 16px rgba(230, 9, 122, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(230, 9, 122, 0.3);
}

/* Outline Primary Button (External Link) */
.btn-outline-primary {
    background: var(--white);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(40, 159, 216, 0.15);
}

.btn-outline-primary:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(40, 159, 216, 0.3);
    transform: translateY(-2px);
}

.btn-outline-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(40, 159, 216, 0.2);
}

/* Secondary Button (Back) */
.btn-secondary {
    background: var(--light-gray);
    color: var(--text-primary);
    border-color: var(--border-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: var(--border-color);
    color: var(--primary-color);
    border-color: var(--text-secondary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Button States */
.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn:focus {
    outline: 3px solid rgba(40, 159, 216, 0.3);
    outline-offset: 2px;
}

/* Form inside button container */
.job-actions form {
    display: inline-flex;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 576px) {
    .job-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .job-actions {
        flex-wrap: wrap;
    }

    .btn {
        flex: 1 1 calc(50% - 6px);
        min-width: 140px;
    }

    /* Make the last button (Back) full width if on its own row */
    .btn-secondary {
        flex: 1 1 100%;
    }
}

/* Alternative: Icon Support (if you add icons later) */
.btn svg,
.btn i {
    margin-right: 8px;
    font-size: 18px;
}

/* Loading State (optional) */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid var(--white);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Success/Error States (optional) */
.btn-success {
    background: #10b981;
    color: var(--white);
    border-color: #10b981;
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
}

.btn-danger {
    background: #ef4444;
    color: var(--white);
    border-color: #ef4444;
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* Privacy Policy */
.privacy-content {
    color: var(--text-primary);
}

.privacy-content h2 {
    color: var(--primary-color);
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
}

.privacy-content p {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.7;
}

.privacy-content em {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Floating QR Button */
.floating-qr-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--primary-color) 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(230, 9, 122, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s ease;
}

.floating-qr-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(230, 9, 122, 0.5);
}

.qr-icon {
    font-size: 28px;
    color: var(--white);
    font-weight: bold;
}

/* QR Modal */
.qr-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.qr-modal.active {
    display: flex;
}

.qr-modal-content {
    background-color: var(--white);
    padding: 30px 25px;
    border-radius: 16px;
    max-width: 340px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.qr-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-modal-content h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
}

.qr-code-container {
    text-align: center;
}

.qr-placeholder {
    background-color: var(--light-gray);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    /* padding: 20px; */
    margin-bottom: 15px;
    display: inline-block;
}

.qr-id {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

/* Responsive Design */
@media (min-width: 576px) {
    .menu-grid {
        gap: 20px;
    }

    .menu-card {
        padding: 30px 20px;
        min-height: 160px;
    }

    .menu-icon {
        font-size: 48px;
    }

    .menu-title {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    .content {
        padding: 30px 20px;
    }

    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .page-header h1 {
        font-size: 28px;
    }
}

@media (min-width: 992px) {
    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }

    .menu-card {
        min-height: 180px;
    }
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alert-error {
    background-color: #fee;
    color: #c33;
    border-left: 4px solid var(--accent-pink);
}

.alert-success {
    background-color: #efe;
    color: #363;
    border-left: 4px solid #4caf50;
}

/* Registration Form */
.registration-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(40, 159, 216, 0.1);
}

.registration-form button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 159, 216, 0.3);
}

.registration-form button:active {
    transform: translateY(0);
}

/* ========================================================================= */
/* UTILITY CLASSES */
/* ========================================================================= */

/* Text Alignment */
.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-white {
    color: var(--white) !important;
}

.text-danger {
    color: #ef4444 !important;
}

.text-success {
    color: #10b981 !important;
}

/* Display */
.d-block {
    display: block !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-flex {
    display: flex !important;
}

.d-none {
    display: none !important;
}

/* Flex Utilities */
.justify-content-center {
    justify-content: center !important;
}

.align-items-center {
    align-items: center !important;
}

.flex-column {
    flex-direction: column !important;
}

/* Margins */
.m-0 {
    margin: 0 !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.m-1 {
    margin: 0.25rem !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.ml-1 {
    margin-left: 0.25rem !important;
}

.mr-1 {
    margin-right: 0.25rem !important;
}

.m-2 {
    margin: 0.5rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.m-3 {
    margin: 1rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.m-4 {
    margin: 1.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.m-5 {
    margin: 3rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

/* Paddings */
.p-0 {
    padding: 0 !important;
}

.pt-0 {
    padding-top: 0 !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.p-3 {
    padding: 1rem !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

.pb-3 {
    padding-bottom: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.pt-4 {
    padding-top: 1.5rem !important;
}

.pb-4 {
    padding-bottom: 1.5rem !important;
}

.p-5 {
    padding: 3rem !important;
}

.pt-5 {
    padding-top: 3rem !important;
}

.pb-5 {
    padding-bottom: 3rem !important;
}

.voted-badge {
    background: var(--secondary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: auto;
    text-align: center;
}

.justify-content-space-between {
    justify-content: space-between !important;
}