/* EduQuest BD - Main Stylesheet */

:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    --dark: #212529;
    --light: #f8f9fa;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0;
    color: #fff;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section p.lead {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-1px);
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 8px 15px;
    color: #333;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary);
}

/* Forms */
.form-control {
    border-radius: 5px;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.15);
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    padding: 12px;
}

.table tbody td {
    padding: 12px;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Alerts */
.alert {
    border-radius: 5px;
    border: none;
    padding: 15px 20px;
}

.alert-dismissible .btn-close {
    padding: 1rem;
}

/* Footer */
footer {
    background-color: #212529;
    color: rgba(255,255,255,0.8);
    padding: 40px 0 20px;
    margin-top: 60px;
}

footer h5, footer h6 {
    color: #fff;
    margin-bottom: 15px;
}

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

footer ul {
    padding-left: 0;
}

footer ul li {
    margin-bottom: 8px;
}

/* Sidebar */
.sidebar {
    min-height: 100vh;
    width: 250px;
    background: #212529;
    padding-top: 20px;
}

.sidebar .list-group-item {
    border: none;
    padding: 12px 20px;
    color: #fff;
    background: transparent;
}

.sidebar .list-group-item:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

/* Question Navigation */
.question-nav-btn {
    font-size: 0.85rem;
    padding: 6px;
    font-weight: 500;
}

/* Progress Bar */
.progress {
    border-radius: 5px;
    background-color: #e9ecef;
}

.progress-bar {
    font-weight: 500;
    font-size: 0.85rem;
}

/* Statistics */
.stat-card {
    text-align: center;
    padding: 30px;
}

.stat-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 10px 0;
}

.stat-card h6 {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* Badges */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 20px;
}

/* Pagination */
.pagination {
    margin-top: 20px;
}

.page-link {
    border-radius: 5px;
    margin: 0 3px;
    color: var(--primary);
}

.page-link:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p.lead {
        font-size: 1rem;
    }
    
    .sidebar {
        width: 100%;
        min-height: auto;
    }
    
    .stat-card h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
}