/* ========================================================= */
/* 1. CORE VARIABLES (Official Zenzele Brand Colors & Globals) */
/* ========================================================= */

html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    height: 100%;
}
:root {
    /* --- ZENZELE BRAND COLORS (OFFICIAL) --- */
    --zenzele-blue: #0A3D62;        /* Primary Dark Brand Color (Trust, Professionalism) */
    --zenzele-orange: #FF6B35; 
     /* Secondary Accent Color (Creativity, Energy) */
    --zenzele-sky-blue: #B4D6E3;
    --zenzele-light-blue: #40B2D4;
    --zenzele-light-orange: #FFBB5C;
    
    --zenzele-orange-hover: #e55c2f; /* Calculated hover state for orange */

    /* --- FORM ACTION COLORS (Login/Reg Page) --- */
    --color-action-yellow: #FFDD5C; /* Used for Submit/Primary form buttons */
    --color-action-yellow-hover: #e0c24e;

    /* --- GLOBAL TEXT & UI COLORS --- */
    --card-bg-light: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --placeholder-color: #a0a0a0;
    --border-light: #e0e0e0;
    
    /* --- GLOBAL SHADOWS & EFFECTS --- */
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05); /* Retained the original, more consistent shadow */
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.1);
    
    /* --- SOCIAL & LINK COLORS --- */
    --social-btn-bg: #f0f0f0;
    --social-btn-hover: #e6e6e6;
    --link-color: #007bff;
    --link-hover-color: #0056b3;

    /* --- GLOBAL SPACING --- */
    --spacing-xl: 1.5rem; /* For large border-radius, replacing .rounded-4 */
}

/* ========================================================= */
/* 2. BASE STYLES & GENERAL RESETS */
/* ========================================================= */

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0; /* Ensure no default padding */
    background: #f1f5f9; /* Consistent light gray background */
    /* background: linear-gradient(135deg, #f8f8f8, #e8e8e8);  */
    color: var(--text-dark);
    font-size: 16px;
    
    /* FIX: Standard Flexbox Sticky Footer Pattern */
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
    
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure the main content expands to push footer down */
main {
    flex: 1 0 auto;
}

/* Ensure footer stays at the end of the flex column */
footer {
    flex-shrink: 0;
}

/* ========================================================= */
/* 3. ZENZELE UTILITY CLASSES (u- prefix) */
/* ========================================================= */

/* Backgrounds */
.u-bg-brand-blue { background-color: var(--zenzele-blue) !important; }

/* Text Colors */
.u-text-brand-orange { color: var(--zenzele-orange) !important; }
.u-text-brand-blue { color: var(--zenzele-blue) !important; }

/* NEW UTILITY CLASS FOR THE LIGHT BACKGROUND */
.u-bg-sky-blue { background-color: var(--zenzele-sky-blue) !important; }

/* Border Radius */
.u-border-radius-xl { 
    border-radius: var(--spacing-xl) !important; 
}

/* Global Transition/Hover effect (Used on the feature cards and login cards) */
.transition-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.transition-hover:hover {
    transform: translateY(-5px); /* Lift the card slightly */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important; 
}

/* NEW: Added the simple shadow helper class from the duplicate block, mapped to the correct variable */
.shadow-light {
    box-shadow: var(--shadow-light); 
}

/* ========================================================= */
/* 4. BUTTON COMPONENTS (btn- prefix) */
/* ========================================================= */

/* Zenzele Brand Orange Button (Primary Call-to-Action) */
.btn-brand-orange { 
    background-color: var(--zenzele-orange);
    color: white; 
    border: none;
}
.btn-brand-orange:hover,
.btn-brand-orange:focus { 
    background-color: var(--zenzele-orange-hover); 
    color: white; /* Ensure text remains white on hover */
}

/* Zenzele Form Orange Button (Used for login/reg component) */
.btn--zenzele-orange { 
    background-color: var(--zenzele-orange);
    border-color: var(--zenzele-orange);
    color: #ffffff;
}
.btn--zenzele-orange:hover,
.btn--zenzele-orange:focus {
    background-color: var(--zenzele-orange-hover);
    border-color: var(--zenzele-orange-hover);
}

/* Service Provider CTA Button (Based on Brand Blue) */
.btn.u-bg-brand-blue {
    /* Set text to white since background is dark blue */
    color: white; 
    border: none;
}
.btn.u-bg-brand-blue:hover,
.btn.u-bg-brand-blue:focus {
    /* Darken the blue slightly on hover */
    background-color: #062f4c !important; 
    color: white; 
}


/* ========================================================= */
/* 5. BASE LAYOUT COMPONENTS (Header/Footer) */
/* ========================================================= */

/* Navbar/Logo Component */
.navbar-brand .logo__brand-accent { 
    color: var(--zenzele-orange); 
}

/* NEW: Navbar Logo height/width */
.navbar-logo {
    height: 36px;
    width: auto;
}
@media (max-width: 576px) {
    .navbar-logo {
        height: 30px; 
    }
}

/* Footer Component */
.footer__bottom-bar { 
    background-color: var(--zenzele-sky-blue);
    color: var(--zenzele-blue);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.u-bg-brand-blue a.text-white-50:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    transition: all 0.2s ease;
    display: inline-block;
}

/* ========================================================= */
/* 6. AUTHENTICATION MODULE (The .auth-card block) */
/* ========================================================= */

.auth-card {
    display: flex;
    /* Changed from 100vh to avoid pushing into footer/navbar */
    min-height: 80vh; 
    max-width: 1100px; /* Reduced slightly for better proportions */
    margin: 40px auto; /* Added margin top/bottom to prevent overlapping */
    background: var(--card-bg-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden; /* Ensures background images don't bleed over corners */
}

/* Elements: Panels, Logo, Header */
.auth-card__left-panel {
    flex: 1;
    /* min-width: 400px; */
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-card__right-panel {
    flex: 1.5; 
    background: url('/static/images/meeting-bg.jpg') no-repeat center center / cover;
    position: relative;
    /* width: 400px; */
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 20px;
}

.auth-card__right-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top right, rgba(255,255,255,0.1), rgba(255,255,255,0.4));
    z-index: 1;
}

.auth-card__content { 
    position: relative;
    z-index: 2;
    width: 100%;
    /* ... rest of styles ... */
}

/* Card Overlay (right panel info box) */
.auth-card__overlay {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 15px 20px;
    /* ... other styles ... */
}
.auth-card__overlay--yellow { 
    background-color: var(--color-action-yellow);
    font-weight: bold;
    color: var(--text-dark);
}

/* ========================================================= */
/* 7. FORM BLOCK (.form-group and its elements) */
/* ========================================================= */

.form-group { margin-bottom: 20px; }

/* Input Field Element */
.form-group__input { 
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-sizing: border-box; 
    color: var(--text-dark);
    background-color: #fff;
    font-size: 16px;
}
.form-group__input::placeholder { color: var(--placeholder-color); }
.form-group__input:focus {
    outline: none;
    border-color: var(--color-action-yellow);
    box-shadow: 0 0 0 2px rgba(255, 221, 92, 0.2);
}

/* Submit Button Element (Using form-group block for context) */
.form-group__submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background-color: var(--color-action-yellow);
    color: var(--text-dark); 
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    margin-top: 20px;
}
.form-group__submit-btn:hover {
    background-color: var(--color-action-yellow-hover);
}

/* Radio buttons (used on the register page) */
.radio-group input[type="radio"]:checked + label {
    background-color: var(--color-action-yellow);
    border-color: var(--color-action-yellow);
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(255, 221, 92, 0.3);
}

/* Checkbox */
.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--color-action-yellow);
    border-color: var(--color-action-yellow);
}
.checkbox-group input[type="checkbox"]:checked::after {
    color: var(--text-dark);
}

/* --- Social Login, Separator, and Footer (Re-used from Auth Page) --- */
.social-separator { /* Renamed from .social-login-separator */
    text-align: center;
    /* ... other styles ... */
}
/* ... include all other specific form styles like .password-group, .social-btn, etc. from your original file ... */


/* ========================================================= */
/* 8. RESPONSIVE ADJUSTMENTS (Media Queries) */
/* ========================================================= */

@media (max-width: 900px) {
    .auth-card {
        flex-direction: column;
        max-height: unset;
        min-height: unset;
        width: 95%;
    }

    .auth-card__right-panel {
        min-height: 300px;
        border-radius: 0 0 20px 20px;
        order: -1; 
    }
    
    .auth-card__left-panel {
        padding: 30px 30px;
    }

    .social-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .social-login-separator::before,
    .social-login-separator::after {
        width: 30%; 
    }
}

@media (max-width: 500px) {
    .auth-card {
        width: 100%;
        border-radius: 0;
        box-shadow: none;
    }
    .auth-card__left-panel, .auth-card__right-panel {
        border-radius: 0;
    }
    .auth-card__left-panel {
        padding: 20px;
    }
}

/* ========================================================= */
/* 9. HOMEPAGE HERO (New Section) */
/* ========================================================= */
.hero-section {
    /* Placeholder path for the background image */
    background: url('/static/images/hero-bg-professional.jpg') no-repeat center center / cover;
    position: relative;
    padding: 100px 0;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    /* Negative margin to pull the hero up, hiding the main container's top margin */
    margin-top: -24px; 
    border-bottom: 5px solid var(--zenzele-orange);
}
.hero-section::before { /* Dark overlay for text readability */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.55); 
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
/* Ensure the main container in zenzele_base_web.html doesn't add conflicting padding */
main.container {
    padding-top: 0 !important;
}

/* ========================================================= */
/* 10. IMAGE COMPONENTS */
/* ========================================================= */

/* This now only applies to standard feature images not in circles */
.feature-icon-standard {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}


/* ========================================================= */
/* 11. ABOUT PAGE CUSTOM STYLES */
/* ========================================================= */

/* About Page Specific Hero Background */
.about-hero {
    background: url('/static/images/about-bg.jpg') no-repeat center center / cover !important;
    padding: 120px 0 100px 0; /* Extra top padding for the title */
}

/* Negative margin to lift the cards into the hero section slightly */
.mt-n5 {
    margin-top: -5rem !important;
    position: relative;
    z-index: 5;
}

/* Ensure images in the Values/Mission cards are uniform */
/* 1. The Circular Wrapper */
.feature-img-wrapper {
    width: 120px;           /* Fixed width */
    height: 120px;          /* Fixed height to match width (perfect circle) */
    margin: 0 auto;         /* Centers the circle in the card */
    border-radius: 50%;     /* Makes it a circle */
    overflow: hidden;       /* Clips the image edges to the circle */
    border: 3px solid #B4D6E3; /* Light blue border from your palette */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. The Image inside the circle */
.feature-icon {
    width: 100%;            /* Fills the wrapper width */
    height: 100%;           /* Fills the wrapper height */
    object-fit: cover;      /* CRITICAL: Fills space without distortion */
    object-position: center; /* Keeps the focus of the photo in the middle */
    transition: transform 0.3s ease; /* Smooth zoom for the hover effect */
}

/* 3. Hover Interaction */
.transition-hover:hover .feature-icon {
    transform: scale(1.1);   /* Subtle zoom effect when hovering the card */
}

/* ========================================================= */
/* 12. SOCIAL IMPACT PAGE CUSTOM STYLES */
/* ========================================================= */

/* Impact Page Specific Hero Background */
.impact-hero {
    background: url('/static/images/impact-bg.jpg') no-repeat center center / cover !important;
    padding: 140px 0 100px 0;
    position: relative;
}

/* Optional: Add a subtle dark overlay to the hero image if the text is hard to read */
.impact-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 61, 98, 0.4); /* Dark blue overlay at 40% opacity */
    z-index: 1;
}

.impact-hero .hero-content {
    position: relative;
    z-index: 2;
    color: white; /* Make text white to pop against the dark overlay */
}

/* ========================================================= */
/* 13. LOGIN PAGE CUSTOM STYLES */
/* ========================================================= */

/* Blue Bubble Variant for Auth Pages */
.auth-card__overlay--blue {
    background-color: var(--zenzele-blue) !important;
    color: white !important;
    border-radius: 15px;
    border-left: 5px solid var(--zenzele-orange); /* Adds a professional accent strip */
}

/* Ensure the background image doesn't get cut off weirdly */
.auth-card__right-panel {
    flex: 1.5;
    position: relative;
    background-size: contain !important; /* Shows the full illustration */
    background-position: center bottom !important;
}

/* ========================================================= */
/* 14. DASHBOARD PAGE CUSTOM STYLES */
/* ========================================================= */
/* Dashboard Layout & Sidebar */
:root {
    --zenzele-blue: #1a365d;
    --zenzele-orange: #f68b1e;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 0px;
}

#wrapper {
    display: flex;
    width: 100%;
    overflow-x: hidden; /* Hide the sidebar when it's tucked left */
    margin: 0;
    padding: 0;
}

#sidebar-wrapper {
    min-height: 100vh;
    width: var(--sidebar-width);
    background: var(--zenzele-blue);
    color: white;
    transition: margin-left 0.3s ease-in-out; /* Match the animation speed */
    z-index: 1001;
    flex-shrink: 0; /* Important: prevents the sidebar from squishing */
}

#page-content-wrapper {
    flex: 1;
    min-width: 0; /* VERY IMPORTANT */
    background-color: #f8fafc;
    transition: margin 0.3s ease-in-out;
}

/* --- THE TOGGLE LOGIC --- */
/* When toggled, we remove the margin AND tell the content to be full width */
.toggled #sidebar-wrapper {
    margin-left: calc(-1 * var(--sidebar-width));
}

.toggled #page-content-wrapper {
    flex: 1;
}

/* Ensure no internal Bootstrap containers add side padding */
#page-content-wrapper .container,
#page-content-wrapper .container-fluid {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
}

.dashboard-content-padding {
    padding: 1.5rem 2.5rem;
}

@media (max-width: 768px) {
    .dashboard-content-padding {
        padding: 1rem;
    }
}

/* Sidebar Nav Items */
.sidebar-heading { padding: 2rem 1.5rem; font-size: 1.2rem; font-weight: bold; border-bottom: 1px solid rgba(255,255,255,0.1); }
.list-group-item-sidebar {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: none;
    padding: 1rem 1.5rem;
    transition: 0.2s;
    text-decoration: none;
    display: block;
}
.list-group-item-sidebar:hover {
    background: rgba(255,255,255,0.1);
    color: var(--zenzele-orange);
    padding-left: 2rem;
}
.list-group-item-sidebar.active {
    color: white;
    background: var(--zenzele-orange);
}

/* Header & Cards */
.dashboard-header { background: white; border-bottom: 1px solid #e2e8f0; padding: 0.6rem 2rem; position: sticky; top: 0; z-index: 1000; }
.stat-card { background: white; border: none; border-radius: 20px; padding: 24px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); transition: 0.3s ease; }
.stat-card:hover { transform: translateY(-5px); border-bottom: 4px solid var(--zenzele-orange); }
.btn-action { background: var(--zenzele-blue); color: white; border-radius: 12px; font-weight: 600; padding: 12px; border: none; width: 100%; transition: 0.3s; text-decoration: none; display: inline-block; text-align: center; }
.btn-action:hover { background: var(--zenzele-orange); color: white; }

/* ========================================================= */
/* 15. DOCUMENT VAULT FOR DASHBOARD */
/* ========================================================= */

/* Sidebar Active State for Vault */
#sidebar-wrapper .list-group-item-sidebar.active {
    background-color: var(--zenzele-orange) !important;
    color: white !important;
    border-color: var(--zenzele-orange) !important;
}

/* Document Vault Specifics */
.border-dashed {
    border-style: dashed !important;
    border-width: 2px !important;
}

.btn-upload {
    background-color: var(--zenzele-blue);
    color: white;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-upload:hover {
    background-color: var(--zenzele-orange);
    color: white;
    transform: translateY(-2px);
}

/* 1. Reset for Sidebar Pages: Removes the "centered" white space */
#wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
}


/* Force the container to expand to the edges when inside the dashboard wrapper */
#page-content-wrapper .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* New padding class for internal content so it doesn't touch the screen edges */
.dashboard-content-padding {
    padding: 1.5rem 2.5rem; /* Standard dashboard gutter */
}

@media (max-width: 768px) {
    .dashboard-content-padding {
        padding: 1rem;
    }
}

/* Ensures the background of the entire content area is consistent */
.bg-light {
    background-color: #f8fafc !important; /* Soft gray matching the Dashboard */
}

/* ========================================================= */
/* 16. CUSTOMER DASHBOARD */
/* ========================================================= */

/* Service Category Hover Effect */
.service-cat-card:hover {
    border-color: var(--zenzele-orange) !important;
    background-color: #fffaf5;
    transform: translateY(-3px);
    transition: all 0.2s ease;
}

/* Dashboard Density adjustments */
.project-card {
    transition: transform 0.2s ease;
}
.project-card:hover {
    transform: scale(1.01);
    background-color: #fcfcfc;
}

/* Horizontal Rule with Text */
.hr-text {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #cbd5e1;
}
.hr-text::before, .hr-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}
.hr-text:not(:empty)::before { margin-right: .5em; }
.hr-text:not(:empty)::after { margin-left: .5em; }