/* ECYDO MEAL Dashboard - Premium Design System */

:root {
    --primary: #80C9ED;
    /* ECYDO Light Blue */
    --success: #A3D35B;
    /* ECYDO Light Green */
    --info: #06b6d4;
    --warning: #f59e0b;
    --danger: #D34C54;
    /* ECYDO Red */
    --dark: #0f172a;
    --sidebar: #1e293b;
    --light: #f8fafc;
    --text: #1e293b;
    --text-muted: #64748b;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #80C9ED 0%, #3498db 100%);
    --grad-success: linear-gradient(135deg, #A3D35B 0%, #82b03a 100%);
    --grad-info: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --grad-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --grad-danger: linear-gradient(135deg, #D34C54 0%, #b03a42 100%);

    --shadow-premium: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --sidebar-width: 260px;
}

/* System Logo Styling */
.system-logo {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: inline-block;
}

.system-logo:hover {
    transform: scale(0.9);
    /* Zoom out effect */
    filter: brightness(1.15) drop-shadow(0 0 10px rgba(67, 97, 238, 0.2));
}

.logo-dashboard {
    height: 148px !important;
    width: 248px !important;
    margin-bottom: 0rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
}

.logo-auth {
    height: 120px !important;
    width: auto !important;
    margin-bottom: 0rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
}

.logo-home {
    max-height: 142px !important;
    width: auto !important;
    /* Reduced for a more compact look */
    width: auto;
}

/* Dark Theme Overrides */
html.dark-theme {
    --light: #0f172a;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --sidebar: #020617;
}

html.dark-theme body {
    background-color: var(--light);
    color: var(--text);
}

html.dark-theme .navbar {
    background: rgba(15, 23, 42, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html.dark-theme .card:not(.dashboard-tile):not(.dashboard-hero) {
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
}

html.dark-theme .text-dark {
    color: #f8fafc !important;
}

html.dark-theme .table {
    color: #f8fafc;
}

html.dark-theme .bg-light,
html.dark-theme .table thead.bg-light {
    background-color: #1e293b !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Landing Page Hero */
.hero-gradient {
    position: relative;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)),
        url('../img/home_hero_bg.png') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.gradient-text {
    background: linear-gradient(to right, #4cc9f0, #4361ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Sidebar & Layout */
#wrapper {
    display: flex;
    width: 100%;
}

#sidebar-wrapper {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar);
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1050; /* Higher than sticky-top (1020) if we want it on top, but topbar is inside content... wait. */
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#page-content-wrapper {
    flex: 1;
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sidebar Toggling */
#wrapper.toggled #sidebar-wrapper {
    left: calc(-1 * var(--sidebar-width));
}

#wrapper.toggled #page-content-wrapper {
    margin-left: 0;
}

#wrapper.toggled footer.fixed-footer {
    left: 0;
    width: 100%;
}

/* FIXED FOOTER SYSTEM */
footer.fixed-footer {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    z-index: 998;
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

#page-content-wrapper {
    padding-bottom: 70px;
}

/* Colorful Dashboard Tiles */
.dashboard-tile {
    border: none !important;
    border-radius: 16px !important;
    color: white !important;
    padding: 1.25rem !important;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.dashboard-hero {
    border-radius: 24px !important;
    background: var(--grad-primary);
    color: white;
    padding: 2.5rem !important;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-premium);
}

.dashboard-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.dashboard-tile i {
    font-size: 2.5rem;
    opacity: 0.3;
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
}

.tile-primary {
    background: var(--grad-primary);
}

.tile-success {
    background: var(--grad-success);
}

.tile-info {
    background: var(--grad-info);
}

.tile-warning {
    background: var(--grad-warning);
}

.tile-danger {
    background: var(--grad-danger);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Auth Pages Styling */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)),
        url('../img/home_hero_bg.png') no-repeat center center;
    background-size: cover;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1001;
    /* Above any fixed dashboard elements if accidentally rendered */
}

.auth-card {
    border-radius: 28px !important;
    overflow: hidden;
    border: none !important;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    background: white;
    max-width: 1100px;
    width: 100%;
    display: flex !important;
    flex-direction: row;
    min-height: 600px;
}

.login-left-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 40%;
}

.login-left-green h3,
.login-left-green p,
.login-left-green li {
    color: white !important;
}

.register-left-blue {
    background: var(--grad-primary);
    color: white;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 40%;
}

.auth-right {
    padding: 3rem 2.5rem;
    background: white;
    width: 60%;
}

.btn-green {
    background: #10b981;
    color: white;
    border: none;
    transition: all 0.3s;
}

.btn-green:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    height: 70px;
}

.topbar-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-muted);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.topbar-icon-btn:hover {
    background: #f1f5f9;
    color: var(--primary);
    transform: translateY(-2px);
}

#menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s ease;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

#menu-toggle:hover {
    background: #f1f5f9;
    color: var(--primary) !important;
    transform: scale(1.05);
}

.topbar-icon-btn i {
    font-size: 1.15rem;
}

.topbar-search {
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
    width: 240px;
    transition: all 0.3s ease;
}

.topbar-search:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(67, 97, 238, 0.1);
    width: 300px;
    outline: none;
}

.report-kpi-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    border-radius: 12px !important;
}

.report-kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3) !important;
    filter: brightness(1.1);
}

.card.border-0.shadow-sm:not(.report-kpi-card) {
    transition: all 0.3s ease;
}

.card.border-0.shadow-sm:not(.report-kpi-card):hover {
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar-wrapper {
        left: -100%;
    }

    #page-content-wrapper {
        margin-left: 0 !important;
    }

    #wrapper.toggled #sidebar-wrapper {
        left: 0;
    }

    #page-content-wrapper {
        margin-left: 0 !important;
        transition: none; /* Disable transition on mobile for better feel if needed, or keep it */
    }

    footer.fixed-footer {
        position: relative !important;
        left: 0 !important;
        width: 100% !important;
        box-shadow: none;
        border-top: 1px solid #e2e8f0;
    }

    .auth-card {
        flex-direction: column !important;
        max-width: 500px;
    }

    .login-left-green,
    .register-left-blue,
    .auth-right {
        width: 100% !important;
        padding: 2rem 1.5rem;
    }

    .login-left-green,
    .register-left-blue {
        display: none !important;
    }

    .dashboard-tile {
        margin-bottom: 1rem;
    }
}

/* Back Button - Warm Theme */
.btn-warm-outline {
    color: #f59e0b !important;
    border: 1px solid #f59e0b !important;
    background-color: transparent !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-warm-outline:hover {
    background-color: #f59e0b !important;
    color: white !important;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25) !important;
}

/* Social Media Icons Hover Effect */
.social-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.social-link:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(128, 201, 237, 0.4) !important;
}

.social-link:hover i {
    color: white !important;
}

/* Further Layout Expansion Overrides */
@media (min-width: 1200px) {
    .container {
        max-width: 95% !important;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 96% !important;
    }
}

@media (min-width: 2000px) {
    .container {
        max-width: 2200px !important;
        /* Limit maximum growth on ultra-wide screens */
    }
}

/* Further reduce default horizontal padding to expand content further */
.container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

/* Partners Carousel Styling */
.partners-slider {
    overflow: hidden;
    padding: 80px 0;
    background: #f8f9fa;
    white-space: nowrap;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.partners-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
    align-items: center;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    flex: 0 0 auto;
    width: 280px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    padding: 20px;
}

.partner-logo i {
    font-size: 2.5rem;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.partner-logo span {
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-glow);
}

.partner-logo:hover i {
    color: var(--primary);
}

.partner-logo:hover span {
    color: var(--dark);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Testimonials Styling */
.testimonial-card {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.testimonial-quote-icon {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.1;
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial-author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid var(--primary-glow);
}