:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a8a4e6;
    --success-color: #00b894;
    --danger-color: #d63031;
    --warning-color: #fdcb6e;
    --dark-color: #2d3436;
    --light-color: #dfe6e9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    color: white;
    transition: all 0.3s;
    z-index: 1000;
    background: rgba(44, 62, 80, 0.95);
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 15px 25px;
    font-size: 16px;
    transition: all 0.3s;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left: 4px solid var(--primary-color);
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 20px;
}

.navbar-glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px 20px;
}

/* Dashboard Cards */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.stat-icon.total { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.stat-icon.pending { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white; }
.stat-icon.approved { background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%); color: white; }
.stat-icon.rejected { background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%); color: white; }

.stat-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 14px;
}

/* Tables */
.table-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.table thead th {
    border-bottom: 2px solid var(--primary-color);
    color: var(--dark-color);
    font-weight: 600;
}

/* Buttons */
.btn-glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    padding: 10px 25px;
    border-radius: 10px;
    transition: all 0.3s;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.35);
    color: white;
    transform: translateY(-2px);
}

/* Forms */
.form-glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    padding: 30px;
}

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 12px;
}

.form-control:focus, .form-select:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.25);
}

/* Notifications */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 10px;
}

.notification-dropdown {
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #e3f2fd;
}

/* Search Bar */
.search-box {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 5px 5px 5px 20px;
    display: flex;
    align-items: center;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 10px 0;
    flex: 1;
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
}

/* Action Buttons */
.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 3px;
    color: white;
    transition: all 0.3s;
}

.action-btn.edit { background: #3498db; }
.action-btn.delete { background: #e74c3c; }
.action-btn.print { background: #2ecc71; }
.action-btn:hover {
    transform: scale(1.1);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -280px;
    }
    .sidebar.active {
        margin-left: 0;
    }
    .main-content {
        margin-left: 0;
    }
}

/* Loading Spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}