:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --border-radius: 16px;
}

body {
    background-color: #f4f7fe;
    font-family: 'Inter', sans-serif;
}

.page-wrapper {
    background: #f4f7fe;
}

/* Sidebar Customization */
.left-sidebar {
    background: #ffffff;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.05);
    border-right: none;
    transition: all 0.3s ease;
}

.sidebar-nav ul .sidebar-item .sidebar-link {
    border-radius: 12px;
    margin: 4px 15px;
    padding: 12px 15px;
    color: #637381;
    transition: all 0.3s ease;
}

.sidebar-nav ul .sidebar-item .sidebar-link:hover,
.sidebar-nav ul .sidebar-item .sidebar-link.active {
    background: var(--primary-gradient);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.sidebar-nav ul .sidebar-item .sidebar-link i {
    font-size: 20px;
}

/* Card Improvements */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    background: var(--glass-bg);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
}

.card-title {
    color: #2d3748;
    font-weight: 700;
}

/* Top Strip */
.app-topstrip {
    background: var(--primary-gradient) !important;
    border-bottom: none;
}

.text-linear-gradient {
    background: #ffffff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Header */
.app-header {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive Table */
.table-responsive {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #718096;
    border-bottom: 1px solid #edf2f7;
}

.table tbody td {
    vertical-align: middle;
    color: #4a5568;
    border-bottom: 1px solid #edf2f7;
    padding: 1rem;
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
}

.btn-primary:hover {
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.5);
    opacity: 0.9;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.body-wrapper-inner {
    animation: fadeIn 0.5s ease-out;
}

/* Stat Cards */
.stat-card {
    background: white;
    padding: 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--card-shadow);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.icon-blue {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.icon-purple {
    background: linear-gradient(135deg, #581c87 0%, #a855f7 100%);
}

.icon-green {
    background: linear-gradient(135deg, #064e3b 0%, #10b981 100%);
}

.icon-orange {
    background: linear-gradient(135deg, #7c2d12 0%, #f97316 100%);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .app-topstrip {
        padding: 10px !important;
    }

    .text-linear-gradient {
        font-size: 1.2rem !important;
    }

    .body-wrapper-inner {
        padding: 15px;
    }

    .stat-card {
        padding: 15px;
    }

    .table-responsive-stack .table thead {
        display: none;
    }

    .table-responsive-stack .table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #edf2f7;
        border-radius: 12px;
        padding: 10px;
        background: white;
    }

    .table-responsive-stack .table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 8px 10px !important;
        border-bottom: 1px solid #f7fafc !important;
    }

    .table-responsive-stack .table td::before {
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.7rem;
        color: #718096;
    }
}