:root {
    --primary-color: rgb(17, 29, 46) !important;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: rgb(17, 29, 46) !important;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
.navbar {
    background-color: rgb(17, 29, 46) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link:hover {
    color: white !important;
}

/* Hero Section */
.hero-section {
    background: rgb(17, 29, 46) !important;
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Course Cards */
.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}

/* Stats Section */
.stats-section {
    background: rgb(17, 29, 46) !important;
}

/* Dashboard Styles */
.dashboard-container {
    padding-top: 0;
    min-height: 100vh;
    background-color: #f5f7fa;
}

/* Fixed header spacing for dashboards with fixed navbar */
.navbar.fixed-top ~ .dashboard-container,
.dashboard-container:has(~ .navbar.fixed-top) {
    margin-top: 56px;
    padding-top: 0;
}

/* Dashboard Header */
.dashboard-container .navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-container .navbar-brand {
    font-weight: 600;
}

.sidebar {
    background: rgb(17, 29, 46) !important;
    min-height: 100vh;
    padding: 20px 0;
    color: white;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    margin: 5px 0;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

.main-content {
    padding: 20px;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    background: rgb(17, 29, 46) !important;
    color: white;
    border-radius: 10px 10px 0 0 !important;
    padding: 15px 20px;
}

.btn-primary {
    background: rgb(17, 29, 46) !important;
    border-color: rgb(17, 29, 46) !important;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: rgb(25, 40, 60) !important;
    border-color: rgb(25, 40, 60) !important;
    color: white !important;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: rgb(17, 29, 46) !important;
}

.login-card {
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* Attendance Card */
.attendance-card {
    background: rgb(17, 29, 46) !important;
    color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.attendance-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    border: 2px solid white;
    background: transparent;
    color: white;
    transition: all 0.3s;
}

.attendance-btn:hover {
    background: white;
    color: rgb(17, 29, 46) !important;
}

/* Task Card */
.task-card {
    border-left: 4px solid rgb(17, 29, 46) !important;
    transition: all 0.3s;
}

.task-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.task-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-in-progress {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

/* Fee Card */
.fee-card {
    background: rgb(17, 29, 46) !important;
    color: white;
    border-radius: 15px;
    padding: 25px;
}

/* Table Styles */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background: rgb(17, 29, 46) !important;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    
    .hero-section {
        text-align: center;
        padding: 100px 20px 50px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Badge Styles */
.badge {
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Filter Buttons */
.btn-group .btn-outline-primary.active {
    background-color: rgb(17, 29, 46) !important;
    border-color: rgb(17, 29, 46) !important;
    color: white !important;
}

.btn-group .btn-outline-primary:hover:not(.active) {
    background-color: rgba(17, 29, 46, 0.1) !important;
    border-color: rgb(17, 29, 46) !important;
    color: rgb(17, 29, 46) !important;
}

/* Override Bootstrap primary colors */
.bg-primary {
    background-color: rgb(17, 29, 46) !important;
}

.text-primary {
    color: rgb(17, 29, 46) !important;
}

.btn-outline-primary {
    border-color: rgb(17, 29, 46) !important;
    color: rgb(17, 29, 46) !important;
}

.btn-outline-primary:hover {
    background-color: rgb(17, 29, 46) !important;
    color: white !important;
}

/* Course card icons */
.course-card .text-primary {
    color: rgb(17, 29, 46) !important;
}

/* Footer */
footer {
    background-color: rgb(17, 29, 46) !important;
    color: white;
}

footer a {
    color: white !important;
}

footer a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

