:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --secondary-gradient: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --info-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --dark-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);

    /* Modern Premium Palette */
    --accent-indigo: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --accent-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --accent-rose: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    --accent-amber: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --accent-sky: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --accent-violet: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    --accent-teal: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);

    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Navbar Styles */
.navbar-gradient {
    background: var(--dark-gradient);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar .user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar .user-name {
    color: #ffffff;
    font-weight: 500;
}

.btn-gradient {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-outline-gradient {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-gradient:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Card Styles */
.card-gradient {
    background: white;
    border-radius: 6px;
    box-shadow: var(--card-shadow);
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-gradient:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.card-gradient .card-body {
    padding: 1.5rem;
}

.card-header-gradient {
    background: var(--primary-gradient);
    color: white;
    padding: 1.25rem 1.5rem;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Stats Card */
.stats-card {
    background: white;
    border-radius: 6px;
    padding: 0;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.stats-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stats-card .icon.primary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    color: #667eea;
}

.stats-card .icon.success {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.2) 0%, rgba(56, 249, 215, 0.2) 100%);
    color: #43e97b;
}

.stats-card .icon.info {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2) 0%, rgba(0, 242, 254, 0.2) 100%);
    color: #4facfe;
}

.stats-card .icon.warning {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.2) 0%, rgba(245, 87, 108, 0.2) 100%);
    color: #f093fb;
}

.stats-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3561;
    margin: 0.5rem 0;
}

.stats-card p {
    color: #6c757d;
    margin: 0;
    font-size: 0.95rem;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background: white;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

.login-header {
    background: var(--primary-gradient);
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-header h2 {
    margin: 0;
    font-weight: 700;
    font-size: 2rem;
}

.login-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

.login-body {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #2d3561;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border: none;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.1) 0%, rgba(240, 147, 251, 0.1) 100%);
    color: #f5576c;
    border-left: 4px solid #f5576c;
}

.alert-success {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.1) 0%, rgba(56, 249, 215, 0.1) 100%);
    color: #43e97b;
    border-left: 4px solid #43e97b;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    color: #ff9800;
    border-left: 4px solid #ff9800;
}

.alert-info {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    color: #4facfe;
    border-left: 4px solid #4facfe;
}

/* Dashboard */
.dashboard-header {
    background: white;
    border-radius: 6px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.dashboard-header h1 {
    color: #2d3561;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-header .welcome-text {
    color: #6c757d;
    font-size: 1.1rem;
}

.quick-links {
    list-style: none;
    padding: 0;
}

.quick-links li {
    margin-bottom: 0.75rem;
}

.quick-links a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 6px;
    color: #2d3561;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.quick-links a:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.quick-links a::before {
    content: '→';
    margin-right: 1rem;
    font-weight: bold;
    color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .user-info {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }

    .login-body {
        padding: 1.5rem;
    }

    .stats-card {
        margin-bottom: 1rem;
    }
}

/* Loading Animation */
.spinner-border-gradient {
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-top-color: #667eea;
    animation: spin 1s linear infinite;
}

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

/* Utility Classes */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

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

/* Table Styles */
.table {
    color: #2d3561;
}

.table thead th {
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding: 1rem;
}

.table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    cursor: pointer;
}

.badge {
    padding: 0.35rem 0.75rem;
    font-weight: 500;
    border-radius: 6px;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* Form Elements */
select.form-control,
input[type="text"].form-control,
input[type="password"].form-control,
input[type="email"].form-control,
input[type="number"].form-control,
input[type="date"].form-control {
    transition: all 0.3s ease;
}

/* Empty State */
.text-muted .fa-inbox {
    opacity: 0.3;
}