@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #dc2626; /* Brand Red from Logo */
    --primary-light: #fef2f2;
    --primary-hover: #b91c1c;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-bg: #0f172a;
    --sidebar-bg: #1e293b;
    --card-bg: #ffffff;
    --body-bg: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #f1f5f9;
    --font-family: 'Outfit', sans-serif;
    --sidebar-width: 260px;
    --transition-speed: 0.3s;
}

body {
    font-family: var(--font-family);
    background-color: var(--body-bg);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--sidebar-bg);
    color: #f8fafc;
    transition: all var(--transition-speed);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 10px rgba(15, 23, 42, 0.05);
}

.sidebar .brand {
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar .brand img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.sidebar .brand span {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0.75rem;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}
.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.menu-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #475569;
    padding: 0.75rem 0.75rem 0.25rem;
}

.menu-item {
    margin-bottom: 0.25rem;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-speed) ease;
}

.menu-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.menu-link.active {
    color: #ffffff;
    background-color: var(--primary-color);
}

.menu-link i {
    font-size: 0.95rem;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
    flex-shrink: 0;
}

/* Sidebar Icon Colors with Circular Backgrounds */
.menu-link i.fa-chart-line { background-color: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.menu-link i.fa-hand-holding-hand { background-color: rgba(20, 184, 166, 0.15); color: #2dd4bf; }
.menu-link i.fa-box-open { background-color: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.menu-link i.fa-users { background-color: rgba(16, 185, 129, 0.15); color: #34d399; }
.menu-link i.fa-truck-field { background-color: rgba(99, 102, 241, 0.15); color: #818cf8; }
.menu-link i.fa-file-invoice { background-color: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.menu-link i.fa-truck-ramp-box { background-color: rgba(236, 72, 153, 0.15); color: #f472b6; }
.menu-link i.fa-file-invoice-dollar { background-color: rgba(16, 185, 129, 0.15); color: #34d399; }
.menu-link i.fa-file-circle-minus { background-color: rgba(239, 68, 68, 0.15); color: #f87171; }
.menu-link i.fa-dolly { background-color: rgba(14, 165, 233, 0.15); color: #38bdf8; }
.menu-link i.fa-rotate-left { background-color: rgba(244, 63, 94, 0.15); color: #fb7185; }
.menu-link i.fa-money-bill-transfer { background-color: rgba(16, 185, 129, 0.15); color: #34d399; }
.menu-link i.fa-money-bill-trend-up { background-color: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.menu-link i.fa-wallet { background-color: rgba(236, 72, 153, 0.15); color: #f472b6; }
.menu-link i.fa-tags { background-color: rgba(168, 85, 247, 0.15); color: #c084fc; }
.menu-link i.fa-file-lines { background-color: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.menu-link i.fa-file-waveform { background-color: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.menu-link i.fa-chart-pie { background-color: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.menu-link i.fa-seedling { background-color: rgba(16, 185, 129, 0.15); color: #34d399; }
.menu-link i.fa-graduation-cap { background-color: rgba(99, 102, 241, 0.15); color: #818cf8; }
.menu-link i.fa-receipt { background-color: rgba(14, 165, 233, 0.15); color: #38bdf8; }
.menu-link i.fa-users-gear { background-color: rgba(168, 85, 247, 0.15); color: #c084fc; }
.menu-link i.fa-sliders { background-color: rgba(100, 116, 139, 0.15); color: #94a3b8; }
.menu-link i.fa-address-book { background-color: rgba(99, 102, 241, 0.15); color: #818cf8; }
.menu-link i.fa-user-check { background-color: rgba(16, 185, 129, 0.15); color: #34d399; }
.menu-link i.fa-calendar-check { background-color: rgba(245, 158, 11, 0.15); color: #fbbf24; }

/* Active and Hover states */
.menu-link:hover i {
    transform: scale(1.1);
}
.menu-link.active i {
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

/* Main Content Area */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: all var(--transition-speed);
}

/* Header/Navbar Styling */
.top-navbar {
    height: 70px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 900;
}

.content-body {
    padding: 2rem;
}

/* Professional Card Styling */
.card-premium {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

/* Stat Cards */
.stat-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

/* Dropdowns & User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.user-profile img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

/* Buttons */
.btn-primary-theme {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary-theme:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}

/* Split Login Page Styling */
.login-container {
    min-height: 100vh;
    display: flex;
    background-color: #ffffff;
}

.login-image-panel {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3.5rem;
    color: #ffffff;
}

.login-image-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.3) 100%);
    z-index: 1;
}

.login-image-content {
    position: relative;
    z-index: 2;
}

.login-image-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.login-image-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.login-form-panel {
    width: 100%;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4.5rem;
    background-color: #ffffff;
}

.login-form-header {
    margin-bottom: 2.5rem;
}

.login-form-header img {
    height: 55px;
    margin-bottom: 1.5rem;
}

.login-form-header h1 {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.login-form-header p {
    color: var(--text-muted);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(220, 38, 38, 0.12);
}

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

@media (max-width: 991.98px) {
    .login-image-panel {
        display: none;
    }
    .login-form-panel {
        max-width: 100%;
        padding: 2.5rem;
    }
}

/* Collapsed Sidebar Styles */
body.sidebar-collapsed .sidebar {
    width: 70px;
}

body.sidebar-collapsed .sidebar .brand span {
    display: none;
}

body.sidebar-collapsed .sidebar .brand {
    justify-content: center;
    padding: 1.5rem 0.5rem;
}

body.sidebar-collapsed .sidebar-menu {
    padding: 1rem 0.35rem;
}

body.sidebar-collapsed .menu-header {
    display: none;
}

body.sidebar-collapsed .menu-link span {
    display: none;
}

body.sidebar-collapsed .menu-link {
    justify-content: center;
    padding: 0.75rem 0;
}

body.sidebar-collapsed .menu-link i {
    font-size: 1.25rem;
    margin: 0;
}

body.sidebar-collapsed .main-wrapper {
    margin-left: 70px;
}

/* Smooth transitions */
.sidebar, .main-wrapper, .brand span, .menu-link span, .menu-header {
    transition: all var(--transition-speed) ease-in-out;
}

@media (max-width: 991.98px) {
    .sidebar {
        left: -260px;
    }
    body.sidebar-open .sidebar {
        left: 0;
        width: 260px;
    }
    body.sidebar-open .sidebar .brand span,
    body.sidebar-open .sidebar .menu-link span,
    body.sidebar-open .sidebar .menu-header {
        display: block !important;
    }
    body.sidebar-open .sidebar .menu-link {
        justify-content: flex-start !important;
        padding: 0.75rem 1rem !important;
    }
    .main-wrapper {
        margin-left: 0 !important;
    }
}



