:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --success: #4cc9f0;
    --light: #f8f9fa;
    --dark: #212529;
}

body {
    background-color: #f5f7fb;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.sidebar {
    background: white;
    border-right: 1px solid #eaeaea;
    min-height: calc(100vh - 56px);
    padding: 0;
}

.sidebar .nav-link {
    padding: 12px 20px;
    color: var(--dark);
    border-radius: 8px;
    margin: 5px 10px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background: #eef2ff;
    color: var(--primary);
    font-weight: 500;
}

.main-content {
    padding: 20px;
    background-color: #f5f7fb;
}

.dashboard-card {
    border-left: 4px solid var(--primary);
}

.stat-card {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.subject-score {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
}

.grade-badge {
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 20px;
}

.grade-A { background: #4ade80; }
.grade-B { background: #a3e635; }
.grade-C { background: #fde047; }
.grade-D { background: #f97316; }
.grade-F { background: #ef4444; color: white; }

.performance-chart-container {
    height: 300px;
    margin: 20px 0;
}

.result-table th {
    background: #eef2ff;
}

.btn-primary {
    background: var(--primary);
    border: none;
}

.btn-primary:hover {
    background: var(--secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #eaeaea;
    }
    
    .main-content {
        padding: 10px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}
/* Add to assets/css/style.css */
.login-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}
/* Firefox form fix */
input[type="number"] {
    -moz-appearance: textfield;
}

/* Safari/iOS input zoom fix */
@media screen and (max-width: 767px) {
    input, select, textarea {
        font-size: 16px;
    }
}
/* Responsive base */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
        margin: 0 -15px;
    }
    .nav-tabs .nav-item {
        flex: 1;
        text-align: center;
    }
}

/* Fix for mobile tap targets */
.btn, .nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* Add to assets/css/style.css */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    color: #495057;
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
    margin-bottom: -2px;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background-color: transparent;
    border-bottom: 3px solid var(--primary);
}

.nav-tabs .nav-link:not(.active):hover {
    color: var(--secondary);
    border-bottom: 3px solid #dee2e6;
}

/* Mobile-specific tab styles */
@media (max-width: 768px) {
    .nav-tabs .nav-item {
        margin-bottom: 5px;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .nav-tabs .nav-link i {
        display: block;
        margin-bottom: 5px;
    }
}
/* Form enhancements */
.card-body {
    padding: 2rem;
}

.form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.btn-primary {
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(67, 97, 238, 0.3);
}
/* Animation for tab switching */
.tab-pane.fade {
    transition: opacity 0.3s ease;
}

/* Better error message styling */
.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    border-radius: 8px;
}

/* Input group styling */
.input-group {
    margin-bottom: 0.5rem;
}

.input-group .btn-outline-secondary {
    border-color: #ced4da;
    border-left: none;
}

.input-group .btn-outline-secondary:hover {
    background-color: #e9ecef;
}