:root {
    --primary-color: #4F46E5;
    --secondary-color: #10B981;
    --bg-color: #F3F4F6;
    --text-color: #1F2937;
    --card-bg: #FFFFFF;
    --sidebar-bg: #111827;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Sidebar styles */
#wrapper {
    overflow-x: hidden;
    transition: all 0.3s ease;
}

#sidebar-wrapper {
    min-height: 100vh;
    width: 250px;
    transition: all 0.3s ease;
    background-color: var(--sidebar-bg) !important;
}

#sidebar-wrapper .list-group-item {
    padding: 15px 20px;
    border: none;
    transition: all 0.2s;
}

#sidebar-wrapper .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px;
    margin: 0 10px;
}

/* Toggled Sidebar */
#wrapper.toggled #sidebar-wrapper {
    margin-left: -250px;
}

/* Cards & Glassmorphism */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background: var(--card-bg);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Custom Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #4338CA;
    border-color: #4338CA;
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Table styles */
.table {
    vertical-align: middle;
}
.table th {
    font-weight: 600;
    color: #4B5563;
    background-color: #F9FAFB;
    border-bottom: 2px solid #E5E7EB;
}

/* Status Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}
.badge.present { background-color: #D1FAE5; color: #065F46; }
.badge.late { background-color: #FEF3C7; color: #92400E; }
.badge.half-day { background-color: #DBEAFE; color: #1E40AF; }
.badge.absent { background-color: #FEE2E2; color: #991B1B; }

/* Dashboard Login */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4F46E5 0%, #10B981 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar-wrapper {
        margin-left: -250px;
    }
    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
    }
}
