* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f4f6f4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
}

/* Fixed and Aligned Centered Header Settings */
.main-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 40, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 3px solid #1a4a1a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Content - Multiple layout options */
.header-content {
    display: flex;
    align-items: center;
    justify-content: center; /* Centered layout for auth pages */
    min-height: 90px;
    padding: 10px 0;
}

/* Dashboard specific header layout */
.dashboard-main .header-content {
    justify-content: space-between;
    height: 85px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none !important;
}

.logo-group img {
    height: 55px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a4a1a;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
}

.sub-branding {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.logo-text .founded,
.founded {
    font-size: 0.75rem;
    color: #555;
    font-weight: 600;
    margin: 0;
}

.logo-text .system-tag,
.system-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.logo-text .system-tag {
    color: #666666;
    font-weight: 400;
    border-left: 1px solid #ccc;
    padding-left: 10px;
}

.system-tag {
    background: #e6eee6;
    color: #1a4a1a;
    padding: 2px 8px;
    border-radius: 4px;
}

/* User Navigation for Dashboard */
.user-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-badge {
    color: #1a4a1a;
    font-weight: 600;
    font-size: 0.95rem;
}



/* Registration Form Layout Spaces */
.register-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 140px;
}

.register-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 40, 0, 0.15);
    width: 100%;
    max-width: 900px;
    padding: 40px;
    animation: slideUp 0.5s ease-out;
    border: 1px solid #e0f0e0;
}

/* Login Main Content Area */
.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 20px 40px;
}

.login-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 40, 0, 0.15);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    animation: slideUp 0.5s ease-out;
    border: 1px solid #e0f0e0;
}

/* Dashboard Main Content */
.dashboard-main {
    flex: 1;
    padding: 120px 20px 40px;
}

/* Welcome Section */
.welcome-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 5px solid #1a4a1a;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}

.welcome-section h2 {
    color: #1a4a1a;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.welcome-section p {
    color: #666;
    font-size: 0.9rem;
}

/* Dashboard Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    overflow: hidden;
}

.card-header {
    background: #1a4a1a;
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 20px;
}

.data-row {
    display: flex;
    border-bottom: 1px solid #f0f2f0;
    padding: 12px 0;
    font-size: 0.92rem;
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    font-weight: 600;
    color: #666;
    width: 40%;
    flex-shrink: 0;
}

.data-value {
    color: #111;
    width: 60%;
    font-weight: 500;
}

/* Status Pills */
.status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-employed {
    background: #d4edda;
    color: #155724;
}

.status-unemployed {
    background: #fff3cd;
    color: #856404;
}

.status-related {
    background: #cce5ff;
    color: #004085;
}

.status-unrelated {
    background: #e2e3e5;
    color: #383d41;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-header {
    text-align: center;
    margin-bottom: 35px;
}

.register-header .alumni-icon {
    width: 70px;
    height: 70px;
    background: #1a4a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 3px solid #e0f0e0;
}

.register-header .alumni-icon i {
    font-size: 32px;
    color: #ffffff;
}

.register-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a4a1a;
    margin-bottom: 5px;
}

.register-subtitle {
    color: #2a6b2a;
    font-size: 0.9rem;
    font-weight: 400;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a4a1a;
    margin-bottom: 5px;
}

.login-subtitle {
    color: #2a6b2a;
    font-size: 0.9rem;
    font-weight: 400;
}

.form-section {
    background: #f9fbf9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e0f0e0;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a4a1a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d0e8d0;
}

.form-section-title i {
    margin-right: 8px;
    color: #2a6b2a;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Common Form Group Styles */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a4a1a;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label .required {
    color: #cc3333;
    margin-left: 4px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: #ffffff;
    border: 2px solid #e0f0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    color: #333333;
}

/* Login specific input padding */
.login-main .form-group input {
    padding: 12px 15px 12px 45px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a4a1a;
    box-shadow: 0 0 0 3px rgba(26, 74, 26, 0.1);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 40px;
    color: #2a6b2a;
    font-size: 1.1rem;
}

/* Segmented Control Bar */
.segment-toggle-container {
    display: flex;
    width: 340px;
    background-color: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 4px;
}

.segment-toggle-container input[type="radio"] {
    display: none;
}

.segment-btn {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}

.segment-btn:hover {
    background-color: rgba(0,0,0,0.03);
    color: #334155;
}

#unemployedRadio:checked + .segment-btn {
    background-color: #cc3333;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(204, 51, 51, 0.25);
}

#employedRadio:checked + .segment-btn {
    background-color: #1a4a1a;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(26, 74, 26, 0.25);
}

.select2-container .select2-selection--single {
    height: 48px;
    border: 2px solid #e0f0e0;
    border-radius: 10px;
    padding: 5px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 34px;
    color: #333;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
}

/* Alert Styles */
.alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #e8f5e8;
    color: #2a6b2a;
    border: 1px solid #b8e0b8;
}

/* Button Styles */
.btn-register,
.btn-login {
    width: 100%;
    padding: 14px;
    background: #1a4a1a;
    color: #ffffff;
    border: 2px solid #1a4a1a;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 1px;
}

.btn-register:hover,
.btn-login:hover {
    background: #2a6b2a;
    border-color: #2a6b2a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 74, 26, 0.2);
}

/* Link Styles */
.login-link,
.register-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0f0e0;
}

.login-link a,
.register-link a {
    color: #1a4a1a;
    text-decoration: none;
    font-weight: 700;
}

.login-link a:hover,
.register-link a:hover {
    text-decoration: underline;
    color: #2a6b2a;
}

.register-link {
    font-size: 0.95rem;
    color: #555555;
}

/* Footer Styles */
footer {
    background: #ffffff;
    padding: 20px 0;
    margin-top: auto;
    border-top: 1px solid #e2e8e2;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

/* ==========================================================
   PRODUCTION MOBILE RESPONSIVENESS PATCH (UNDER 768px)
   ========================================================== */
@media (max-width: 768px) {
    /* Base Body Adjustment for Fixed Mobile Header Stack */
    body {
        padding-top: 75px !important; 
    }
    
    html, body {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Fixed Header Constraint Overrides */
    .main-header {
        position: fixed !important;
        width: 100% !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 99999 !important;
        background: #ffffff !important;
    }

    /* Structural Header Flex Re-alignment */
    .main-header .header-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 15px 0 !important;
        gap: 12px !important;
        height: auto !important;
        min-height: unset !important;
    }
    
    /* Force Center Branding Images */
    .main-header .logo-group {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
    }
    
    .main-header .logo-group img {
        height: 60px !important;
        width: auto !important;
        margin: 0 auto !important;
        display: block !important;
    }

    /* Clear Text Elements to prevent header overlap breakage */
    .main-header .logo-text, 
    .main-header .logo-text h1, 
    .main-header .sub-branding, 
    .main-header .founded, 
    .main-header .system-tag {
        display: none !important;
    }

    /* Center Workflow Navigation Blocks */
    .main-header .user-nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 8px !important;
        margin: 0 auto !important;
    }

    /* Standardize Action Buttons & Badges to full screen widths */
    .main-header .user-badge,
    .main-header .admin-tab-btn, 
    .main-header .logout-link {
        width: 100% !important;
        max-width: 280px !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
    }

    /* Main Container Padding Normalization */
    .dashboard-main .container,
    .container {
        padding: 0 10px !important;
        width: 100% !important;
    }

    /* Form Container View Compression */
    .register-container,
    .login-container {
        padding: 25px;
        max-width: 95%;
    }

    .form-section {
        padding: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .welcome-section h2 {
        font-size: 1.3rem;
    }

    .segment-toggle-container,
    .info-grid {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}