:root {
    --background-color: #f5f5f5;
    --primary-color: #769fda;
    --text-color: #5e5a5a;
    --white-color: #ffffff;
    --bg-primary : #009fdb;
}

body {
    background-color: var(--background-color);
    font-family: 'Quicksand', sans-serif;
}
/* login styles*/
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
}

.login-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.brand-section {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-icon {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.brand-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.brand-tagline {
    font-size: 0.875rem;
    color: #6c757d;
}


.welcome-text p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* No border radius */
.form-control, .form-select {
    border-radius: 0 !important;
}

.floating-group {
    position: relative;
}


.floating-group .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 5;
    pointer-events: none;
}
.form-control:focus,
.form-select:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--primary-color) !important;
}

/* Shift input text and placeholder to the right */
.floating-group .form-control {
    padding-left: 2.9rem !important;
}

/* Shift floating label correctly */
.floating-group label {
    padding-left: 2.9rem !important;
    color: #6c757d;  /* System-like neutral gray */
}

/* When floating label rises */
.floating-group .form-control:focus ~ label,
.floating-group .form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.6rem) translateX(1.2rem);
    color: var(--primary-color); 
}

/* Password toggle button */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    z-index: 10;
}
.password-toggle:hover {
    color: var(--primary-color);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    z-index: 10;
    padding: 0.25rem;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.form-check {
    margin: 0;
}

.form-check-input {
    border: 1px solid #dee2e6;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: #495057;
    cursor: pointer;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.btn-login {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.btn-login:hover {
    background: var(--primary-color-dark);
    transform: translateY(-1px);
    color: var(--primary-color);
    box-shadow: 0 4px 4px rgba(13, 110, 253, 0.3);
}

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

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #6c757d;
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e9ecef;
}

.divider span {
    padding: 0 1rem;
}

.support-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.support-link p {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0;
}

.support-link a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

.support-link a:hover {
    text-decoration: underline;
}

.footer-text {
    text-align: center;
    margin-top: 2rem;
    color: #6c757d;
    font-size: 0.8rem;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: 1px solid;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.alert-danger {
    background: #fff5f5;
    border-color: #fecaca;
    color: #dc2626;
}

@media (max-width: 576px) {
    .login-container {
        padding: 1rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }
}

/* Main Navigation Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Logo - Fixed Left */
.navbar-brand {
    flex-shrink: 0;
    margin-right: 0 !important;
}

/* Menu Container - Takes remaining space */
#menuScrollArea {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

#menuScrollArea::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Menu Items - No wrap */
.navbar-nav {
    flex-wrap: nowrap !important;
    margin: 0;
    padding: 0;
}

.navbar-nav .nav-item {
    flex-shrink: 0;
    margin-right: 20px;
    font-weight: 500;
}

.navbar-nav .nav-link {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    color: var(--text-color);
}

/* Scroll Arrows */
#scrollLeft,
#scrollRight {
    border: 1px solid #dee2e6;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 100%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 6px rgba(0,0,0,0.15);
}

#scrollLeft:hover,
#scrollRight:hover {
    background: #f8f9fa;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
}

/* Avatar Dropdown - Fixed Right */
.dropdown {
    flex-shrink: 0;
}

/* Submenu Container Styles */
.submenu-container {
    position: relative;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: none;
    padding: 5px 0;
    border-bottom: 1px solid #dee2e6;
}

.submenu-container.active {
    display: block;
}

#subMenuRow {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 50px;
    white-space: nowrap;
}

#subMenuRow::-webkit-scrollbar {
    height: 4px;
}

#subMenuRow::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#subMenuRow::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#subMenuRow::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.submenu-link {
    text-decoration: none;
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.submenu-link:hover {
    background: #ffffff;
    color: var(--primary-color);;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.submenu-link.active {
    background: var(--primary-color);
    color: white;
}

/* Submenu Scroll Buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background: var(--primary-color);;
    color: white;
    border-color: var(--primary-color);;
}

.scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* Dropdown Menu Improvements */
.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
    margin-top: 8px;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f0f7ff;
    color: var(--primary-color) !important;
    padding-left: 25px;
}

/* Active Menu Item */
.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
    background: #f0f7ff;
    border-radius: 6px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .submenu-container {
        padding: 12px 10px;
    }
    
    #subMenuRow {
        padding: 0 40px;
    }
    
    .navbar-nav .nav-item {
        margin-right: 15px;
    }
}

/* main content */
/* Page Header with Background Title */
.page-header {
    position: relative;
    padding-bottom: 0rem;
    border-bottom: 1px solid #dee2e6;
}

.page-title {
    display: inline-block;
    margin: 0;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    border-radius: 4px;
    color: var(--white-color)
}

#titleWrapper {
    border-bottom: 1px solid #333;
}

/* Minimal KPI Card Styles */
.kpi-card {
    background: white;
    border-radius: 5px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 4px solid;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.kpi-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.kpi-content {
    flex: 1;
}

.kpi-label {
    margin: 0;
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.kpi-value {
    margin: 5px 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: #212529;
}

.kpi-trend {
    font-size: 0.75rem;
    font-weight: 500;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.timeline-content {
    padding-left: 10px;
    border-left: 2px solid #e9ecef;
    padding-bottom: 15px;
}

.card {
    border: none;
    border-radius: 10px;
}

.card-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 20px;
}
.helper-text {
    padding: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
    border-left: 3px solid #e9ecef;
    background: transparent;
}

/* Remove default backgrounds */
main {
    background: transparent;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .kpi-card {
        padding: 1.25rem;
    }
    
    .kpi-icon {
        font-size: 1.5rem;
    }
    
    .kpi-value {
        font-size: 1.5rem;
    }
}

 .table th {
    font-size: 12px;
    font-weight: 600;
    color: #323130;
    text-transform: uppercase;
    padding: 12px 16px;
    border: none;
}
.table td {
    font-size: 14px;
    color: #605E5C;
    padding: 12px 16px;
    font-weight: bold;
    border-top: 1px solid #E1DFDD;
}