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

body {
    background-color: #f8fafc;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #334155;
}

/* Sidebar styling overrides */
.sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar .nav-link {
    font-weight: 500;
    color: #94a3b8;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 4px 12px;
    padding: 10px 15px;
    border-left: none !important;
}

.sidebar .nav-link i {
    width: 24px;
    text-align: center;
    transition: transform 0.2s ease;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.08);
    transform: translateX(4px);
}

.sidebar .nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Card Modernization */
.card {
    border: 1px solid rgba(0,0,0,0.04) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    overflow: hidden;
}

.card:not(.border-0):hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08) !important;
}

.card-header {
    background-color: #fff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 1rem 1.25rem !important;
    font-weight: 600 !important;
    color: #1e293b;
}

/* Gradient Backgrounds for Stat Cards */
.bg-primary { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important; border: none; }
.bg-success { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important; border: none; }
.bg-info { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%) !important; border: none; color: white !important;}
.bg-warning { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%) !important; border: none; color: white !important;}
.bg-danger { background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%) !important; border: none; }
.bg-secondary { background: linear-gradient(135deg, #8e9eab 0%, #eef2f3 100%) !important; border: none; color: #333 !important;}

/* Stat Card specific tweaks */
.card[class*="bg-"] .card-body {
    padding: 1.5rem !important;
}
.card[class*="bg-"] h6 {
    opacity: 0.9;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.card[class*="bg-"] h2 {
    font-weight: 700;
    font-size: 2.5rem;
}
.card-footer.stretched-link-container {
    background: rgba(0,0,0,0.1) !important;
    border-top: none;
    padding: 0.75rem 1.25rem;
    transition: background 0.2s ease;
}
.card-footer.stretched-link-container:hover {
    background: rgba(0,0,0,0.15) !important;
}

/* Tables */
.table {
    color: #475569;
}
.table-light {
    background-color: #f8fafc !important;
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.table > :not(caption) > * > * {
    padding: 1rem;
    border-bottom-color: #f1f5f9;
}
.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* Custom scrollbar */
.table-responsive {
    scrollbar-width: thin;
}
.table-responsive::-webkit-scrollbar {
    height: 6px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* Status Badges */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 6px;
}
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.btn-primary {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}
