/*!
 * Bootstrap Grid v5.1.3 (https://getbootstrap.com/)
 * Copyright 2011-2021 The Bootstrap Authors
 * Copyright 2011-2021 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
 *  ;
 */
/* ========================================
   CRITICAL FIXES - Logo Colors
   Navy blue: #001a72
   Light blue: #505bf0
   Light Yellow: #FFD580
   Override Bootstrap theme conflicts
   ======================================== */

/* ========================================
   CRITICAL FIXES - Must load first
   Override Bootstrap theme conflicts
   ======================================== */

.sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 18rem !important;
    height: 100vh !important;
    overflow-y: auto !important;
    /*background: linear-gradient(180deg, #4F46E5 0%, #4338CA 100%) !important;*/
    background: linear-gradient(180deg, white 0%, white 100%) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border-right: none !important;
    transform: translateX(0) !important;
    transition: transform 0.3s ease !important;
    z-index: 1000 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 1.5rem !important;
}

.logo-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
    border-radius: 12px !important;
    margin: 4rem;
    /*padding: 3rem !important;*/
    margin-bottom: 1.5rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.logo-container img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 50% !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#page-content {
    margin-left: 18rem !important;
    padding: 2.5rem 3rem !important;
    background: transparent !important;
    min-height: 100vh !important;
}

/* End critical fixes */

:root {
  --bs-blue: #0d6efd;
  --bs-indigo: #6610f2;
  --bs-purple: #6f42c1;
  --bs-pink: #d63384;
  --bs-red: #dc3545;
  --bs-orange: #fd7e14;
  --bs-yellow: #ffc107;
  --bs-green: #198754;
  --bs-teal: #20c997;
  --bs-cyan: #0dcaf0;
  --bs-white: #fff;
  --bs-gray: #6c757d;
  --bs-gray-dark: #343a40;
  --bs-gray-100: #f8f9fa;
  --bs-gray-200: #e9ecef;
  --bs-gray-300: #dee2e6;
  --bs-gray-400: #ced4da;
  --bs-gray-500: #adb5bd;
  --bs-gray-600: #6c757d;
  --bs-gray-700: #495057;
  --bs-gray-800: #343a40;
  --bs-gray-900: #212529;
  --bs-primary: #0d6efd;
  --bs-secondary: #6c757d;
  --bs-success: #198754;
  --bs-info: #0dcaf0;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
  --bs-primary-rgb: 13, 110, 253;
  --bs-secondary-rgb: 108, 117, 125;
  --bs-success-rgb: 25, 135, 84;
  --bs-info-rgb: 13, 202, 240;
  --bs-warning-rgb: 255, 193, 7;
  --bs-danger-rgb: 220, 53, 69;
  --bs-light-rgb: 248, 249, 250;
  --bs-dark-rgb: 33, 37, 41;
  --bs-white-rgb: 255, 255, 255;
  --bs-black-rgb: 0, 0, 0;
  --bs-body-color-rgb: 33, 37, 41;
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.5;
  --bs-body-color: #212529;
  --bs-body-bg: #fff;
  /* Custom App Variables */
  --primary-color: #4F46E5;
  --primary-dark: #4338CA;
  --primary-light: #818CF8;
  --secondary-color: #06B6D4;
  --accent-color: #EC4899;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --bg-light: #F9FAFB;
  --bg-white: #FFFFFF;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-radius: 12px;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@600;700&display=swap');

/* debut addition jan22*/
body {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f2f2f2;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #F9FAFB 0%, #E5E7EB 100%);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

h1, h2, h3,h4 {
    font-family: 'Inter';
    font-weight: 700;
    color: var(--text-primary);
}

h4 {
    font-family: 'Inter';
    font-weight: 600;
    color: var(--text-primary);
}

h6 {
    font-family: 'Inter';
    font-weight: 0;
    color: var(--text-primary);
    color: white;
}

h2,h3,h4,p,h1,h5 {
    color: #001a72;
}

h5 {
    font-size: 1rem !important;
    font-weight: 400;
}

h1, ul {
    color: white;
}


p {
    line-height: 1.5;
    font-size: 0.8rem !important;
}
a:active {
  color: yellow;
  background-color: transparent;
  text-decoration: underline;
}

/* Forgot Password Link */
.forgot-password-link {
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

.forgot-password-link:hover {
    text-decoration: underline !important;
}

/* Sidebar Styling */
.sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 18rem !important;
    height: 100vh !important;
    overflow-y: auto !important;
    /*background: linear-gradient(180deg, #4F46E5 0%, #4338CA 100%) !important;*/
    background: linear-gradient(180deg, #001a72) !important;
    box-shadow: var(--shadow-xl);
    border-right: none !important;
    transform: translateX(0) !important;
    transition: transform 0.3s ease !important;
    z-index: 1000 !important;
}

.sidebar h2, .sidebar h4 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar h1, .sidebar h3 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/*html { font-size: 80%;}*/

.sidebar h2 {
    font-size: 1.5rem !important;
    margin-bottom: 0.25rem;
}


.bottom-button-absolute {
    position: absolute; /* Positions the button relative to its positioned parent */
    bottom: 0; /* Sticks the button to the bottom edge of the parent */
    left: 0; /* Aligns to the left edge */
    width: 100%; /* Optional: Makes the button span the full width */
}

.sidebar h4 {
    font-size: 1rem !important;
    font-weight: 400;
    opacity: 0.9;
}

.sidebar hr {
    border-color: rgba(255, 255, 255, 0.2) !important;
    margin: 1.5rem 0;
}

/* Navigation Links */
.nav-link {
    border-radius: 8px !important;
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8) !important;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    transform: translateX(4px);
}

.nav-link.active {
    background: white !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

/* Main Content Area */
#page-content {
    background: transparent;
    padding: 2.5rem 3rem !important;
    margin-left: 18rem; /* Default desktop margin */
}

/* Cards */
.modern-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.modern-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.5rem !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.rem !important;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Styling */
.form-label, .dash-bootstrap-components .form-text {
    font-weight: 600;
    /*color: var(--text-primary);*/
    color: #001a72;
    margin-bottom: 0.1rem !important;
    font-size: 0.7rem !important;
}

.form-label-color {
    font-weight: 400;
    /*color: #505bf0;*/
    color: #505bf0;
    margin-bottom: 0.1rem;
    font-size: 0.7rem !important;
}

.form-label-color-grey {
    font-weight: 400;
    /*color: #505bf0;*/
    color: #36454F;
    margin-bottom: 0.1rem;
    font-size: 0.7rem !important;
}

.form-label-dbc {
    font-weight: 300;
    /*color: var(--text-primary);*/
    color: black;
    margin-bottom: 0.1rem !important;
    font-size: 0.9rem !important;
}

input[type="number"],
.Select-control,
._dash-dropdown {
    border: 2px solid #E5E7EB !important;
    border-radius: 8px !important;
    padding: 0.25rem 1rem !important;
    font-size: 0.8rem !important;
    transition: all 0.3s ease;
    background: white !important;
}

input[type="number"]:focus,
.Select-control:focus,
._dash-dropdown:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
    outline: none;
}

/* Dropdown Styling */
.Select-control {
    height: auto !important;
}

/* Button Styling */
button, .btn {
    /*background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);*/
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);

    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 400;
    font-size: 0.8rem !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #3730A3 100%);
}

button:active, .btn:active {
    transform: translateY(0);
}

/* Chart Container */
.chart-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    /*margin-bottom: 2rem;*/
    height: 100%;
    /*transition: all 0.3s ease;*/
     /*for prod, put this at 80% ;*/
}

.chart-container:hover {
    box-shadow: var(--shadow-lg);
}

/* Section Headers */
.section-header {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
    color: var(--text-primary);
    font-weight: 700;
}

/* Form Section */
.form-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

/* Row Spacing */
.row {
    margin-bottom: 1rem;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    font-size: 1rem !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Logo Container */
.logo-container {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.logo-container img {
    width: 100%;
    height: auto;
}

/* Divider */
hr {
    border: black;
    height: 1px;
    /*background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);*/
    margin: 2rem 0;
}

/* ============================================
   RESPONSIVE DESIGN - Mobile, Tablet, Desktop
   ============================================ */

/* Mobile Devices (up to 576px) */
@media (max-width: 576px) {
    /* Hide sidebar on mobile by default */
    .sidebar {
        transform: translateX(-100%) !important;
        width: 18rem !important;
    }

    .sidebar.show {
        transform: translateX(0) !important;
    }

    /* Adjust content for mobile - no left margin when sidebar is hidden */
    #page-content {
        margin-left: 0 !important;
        padding: 1rem !important;
    }

    /* Hero section adjustments */
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    /* Cards stack vertically on mobile */
    .modern-card {
        margin-bottom: 1rem;
        padding: 1.25rem;
    }

    /* Form section adjustments */
    .form-section {
        padding: 1.5rem;
    }

    /* Section headers */
    .section-header {
        font-size: 1.5rem !important;
         align-items: center;
        justify-content: center;
    }

    .section-subheader {
         align-items: center;
        justify-content: center;
    }

    /* Buttons full width on mobile */
    button, .btn {
        width: 100%;
        padding: 1rem;
    }

    /* Chart containers*/
    .chart-container {
        /*margin-bottom: 3rem;*/
        /*padding: 3rem;*/
    }

    /* Sidebar logo */
    .logo-container img {
        height: auto;
        max-height: 100px;
    }

    .sidebar h2 {
        font-size: 1.25rem !important;
    }

    /* Form inputs */
    input[type="number"],
    .Select-control,
    ._dash-dropdown {
        font-size: 14px !important; /* Prevents zoom on iOS */
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Overlay for mobile menu */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        pointer-events: none;
    }

    .sidebar-overlay.show {
        display: block;
        pointer-events: auto;
    }
}

/* Tablets (577px to 992px) */
@media (min-width: 577px) and (max-width: 992px) {
    /* Sidebar visible on tablets */
    .sidebar {
        width: 15rem !important;
        transform: translateX(0) !important;
    }

    #page-content {
        margin-left: 15rem !important;
        padding: 2rem !important;
    }

    /* Hero adjustments */
    .hero-title {
        font-size: 2rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .hero-section {
        padding: 2rem 1.5rem !important;
    }

    /* Cards */
    .modern-card {
        padding: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .form-section {
        padding: 1rem;
    }

    /* Section headers */
    .section-header {
        font-size: 1.25rem !important;
    }

    /* Chart containers
    .chart-container {
        padding: 1.25rem;
    }
*/
    /* Logo */
    .logo-container img {
        max-height: 120px;
    }
}

/* Desktop (993px and above) */
@media (min-width: 993px) {
    /* Sidebar always visible on desktop */
    .sidebar {
        width: 18rem !important;
        transform: translateX(0) !important;
    }

    #page-content {
        margin-left: 18rem !important;
        padding: 2.5rem 3rem !important;
    }
}

/* Extra Large screens (1400px and above) */
@media (min-width: 1400px) {
    .sidebar {
        width: 20rem !important;
    }

    #page-content {
        margin-left: 20rem !important;
        padding: 3rem 4rem !important;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .hero-section {
        padding: 5rem 3rem;
    }
}

/* Landscape orientation adjustments for tablets */
@media (min-width: 577px) and (max-width: 992px) and (orientation: landscape) {
    .sidebar {
        width: 14rem !important;
    }

    #page-content {
        margin-left: 14rem !important;
        padding: 1.5rem 2rem !important;
    }

    .hero-section {
        padding: 2.5rem 2rem;
    }
}

/* Print styles */
@media print {
    .sidebar {
        display: none !important;
    }

    #page-content {
        margin-left: 0 !important;
    }

    .modern-card, .form-section {
        break-inside: avoid;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(67, 56, 202, 0.08) 100%);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-screen.show {
    display: flex;
    opacity: 1;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeInScale 0.6s ease-out;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    background: conic-gradient(
        from 0deg,
        #4F46E5 0deg,
        #4338CA 120deg,
        #818CF8 240deg,
        #4F46E5 360deg
    );
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.3);
}

.loading-text {
    font-family: 'Inter';
    font-size: 1rem !important;
    font-weight: 600;
    background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.loading-text::after {
    content: '';
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Login/Signup Styles */
.login-left-section {
    padding: 2rem;
}

.auth-input {
    transition: all 0.3s ease !important;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.auth-btn {
    transition: all 0.3s ease !important;
}

.auth-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.2);
}

.auth-btn:active {
    transform: translateY(0);
}

/* Login Responsive Design */
@media (max-width: 768px) {
    .login-left-section {
        display: none !important;
    }

    #auth-form {
        max-width: 100%;
        margin: 1rem;
    }
}

@media (max-width: 576px) {
    #auth-form {
        padding: 1.5rem !important;
    }

    #auth-form h2 {
        font-size: 1.5rem !important;
    }
}

/* Logout Button Styling */
.logout-btn:hover {
    background-color: rgba(220, 38, 38, 0.2) !important;
    border-color: rgba(220, 38, 38, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.logout-btn:active {
    transform: translateY(0);
}

/*# sourceMappingURL=bootstrap-grid.css.map */
