/* Main Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Sidebar */
#sidebar {
    min-height: calc(100vh - 56px);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#sidebar .nav-link {
    color: #333;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 5px;
}

#sidebar .nav-link:hover {
    background-color: #e9ecef;
}

#sidebar .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

/* Dashboard Cards */
.dashboard-card {
    transition: transform 0.3s;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

/* Table Styling */
.table-responsive {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* Form Styling */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-header {
    border-bottom: 1px solid rgba(0,0,0,0.125);
}

/* Button Styling */
.btn {
    border-radius: 5px;
    padding: 8px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        min-height: auto;
        margin-bottom: 20px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
}

/* Status Badges */
.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 500;
}

/* Attendance Status */
.status-present { background-color: #d4edda; color: #155724; }
.status-absent { background-color: #f8d7da; color: #721c24; }
.status-leave { background-color: #fff3cd; color: #856404; }

/* Student/Staff Status */
.status-active { background-color: #d1ecf1; color: #0c5460; }
.status-inactive { background-color: #d6d8d9; color: #383d41; }
.status-completed { background-color: #c3e6cb; color: #155724; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}