/* ========================================
   MODERN DASHBOARD CSS - COMPLETE EDITION
   ======================================== */

/* 1. ROOT VARIABLES */
:root {
    --primary-teal: #14b8a6;
    --primary-teal-dark: #0d9488;
    --primary-teal-light: #2dd4bf;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --sidebar-dark: #1a1f2e;
    --submenu-dark: #2d3748;
    --primary-gradient: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    --secondary-gradient: linear-gradient(135deg, #64748b 0%, #475569 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

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

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

/* 3. BODY & CONTENT WRAPPER */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #1a1a2e;
}

.content-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 30px;
    transition: var(--transition-smooth);
}

/* 4. MODERN SIDEBAR */
.main-sidebar {
    background: #1a1f2e !important;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.3) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    overflow-y: auto !important;
    height: 100vh !important;
    transition: var(--transition-smooth);
}

.main-sidebar .brand-link {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%) !important;
    border-bottom: none !important;
    padding: 24px 9px !important;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.main-sidebar .brand-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}



.main-sidebar .brand-link .brand-image {
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.main-sidebar .brand-link .brand-text {
    font-weight: 700 !important;
    font-size: 22px !important;
    letter-spacing: 0.5px;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Sidebar Container */
.main-sidebar .nav-sidebar {
    padding: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

.main-sidebar .nav-sidebar .nav-item {
    width: 100% !important;
    margin: 0 !important;
}

/* Sidebar Menu Items */
.main-sidebar .nav-sidebar .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    border-radius: 0px !important;
    margin: 0px !important;
    padding: 16px 20px;
    transition: var(--transition-smooth);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    overflow: hidden;
    width: 100% !important;
    box-sizing: border-box !important;
}

.main-sidebar .nav-sidebar .nav-item .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #14b8a6, #2dd4bf);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.main-sidebar .nav-sidebar .nav-item .nav-link:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.95) !important;
}


.main-sidebar .nav-sidebar .nav-item .nav-link.active {
    background: #14b8a6 !important;
    color: white !important;
    box-shadow: none !important;
    transform: none !important;
    border-radius: 0px !important;
}

.main-sidebar .nav-sidebar .nav-item .nav-link i {
    color: inherit;
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.main-sidebar .nav-header {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    padding: 20px 25px 10px;
    margin-top: 10px;
}

/* Sidebar Scrollbar */
.main-sidebar::-webkit-scrollbar {
    width: 6px !important;
}

.main-sidebar::-webkit-scrollbar-track {
    background: transparent !important;
}

.main-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
}

.main-sidebar:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Ensure the inner sidebar is also scrollable if needed */
.sidebar {
    padding: 0 !important;
    overflow-y: auto !important;
    height: calc(100vh - 75px) !important;
    /* Adjust for brand logo height */
}

/* Hide horizontal scroll if any */
.main-sidebar,
.sidebar {
    overflow-x: hidden !important;
}


/* ========================================
   SIDEBAR SUBMENU – MODERN UNIQUE STYLE
   ======================================== */

/* Submenu container */
.main-sidebar .nav-sidebar .nav-treeview {
    padding-left: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
}

/* Submenu links */
.main-sidebar .nav-sidebar .nav-treeview>.nav-item>.nav-link {
    background: #3d3d52 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border-radius: 0px;
    margin: 0px;
    padding: 12px 16px 12px 20px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Left glowing indicator */
.main-sidebar .nav-sidebar .nav-treeview>.nav-item>.nav-link::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #9da3bd, #8c8b8e);
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    transition: var(--transition-smooth);
}

/* Hover effect */
.main-sidebar .nav-sidebar .nav-treeview>.nav-item>.nav-link:hover {
    /* background: #97e2a3 !important; */
    color: #ffffff !important;
}

/* Show dot on hover */
.main-sidebar .nav-sidebar .nav-treeview>.nav-item>.nav-link:hover::before {
    transform: translateY(-50%) scale(1);
}

/* Active submenu */
.main-sidebar .nav-sidebar .nav-treeview>.nav-item>.nav-link.active {
    background: #2da194e0 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Active indicator dot */
/* .main-sidebar .nav-sidebar .nav-treeview > .nav-item > .nav-link.active::before {
    transform: translateY(-50%) scale(1);
    background: #ffffff;
} */


/* 5. CONTENT HEADER */
.content-header-modern {
    background: white;
    padding: 28px 32px;
    border-radius: 20px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.header-title-gradient {
    font-size: 32px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px !important;
}

.custom-breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.custom-breadcrumb .breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}



.custom-breadcrumb .breadcrumb-item.active {
    color: #94a3b8;
    font-weight: 500;
}

/* Search Box */
.search-box-modern {
    position: relative;
}

.search-box-modern i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    z-index: 1;
}

.search-box-modern input {
    padding: 14px 20px 14px 48px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 14px !important;
    width: 280px;
    font-size: 15px !important;
    transition: var(--transition-smooth) !important;
    background: #f8fafc;
}

.search-box-modern input:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1) !important;
    background: white;
}

/* Notification Buttons */
.notification-btn-modern {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    color: #64748b;
    font-size: 18px;
}



.notification-badge-modern {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

/* 6. STAT CARDS */
.stat-card-modern {
    background: white;
    padding: 28px;
    border-radius: 22px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}



.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0d9488, #2dd4bf);
}

.stat-card-info::before {
    background: linear-gradient(90deg, #3b82f6, #2563eb, #1d4ed8);
}

.stat-card-success::before {
    background: linear-gradient(90deg, #10b981, #059669, #047857);
}

.stat-card-warning::before {
    background: linear-gradient(90deg, #f59e0b, #d97706, #b45309);
}

.stat-card-danger::before {
    background: linear-gradient(90deg, #ef4444, #dc2626, #b91c1c);
}

/* Animated Particles */
.stat-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.stat-particles span {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

.stat-particles span:nth-child(1) {
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

.stat-particles span:nth-child(2) {
    top: 60%;
    right: 25%;
    animation-delay: 2s;
    width: 25px;
    height: 25px;
}

.stat-particles span:nth-child(3) {
    top: 40%;
    right: 5%;
    animation-delay: 4s;
    width: 30px;
    height: 30px;
}

.stat-overlay {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 50%;
    pointer-events: none;
}

.stat-content {
    position: relative;
    z-index: 1;
}

.stat-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.stat-icon-modern {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}



.stat-card-info .stat-icon-modern {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.stat-card-success .stat-icon-modern {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-card-warning .stat-icon-modern {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-card-danger .stat-icon-modern {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.stat-trend-modern {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.stat-trend-up {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.stat-trend-down {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.stat-body-modern {
    margin-top: 12px;
}

.stat-value-modern {
    font-size: 38px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-label-modern {
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-progress-bar {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 16px;
}

.stat-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 1s ease;
}

.stat-card-info .stat-progress-fill {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.stat-card-success .stat-progress-fill {
    background: linear-gradient(90deg, #10b981, #059669);
}

.stat-card-warning .stat-progress-fill {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.stat-card-danger .stat-progress-fill {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* 7. WELCOME CARD */
.welcome-card-gradient {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    padding: 45px;
    border-radius: 24px;
    color: white;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-decoration,
.welcome-decoration-2,
.welcome-decoration-3 {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
}

.welcome-decoration {
    top: -15%;
    right: -8%;
    width: 320px;
    height: 320px;
    animation-delay: 0s;
}

.welcome-decoration-2 {
    bottom: -25%;
    left: -5%;
    width: 240px;
    height: 240px;
    animation-delay: 2s;
}

.welcome-decoration-3 {
    top: 40%;
    right: 20%;
    width: 150px;
    height: 150px;
    animation-delay: 4s;
}

.welcome-content-modern {
    position: relative;
    z-index: 1;
}

.welcome-emoji {
    font-size: 56px;
    margin-right: 20px;
    animation: pulse 3s infinite;
}

.welcome-heading {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: white !important;
    margin-bottom: 12px !important;
    line-height: 1.3;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.welcome-description {
    font-size: 17px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0 !important;
    line-height: 1.7;
    max-width: 90%;
}

.quick-actions-modern {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.quick-btn-modern {
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}



.quick-btn-modern i {
    margin-right: 10px;
    font-size: 16px;
}

/* 8. MODERN CARDS */
.card-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* overflow: hidden; */
    transition: var(--transition-smooth);
}



.card-header-modern {
    padding: 24px 28px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
}

.card-title-modern {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn-icon-modern {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: white;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: #64748b;
}



.card-body-modern {
    padding: 28px;
}

/* 9. MINI STATS GRID */
.mini-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    transition: var(--transition-smooth);
    border: 1px solid #e2e8f0;
}



.mini-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.bg-gradient-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.bg-gradient-orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.bg-gradient-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.mini-stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mini-stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a2e;
}

.mini-stat-change {
    font-size: 12px;
    font-weight: 700;
}

.mini-stat-change.positive {
    color: #10b981;
}

.mini-stat-change.negative {
    color: #ef4444;
}

/* 10. ACTIVITY CARD */
.activity-list {
    padding: 0;
}

.activity-item {
    display: flex;
    align-items: start;
    gap: 16px;
    padding: 20px 28px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.3s;
}

.activity-item:last-child {
    border-bottom: none;
}



.activity-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.activity-icon.bg-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.activity-icon.bg-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.activity-icon.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.activity-icon.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px 0;
}

.activity-time {
    font-size: 13px;
    color: #94a3b8;
}

/* 11. RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .mini-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 20px;
    }

    .content-header-modern {
        padding: 20px;
    }

    .header-title-gradient {
        font-size: 26px !important;
    }

    .search-box-modern input {
        width: 100%;
    }

    .stat-card-modern {
        margin-bottom: 20px;
    }

    .stat-value-modern {
        font-size: 32px;
    }

    .stat-icon-modern {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    .welcome-card-gradient {
        padding: 30px 25px;
    }

    .welcome-heading {
        font-size: 24px !important;
    }

    .welcome-description {
        font-size: 15px !important;
    }

    .welcome-emoji {
        font-size: 44px;
    }

    .quick-actions-modern {
        flex-direction: column;
    }

    .quick-btn-modern {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .mini-stats-grid {
        grid-template-columns: 1fr;
    }

    .card-header-modern,
    .card-body-modern {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .stat-value-modern {
        font-size: 28px;
    }

    .stat-label-modern {
        font-size: 13px;
    }

    .welcome-heading {
        font-size: 20px !important;
    }

    .welcome-description {
        font-size: 14px !important;
    }

    .notification-btn-modern {
        width: 44px;
        height: 44px;
    }
}

/* 12. UTILITY CLASSES */
.shadow-soft {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.rounded-modern {
    border-radius: 20px;
}

.text-gradient {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 13. PAGE LOADER */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader {
    width: 60px;
    height: 60px;
    display: inline-block;
    position: relative;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 25px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    color: white;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-gradient-primary {
    background: var(--primary-gradient) !important;
    background-image: var(--primary-gradient) !important;
    color: white !important;
    border: none !important;
    padding: 10px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
}

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

.bg-gradient-primary {
    background: var(--primary-gradient) !important;
}

.navbar-nav .nav-item .dropdown-menu .dropdown-item.active {
    background: var(--primary-gradient) !important;
}

.dropdown-item.active,
.dropdown-item:active {
    background: var(--primary-gradient) !important;
}

.main-header {
    padding-left: 30px !important;
}

/* Navbar Dropdown Modern Look (Matching Sidebar) */
.main-header .dropdown-menu {
    background: #1a1f2e !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    padding: 8px !important;
    margin-top: 10px !important;
}

.main-header .dropdown-item {
    color: rgba(255, 255, 255, 0.75) !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-weight: 500 !important;
    transition: var(--transition-smooth);
}

.main-header .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    transform: translateX(5px);
}

.main-header .dropdown-item i {
    color: var(--primary-teal) !important;
    margin-right: 12px !important;
    transition: var(--transition-smooth);
}

.main-header .dropdown-item.active i {
    color: #ffffff !important;
}

.main-header .navbar-nav .nav-item .nav-link i {
    color: var(--primary-teal) !important;
    font-size: 18px;
    transition: var(--transition-smooth);
}

/* Tooltip Base Styling */
.main-header .navbar-nav .nav-item {
    position: relative;
}

/* Tooltip Box */
.main-header .navbar-nav .nav-item::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(26, 31, 46, 0.95);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition-delay: 0.5s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1050;
    pointer-events: none;
    line-height: 1.4;
}

/* Tooltip Arrow */
.main-header .navbar-nav .nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent rgba(26, 31, 46, 0.95) transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition-delay: 0.5s;
    z-index: 1050;
    pointer-events: none;
}

/* Show Tooltip on Hover */
.main-header .navbar-nav .nav-item[data-tooltip]:hover::before,
.main-header .navbar-nav .nav-item[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.main-header .navbar-nav .nav-item .nav-link:hover i {
    color: var(--primary-teal-dark) !important;
    transform: scale(1.1);
}

.page-item.active .page-link {
    background: var(--primary-gradient) !important;
    border-color: var(--primary-teal) !important;
}

/* Bootstrap Theme Overrides */
.text-primary {
    color: var(--primary-teal) !important;
}

.text-success {
    color: #10b981 !important;
}

.text-info {
    color: var(--primary-teal) !important;
}

.btn-primary,
.btn-info {
    background: var(--primary-gradient) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.btn-primary:hover,
.btn-info:hover {
    background: var(--primary-teal-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(13, 148, 136, 0.3);
}

.btn-outline-primary {
    color: var(--primary-teal) !important;
    border-color: var(--primary-teal) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-teal) !important;
    color: white !important;
}

.badge-primary {
    background-color: var(--primary-teal) !important;
}

.badge-info {
    background-color: var(--primary-teal) !important;
}

.badge-success {
    background-color: #10b981 !important;
}

.badge-danger {
    background-color: #ef4444 !important;
}

.badge-warning {
    background-color: #f59e0b !important;
    color: white !important;
}

.card-primary.card-outline {
    border-top: 3px solid var(--primary-teal) !important;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: var(--primary-teal) !important;
}

/* 14. ACTION ICONS & HOVERS */
.btn:hover {
    transform: translateY(-2px);
    transition: var(--transition-smooth);
}

.table-modern tbody tr {
    transition: var(--transition-smooth);
}

.table-modern tbody tr:hover {
    background-color: rgba(13, 148, 136, 0.05) !important;
    transform: scale(1.002);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.btn .fa-edit,
.btn .fa-trash,
.btn .fa-trash-alt,
.btn .fa-plus,
.btn .fa-plus-circle,
.btn .fa-eye {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.btn:hover i {
    transform: scale(1.1);
}

/* 15. VIEW (SHOW) PAGE STANDARDIZATION */
.view-label {
    font-weight: 700 !important;
    color: #64748b !important;
    /* text-muted style */
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 0.025em !important;
    margin-bottom: 4px !important;
    display: block;
}

.view-value {
    font-weight: 700 !important;
    color: #000000 !important;
    /* text-dark */
    font-size: 16px !important;
    margin-bottom: 0 !important;
}

.view-info-group {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.view-info-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Use with .d-flex for aligned view info */
.view-flex-label {
    width: 180px !important;
    min-width: 180px !important;
    flex-shrink: 0;
}

/* ========================================
   11. NEW DASHBOARD REDESIGN (Business Overview & Financial)
   ======================================== */

.dashboard-section-header {
    background: white;
    padding: 20px 24px;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid #f1f5f9;
    /* display: flex; */
    /* align-items: center; */
    /* gap: 12px; */
}

.dashboard-section-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 24px;
    margin-bottom: 30px;
}

.section-icon {
    font-size: 18px;
    color: #1a1a2e;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.section-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
    font-weight: 500;
}

/* New Stats Card Style */
.stat-card-new {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stat-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

/* Top colored border for cards - Matching Mockup Colors */
.stat-card-new.border-top-blue,
.stat-card-new.border-top-teal {
    border-top: 4px solid #0d9488;
}

.stat-card-new.border-top-green {
    border-top: 4px solid #10b981;
}

.stat-card-new.border-top-orange {
    border-top: 4px solid #f97316;
}

.stat-card-new.border-top-red {
    border-top: 4px solid #ef4444;
}

.stat-card-new.border-top-purple {
    border-top: 4px solid #8b5cf6;
}

.stat-card-new.border-top-teal {
    border-top: 4px solid #14b8a6;
}

.stat-card-new.border-top-indigo {
    border-top: 4px solid #6366f1;
}

.stat-card-new.border-top-cyan {
    border-top: 4px solid #06b6d4;
}

.stat-icon-wrapper-new {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.bg-blue-new,
.bg-teal-new {
    background-color: #0d9488;
}

.bg-green-new {
    background-color: #10b981;
}

.bg-orange-new {
    background-color: #f97316;
}

.bg-red-new {
    background-color: #ef4444;
}

.bg-purple-new {
    background-color: #8b5cf6;
}

.bg-teal-new {
    background-color: #14b8a6;
}

.bg-indigo-new {
    background-color: #6366f1;
}

.bg-cyan-new {
    background-color: #06b6d4;
}

.stat-content-new {
    flex-grow: 1;
}

.stat-value-new {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label-new {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.stat-trend-new {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend-up {
    color: #10b981;
}

.trend-down {
    color: #ef4444;
}

.trend-icon {
    font-size: 10px;
}

.trend-text {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-left: 4px;
}

/* Financial Performance Cards */
.financial-card-new {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    height: 100%;
}

.financial-header-new {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
}

.financial-icon-new {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.financial-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    display: inline-block;
}

.badge-outline-blue {
    border: 1px solid #3b82f6;
    color: #3b82f6;
}

.badge-outline-green {
    border: 1px solid #10b981;
    color: #10b981;
}

.badge-outline-orange {
    border: 1px solid #f97316;
    color: #f97316;
}

.financial-value-new {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
}

.financial-label-new {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.financial-footer-new {
    margin-top: 24px;
}

.financial-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
    font-weight: 500;
}

.financial-meta-value {
    color: #1e293b;
    font-weight: 600;
}

.progress-thin {
    height: 4px;
    background-color: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-new {
    height: 100%;
    border-radius: 10px;
}

/* 19. STOCK REPORT STYLES */
.stock-grouped-table {
    border-radius: 15px;
    overflow: hidden;
    border: none !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.stock-grouped-table thead th {
    border: none !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.stock-grouped-table tbody td {
    border: 1px solid #f0f3f7 !important;
    padding: 12px 15px !important;
    font-size: 14px;
}

.stock-grouped-table .bg-light {
    background-color: #f8fafc !important;
}

.stock-item-row:hover td {
    background-color: #f1f5f9 !important;
}

.btn-info[style*="background-color: #13b1c2"] {
    transition: all 0.3s ease;
}

.btn-info[style*="background-color: #13b1c2"]:hover {
    background-color: #0c94a3 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 177, 194, 0.3);
}

#stockSubTabs .nav-link {
    transition: all 0.3s ease;
    font-weight: 600;
}

#stockSubTabs .nav-link.active {
    box-shadow: 0 4px 10px rgba(19, 177, 194, 0.2);
}

.view-stock-details {
    transition: all 0.3s ease;
}

.view-stock-details:hover {
    transform: rotate(15deg) scale(1.1);
    background-color: #13b1c2;
    color: white !important;
}

/* Summary Cards Utilities */
.bg-primary-light {
    background-color: rgba(13, 148, 136, 0.05) !important;
}

.bg-success-light {
    background-color: rgba(46, 204, 113, 0.05) !important;
}

.bg-info-light {
    background-color: rgba(52, 152, 219, 0.05) !important;
}

.bg-danger-light {
    background-color: rgba(231, 76, 60, 0.05) !important;
}

.icon-shape {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* ========================================
   PROJECT UI STANDARDS - Global Consistently
   ======================================== */

/* 0. Table Action Icons */
.table-modern .btn i {
    font-size: 1.2rem !important;
}

/* 1. Serial Number Standard */
.sr-no-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background-color: #f8fafc !important;
    color: #64748b !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.sr-no-badge:hover {
    background-color: #f1f5f9 !important;
}

/* 2. Standard Filter Panel */
.standard-filter-card {
    background: white;
    border-radius: 15px;
    border: 1px solid #eef1f6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    /* overflow: hidden; */
}

.standard-filter-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eef1f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
}

.standard-filter-body {
    padding: 1.5rem;
}

/* 3. Active Filter Remover (Tags) */
.active-filters-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 20px;
    background-color: #f1f5f9;
    border-top: 1px solid #e2e8f0;
}

.filter-remover-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-remover-tag i {
    margin-left: 10px;
    font-size: 11px;
    color: #ef4444;
    cursor: pointer;
    background: #fee2e2;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.filter-remover-tag i:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.filter-remover-tag:hover {
    border-color: var(--primary-teal);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.filter-label-text {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 5px;
}

/* 4. Premium Form Elements */
.form-label {
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 0.5rem !important;
    font-weight: 700 !important;
}

.form-select,
.form-control {
    border: 1px solid #e0e6ed !important;
    border-radius: 8px !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
    height: auto !important;
}

.form-select:focus,
.form-control:focus {
    border-color: var(--primary-teal) !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1) !important;
    outline: none !important;
}

.input-group-text {
    background-color: #f8fafc !important;
    border: 1px solid #e0e6ed !important;
    border-radius: 8px !important;
    color: #64748b !important;
    font-size: 0.9rem !important;
}

/* BS5 Gutter Fallback for BS4 */
.g-3,
.gx-3 {
    margin-right: -1rem;
    margin-left: -1rem;
}

.g-3>.col,
.g-3>[class*="col-"] {
    padding-right: 1rem;
    padding-left: 1rem;
}

.g-3>.col,
.g-3>[class*="col-"] {
    margin-bottom: 1rem;
}

/* 5. Select2 Premium Styling */
.select2-container--default .select2-selection--single {
    border: 1px solid #e0e6ed !important;
    border-radius: 8px !important;
    height: 42px !important;
    padding: 6px 12px !important;
    transition: all 0.2s ease !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px !important;
    color: #495057 !important;
    font-size: 0.9rem !important;
    padding-left: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    right: 10px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary-teal) !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1) !important;
}

.select2-dropdown {
    border: 1px solid #eef1f6 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    margin-top: 5px !important;
}

.select2-results__option {
    padding: 10px 15px !important;
    font-size: 0.9rem !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-teal) !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #f8f9fc !important;
    color: var(--primary-teal) !important;
    font-weight: 600 !important;
}

/* 7. Consistency Fix: Prevent Table Input Distortion */
.table .form-control,
.table .form-select,
.table .styled-input,
.table .select2-container--default .select2-selection--single {
    height: 36px !important;
    padding: 4px 10px !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
}

.table .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 26px !important;
}

.table .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 34px !important;
}