/* Main Styles - Blue Theme */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --light-bg: #f1f5f9;
    --dark-bg: #1e293b;
    --sidebar-width: 260px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    min-height: 100vh;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.login-header i {
    font-size: 50px;
    margin-bottom: 15px;
    display: block;
}

.login-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.login-header p {
    opacity: 0.9;
    font-size: 14px;
}

.login-body {
    padding: 40px 30px;
}

.form-floating {
    margin-bottom: 20px;
}

.form-floating label {
    color: var(--secondary-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #0f172a 100%);
    color: white;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.sidebar-header span {
    font-size: 12px;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    margin: 5px 15px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-link i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
}

.nav-link:hover, .nav-link.active {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.nav-section-title {
    padding: 15px 20px 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--light-bg);
}

/* Top Navbar */
.top-navbar {
    background: white;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-bg);
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* Content Container */
.content-container {
    padding: 30px;
}

/* Dashboard Cards */
.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 15px;
}

.stat-icon.primary { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); }
.stat-icon.success { background: linear-gradient(135deg, var(--success-color), #059669); }
.stat-icon.warning { background: linear-gradient(135deg, var(--warning-color), #d97706); }
.stat-icon.info { background: linear-gradient(135deg, var(--info-color), #0891b2); }

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--secondary-color);
    font-size: 14px;
}

/* Tables */
.custom-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--light-bg);
    border: none;
    padding: 15px 20px;
    font-weight: 600;
    color: var(--dark-bg);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 15px 20px;
    vertical-align: middle;
    border-color: var(--light-bg);
}

.table tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.03);
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.card-header {
    background: white;
    border-bottom: 1px solid var(--light-bg);
    padding: 20px;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

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

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

.btn-info {
    background: var(--info-color);
    border-color: var(--info-color);
    color: white;
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid var(--primary-color);
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.course-code {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.course-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.course-lecturer {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 15px;
}

.course-lecturer i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* Drag and Drop Styles */
.droppable-area {
    min-height: 200px;
    border: 2px dashed var(--primary-light);
    border-radius: 15px;
    padding: 20px;
    background: rgba(37, 99, 235, 0.03);
    transition: all 0.3s ease;
}

.droppable-area.drag-over {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
}

.draggable-course {
    cursor: grab;
}

.draggable-course:active {
    cursor: grabbing;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.alert-info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info-color);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
}

.modal-header {
    border-bottom: 1px solid var(--light-bg);
    padding: 20px;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 1px solid var(--light-bg);
    padding: 15px 20px;
}

/* Badge */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-admin {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: white;
}

.badge-student {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--secondary-color);
}

.empty-state i {
    font-size: 60px;
    color: var(--light-bg);
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .toggle-sidebar {
        display: block !important;
    }
}

.toggle-sidebar {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-bg);
    cursor: pointer;
}

/* Chart Container */
.chart-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

/* Quick Actions */
.quick-action {
    background: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--dark-bg);
    display: block;
}

.quick-action:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.quick-action i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

div::-webkit-scrollbar, aside::-webkit-scrollbar{
    width:2px;
}
div::-webkit-scrollbar-thumb, aside::-webkit-scrollbar-thumb{
    display: none;
    background-color: #777;
}
div::-webkit-scrollbar-track, aside::-webkit-scrollbar-track{
    background:transparent;
}
div:hover::-webkit-scrollbar-thumb, aside:hover::-webkit-scrollbar-thumb{
    display: block;
}