/* AITS LMS - Professional Student Style */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

.auth-header {
    background-color: #0d6efd; /* Bootstrap Primary */
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.auth-header h2 {
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.auth-body {
    padding: 30px;
}

.form-label {
    font-weight: 500;
    color: #333;
}

.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.btn-primary {
    background-color: #0d6efd;
    border: none;
    border-radius: 8px;
    padding: 12px 15px;
    font-weight: 500;
    width: 100%;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

.auth-footer {
    text-align: center;
    padding-top: 15px;
    font-size: 0.9em;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Dashboard & Internal Pages --- */

.dashboard-header {
    background: #fff;
    padding: 15px 30px;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header .brand {
    font-size: 1.5em;
    font-weight: 700;
    color: #0d6efd;
}

.dashboard-header .welcome-user {
    font-size: 1.1em;
    font-weight: 500;
    color: #333;
}

.dashboard-header .logout-link {
    font-weight: 500;
    color: #dc3545;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dashboard-header .logout-link:hover {
    color: #b02a37;
}

.dashboard-container {
    padding: 30px;
    max-width: 1200px;
    margin: 20px auto;
}

.section-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 3px solid #0d6efd;
    padding-bottom: 5px;
    display: inline-block;
}

.quiz-list, .resource-list {
    list-style: none;
    padding: 0;
}

.quiz-list li {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-list .quiz-info {
    font-weight: 500;
}

.quiz-list .quiz-info .subject {
    font-size: 0.9em;
    color: #555;
    display: block;
}

.btn-start-quiz {
    background-color: #198754;
    color: white;
}
.btn-view-results {
    background-color: #0d6efd;
    color: white;
}

.course-group {
    margin-bottom: 30px;
}

.subject-group {
    margin-bottom: 20px;
}

.resource-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    overflow: hidden; /* For embedded video */
}

.resource-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.resource-header h4 {
    margin: 0;
    font-weight: 500;
    color: #0d6efd;
}

.resource-body {
    padding: 20px;
}

.resource-body p {
    font-size: 0.95em;
    color: #444;
}

.resource-body .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin-bottom: 15px;
}

.resource-body .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.btn-resource {
    display: inline-block;
    padding: 10px 15px;
    background-color: #0d6efd;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-resource:hover {
    background-color: #0b5ed7;
}

/* --- Quiz & Score Pages --- */
.quiz-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
}

.quiz-card, .score-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
}

.quiz-question {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.quiz-question img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.quiz-options label {
    display: block;
    background: #f0f2f5;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-options label:hover {
    background: #e0e5eb;
}

.quiz-options input[type="radio"] {
    margin-right: 10px;
}

.score-card h1 {
    font-weight: 700;
    text-align: center;
    color: #0d6efd;
    font-size: 4em;
}

.leaderboard {
    width: 100%;
    margin-top: 20px;
}
/* --- Hotline Buttons --- */
.hotline-wrapper {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.hotline-wrapper p {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 15px;
}
.btn-hotline {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    margin: 5px;
    transition: all 0.3s ease;
}
.btn-call {
    background-color: #0d6efd; /* Primary */
    color: white;
}
.btn-call:hover {
    background-color: #0b5ed7;
    color: white;
}
.btn-whatsapp {
    background-color: #25D366; /* WhatsApp Green */
    color: white;
}
.btn-whatsapp:hover {
    background-color: #1EAE56;
    color: white;
}

/* --- Quiz Option Selected State --- */
.quiz-options label.option-selected {
    background: #cce5ff; /* Bootstrap Primary Light */
    color: #004085;
    border-color: #b8daff !important;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

/* --- Leaderboard Rank Highlights (Enhanced) --- */
.leaderboard-image {
    width: 50px; /* Increased from 40px */
    height: 50px; /* Increased from 40px */
    object-fit: cover;
    border: 2px solid #ddd;
}

.leaderboard .rank-icon {
    font-size: 1.5em; /* Make medal icon larger */
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    width: 40px; /* Align ranks */
}

.leaderboard .rank-gold { 
    background-color: #fffbeb; /* Light Gold */
    border-left: 5px solid #FFD700; /* Gold Border */
    font-size: 1.05em;
}
.leaderboard .rank-silver { 
    background-color: #fafafa; /* Light Silver */
    border-left: 5px solid #C0C0C0; /* Silver Border */
    font-size: 1.02em;
}
.leaderboard .rank-bronze { 
    background-color: #fff8f0; /* Light Bronze */
    border-left: 5px solid #CD7F32; /* Bronze Border */
}
    
/* Current user highlight (green) must be most prominent */
.leaderboard .table-success { 
    background-color: #d1e7dd !important; 
    font-weight: bold; 
    border: 2px solid #198754 !important; /* Add important */
}

