:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --light: #f8fafc;
    --dark: #1e293b;
}

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

body {
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Inter', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e293b;
    min-height: 100vh;
}

.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #667eea !important;
    transition: all 0.3s;
}

.navbar-brand:hover {
    color: #764ba2 !important;
    transform: scale(1.05);
}

.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    color: #1e293b;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    border-radius: 15px 15px 0 0;
}

.card-body,
.card-body *,
.card-body p,
.card-body div,
.card-body strong {
    color: #1e293b !important;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    min-height: 42px;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #ffffff;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    color: #ffffff;
    font-weight: 600;
    min-height: 42px;
    white-space: nowrap;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    color: white;
    font-weight: 600;
    min-height: 42px;
    white-space: nowrap;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    color: #ffffff;
    font-weight: 600;
    min-height: 42px;
    white-space: nowrap;
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    color: #ffffff;
    font-weight: 600;
    min-height: 42px;
    white-space: nowrap;
}

.btn-secondary {
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 24px;
    color: #475569;
    font-weight: 600;
    min-height: 42px;
    white-space: nowrap;
}

.btn-outline-light {
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 10px;
    padding: 10px 24px;
    font-weight: 600;
    min-height: 42px;
    white-space: nowrap;
}

.btn-outline-light:hover {
    background: #667eea;
    color: #ffffff;
}

.form-control, .form-select {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
    color: #1e293b;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    background: #ffffff;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    color: #1e293b;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-select option {
    background: #ffffff;
    color: #1e293b;
}

.badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff;
}

.badge.bg-success {
    background: #10b981 !important;
    color: #ffffff;
}

.badge.bg-info {
    background: #3b82f6 !important;
    color: #ffffff;
}

.badge.bg-light {
    background: #f1f5f9 !important;
    color: #475569;
}

.badge.bg-secondary {
    background: #64748b !important;
    color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    color: #1e293b;
}

label {
    color: #475569;
    font-weight: 500;
}

.text-muted {
    color: #64748b !important;
}

.text-success {
    color: #10b981 !important;
}

.text-primary {
    color: #667eea !important;
}

.text-info {
    color: #3b82f6 !important;
}

.text-warning {
    color: #f59e0b !important;
}

.bg-light {
    background: #f8fafc !important;
}

.bg-dark {
    background: #1e293b !important;
}

.sidebar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.sidebar-item {
    padding: 15px 20px;
    margin: 8px 0;
    border-radius: 10px;
    transition: all 0.3s;
    cursor: pointer;
    color: #475569;
}

.sidebar-item:hover, .sidebar-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    transform: translateX(5px);
}

.table {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    color: #1e293b !important;
}

.table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
}

.table thead th {
    color: #ffffff !important;
}

.table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.table tbody tr:hover {
    background: #f8fafc;
}

.table tbody td,
.table tbody th {
    color: #1e293b !important;
}

.modal-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
    padding: 20px 30px;
}

.modal-body {
    padding: 30px;
}

.btn-close {
    filter: brightness(0) invert(1);
}

.alert {
    border-radius: 10px;
    border: 1px solid;
}

.alert-success {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.alert-info {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

.question-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #1e293b !important;
}

.question-card *,
.question-card ol,
.question-card ul,
.question-card li,
.question-card p,
.question-card div,
.question-card span {
    color: #1e293b !important;
}

.question-card .text-success,
.question-card .fw-bold {
    color: #10b981 !important;
}

.question-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.tag-badge {
    background: #ede9fe;
    color: #6d28d9;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin: 3px;
    display: inline-block;
    border: 1px solid #ddd6fe;
    font-weight: 600;
    transition: all 0.3s;
}

.tag-badge:hover {
    background: #ddd6fe;
}

.stats-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stats-card .icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #667eea;
}

.stats-card h3 {
    font-size: 42px;
    font-weight: 700;
    margin: 10px 0;
    color: #667eea;
}

.token-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: inline-block;
}

.drag-handle {
    cursor: move;
    color: #94a3b8;
    font-size: 20px;
}

.question-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.filter-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.container-main {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 40px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-tabs {
    border-bottom: 2px solid #e2e8f0;
}

.nav-tabs .nav-link {
    border-radius: 10px 10px 0 0;
    border: none;
    color: #64748b;
    font-weight: 600;
    padding: 12px 25px;
    transition: all 0.3s;
}

.nav-tabs .nav-link:hover {
    color: #667eea;
    background: #f8fafc;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.progress {
    height: 25px;
    border-radius: 15px;
    background: #e2e8f0;
}

.progress-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
}

.navbar-toggler {
    border-color: #e2e8f0;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(102, 126, 234, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: #475569;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #667eea;
}

.dropdown-divider {
    border-color: #e2e8f0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.nav-link {
    color: #475569 !important;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    color: #667eea !important;
}

.custom-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    align-items: center;
    font-weight: 600;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.custom-toast.show {
    display: flex;
    transform: translateX(0);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 10px 0;
    z-index: 1000;
    display: none;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.bottom-nav a {
    color: #64748b;
    text-decoration: none;
    font-size: 11px;
    transition: all 0.3s;
}

.bottom-nav a:hover, .bottom-nav a.active {
    color: #667eea;
}

.bottom-nav i {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .bottom-nav { display: block; }
    body { padding-bottom: 70px; }
    .container-main { padding: 20px; }
    .card { margin-bottom: 15px; }
    .question-card { padding: 15px; }
    .filter-section { padding: 20px; }
    
    .btn-lg {
        padding: 12px 20px !important;
        font-size: 14px !important;
        width: 100%;
        max-width: 300px;
    }
    
    .hero-section {
        padding: 60px 20px !important;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .hero-section p {
        font-size: 1rem !important;
    }
    
    .cta-section {
        padding: 40px 20px !important;
    }
    
    .cta-section h2 {
        font-size: 1.5rem !important;
    }
}

.tags-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tags-slider {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px 0;
    flex: 1;
}

.tags-slider::-webkit-scrollbar {
    height: 6px;
}

.tags-slider::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.tags-slider::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.tag-nav-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #667eea;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.tag-nav-btn:hover {
    background: #667eea;
    color: #ffffff;
}

.tag-badge {
    white-space: nowrap;
    flex-shrink: 0;
}

.collapse .card,
.collapse .card-body {
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #e2e8f0;
}

.collapse .card-body strong {
    color: #667eea !important;
}

.question-preview {
    color: #1e293b !important;
}

.table-light {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
}

.table-light th {
    color: #ffffff !important;
}

.nav-pills .nav-link {
    color: #475569;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: #ffffff;
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
        border: 1px solid #e2e8f0;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 8px;
        margin-left: 0 !important;
    }
    
    .navbar-nav .btn {
        width: 100%;
        margin: 5px 0;
    }
}

@media (min-width: 992px) {
    .w-lg-auto {
        width: auto !important;
    }
}

@media (max-width: 576px) {
    .btn-lg {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
    
    .display-3 {
        font-size: 1.75rem !important;
    }
    
    .lead {
        font-size: 0.95rem !important;
    }
    
    .col-md-3, .col-md-4, .col-md-6 {
        margin-bottom: 20px;
    }
}
