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

/* Apply modern typography */
body, h1, h2, h3, h4, h5, h6, .main-header, .main-sidebar, .content-header, .btn, .card {
    font-family: 'Outfit', sans-serif !important;
}

/* Base Styles and Color System */
body {
    background-color: #f4f6fc !important;
    color: #2b3a67;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f3f9;
}
::-webkit-scrollbar-thumb {
    background: #c3cadb;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a4b0cb;
}

/* Sleek Sidebar Customization */
.main-sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active, 
.sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4) !important;
    border-radius: 8px;
    color: #fff !important;
}
.nav-sidebar .nav-link {
    border-radius: 8px;
    margin-bottom: 5px;
    padding: 10px 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    transform: translateX(4px);
    color: #fff !important;
}

/* Navbar Customization */
.main-header {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
}

/* Card Improvements & Glassmorphism */
.card {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px rgba(148, 163, 184, 0.08) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px);
    margin-bottom: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(148, 163, 184, 0.15) !important;
}
.card-header {
    background-color: transparent !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 20px 24px !important;
    font-weight: 700;
}
.card-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

/* Dynamic KPI Info Boxes (Stats cards) */
.info-box {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 10px 25px rgba(148, 163, 184, 0.08) !important;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.info-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(148, 163, 184, 0.15) !important;
}
.info-box-icon {
    border-radius: 12px !important;
    width: 60px !important;
    height: 60px !important;
    margin: auto 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s ease;
}
.info-box:hover .info-box-icon {
    transform: scale(1.1);
}
.info-box-content {
    padding: 18px 15px !important;
}
.info-box-text {
    font-weight: 500 !important;
    color: #64748b !important;
    text-transform: uppercase;
    font-size: 0.8rem !important;
    letter-spacing: 0.5px;
}
.info-box-number {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-top: 4px;
}

/* Rich Gradient Variations for KPI Cards */
.bg-gradient-indigo {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%) !important;
    color: white !important;
}
.bg-gradient-emerald {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%) !important;
    color: white !important;
}
.bg-gradient-amber {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%) !important;
    color: white !important;
}
.bg-gradient-rose {
    background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%) !important;
    color: white !important;
}
.bg-gradient-violet {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%) !important;
    color: white !important;
}
.bg-gradient-sky {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%) !important;
    color: white !important;
}

/* Buttons Styling */
.btn {
    border-radius: 10px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    border: none !important;
}
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3) !important;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45) !important;
}
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
}
.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45) !important;
}
.btn-secondary {
    background: #e2e8f0 !important;
    color: #475569 !important;
}
.btn-secondary:hover {
    background: #cbd5e1 !important;
}

/* Tables and Lists Styling */
.table {
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
}
.table thead th {
    border: none !important;
    color: #64748b !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.8rem !important;
    letter-spacing: 0.5px;
    padding: 12px 24px !important;
}
.table tbody tr {
    background-color: #fff !important;
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.04) !important;
    transition: transform 0.2s ease;
}
.table tbody tr:hover {
    transform: scale(1.005);
    box-shadow: 0 6px 15px rgba(148, 163, 184, 0.08) !important;
}
.table tbody td {
    padding: 16px 24px !important;
    border: none !important;
    vertical-align: middle !important;
    color: #334155 !important;
}
.table tbody tr td:first-child {
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}
.table tbody tr td:last-child {
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

/* Glistening Indicator Badges */
.badge-custom {
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.badge-new {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #4f46e5 !important;
}
.badge-process {
    background: rgba(14, 165, 233, 0.1) !important;
    color: #0284c7 !important;
}
.badge-approved {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
}
.badge-disbursed {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #15803d !important;
}
.badge-rejected {
    background: rgba(244, 63, 94, 0.1) !important;
    color: #e11d48 !important;
}
.badge-hold {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #d97706 !important;
}

/* Timeline Customization */
.timeline::before {
    background: #cbd5e1 !important;
}
.timeline > div > .timeline-item {
    border-radius: 16px !important;
    box-shadow: 0 10px 25px rgba(148, 163, 184, 0.05) !important;
    border: none !important;
    padding: 15px 20px !important;
}
.timeline > div > .timeline-item > .time {
    color: #94a3b8 !important;
    font-size: 0.75rem;
}
.timeline > div > .timeline-item > .timeline-header {
    border-bottom: 1px solid #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 700;
    padding: 0 0 10px 0 !important;
}
.timeline > div > .timeline-item > .timeline-body {
    padding: 12px 0 0 0 !important;
    color: #475569 !important;
}

/* Pulse animation for notifications / markers */
.pulse-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
    margin-right: 8px;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}
