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

:root {
    --primary: #4f46e5;
    --primary-light: #e0e7ff;
    --secondary: #7c3aed;
    --success: #10b981;
    --info: #3b82f6;
    --warning: #f59e0b;
    --danger: #ef4444;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --sidebar-width: 260px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif !important;
    background-color: #f1f5f9;
    color: #1e293b;
    overflow-x: hidden;
}

/* Glassmorphism Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
}

/* Sidebar Modernization */
.navigation {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px);
    border-right: 1px solid var(--glass-border) !important;
    width: var(--sidebar-width) !important;
}

.navigation .navigation-menu-body ul li a {
    border-radius: 10px;
    margin: 5px 15px;
    padding: 12px 15px !important;
    font-weight: 500;
    color: #64748b !important;
    transition: var(--transition);
}

.navigation .navigation-menu-body ul li a:hover,
.navigation .navigation-menu-body ul li a.active {
    background: var(--primary) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.navigation .navigation-menu-body ul li a.active i {
    color: white !important;
}

/* Header Modernization */
.header {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border) !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.02) !important;
}

.header .header-logo {
    width: var(--sidebar-width) !important;
}

/* Card Improvements */
.card {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: var(--card-shadow) !important;
    transition: var(--transition);
    overflow: hidden;
}

.card-body {
    padding: 1.5rem !important;
}

.card-title {
    font-weight: 700 !important;
    color: #334155 !important;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem !important;
}

/* Gradients for UI elements */
.bg-gradient-primary { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); }
.bg-gradient-success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.bg-gradient-info { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.bg-gradient-warning { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.bg-gradient-danger { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }

/* Avatar Improvements */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar img {
    width: 32px;
    height: 32px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Pulse animation for active elements */
@keyframes pulse-soft {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

.btn-primary {
    background-color: var(--primary) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2) !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.3) !important;
}

/* Filter Styles */
.custom-filter {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border) !important;
    border-radius: 8px !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    cursor: pointer;
    min-width: 100px;
    transition: var(--transition);
}

.custom-filter:hover, .custom-filter:focus {
    background: white !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: var(--primary) !important;
}

.period-filters {
    background: rgba(241, 245, 249, 0.5);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

/* List Group Premium */
.list-group-item {
    background-color: transparent !important;
    border-color: var(--glass-border) !important;
    color: #475569 !important;
    padding: 0.75rem 0 !important;
}

.list-group-item span:first-child {
    font-weight: 600;
    color: #1e293b;
}

/* Auth Pages Premium */
.auth-form {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 24px !important;
    padding: 40px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.auth-form input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: white !important;
    padding: 12px 16px !important;
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Dark Mode Support (Basic) */
body.dark {
    background-color: #0f172a;
    color: #f1f5f9;
}

body.dark .glass-card,
body.dark .card,
body.dark .navigation,
body.dark .header {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: #f1f5f9 !important;
}

body.dark .card-title {
    color: #f1f5f9 !important;
}
