/* Custom styles for QRVpro */

/* Override Bootstrap primary colors */
.bg-primary {
    background-color: #170d26 !important;
}

.btn-primary {
    background-color: #170d26 !important;
    border-color: #170d26 !important;
}

.btn-primary:hover {
    background-color: #2d1b4e !important;
    border-color: #2d1b4e !important;
}

.btn-outline-primary {
    color: #170d26 !important;
    border-color: #170d26 !important;
}

.btn-outline-primary:hover {
    background-color: #170d26 !important;
    border-color: #170d26 !important;
    color: white !important;
}

.btn-outline-primary:hover i {
    color: white !important;
}

.text-primary {
    color: #170d26 !important;
}

.border-primary {
    border-color: #170d26 !important;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #170d26 0%, #2d1b4e 100%) !important;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url("#grain#grain")"/></svg>');
    opacity: 0.3;
}

/* Choice styling */
.choice-item label {
    transition: all 0.3s ease;
    border-radius: 8px;
    cursor: pointer;
}

.choice-item label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 13, 38, 0.15);
}

.choice-item input[type="radio"]:checked + label {
    background-color: #170d26 !important;
    border-color: #170d26 !important;
    color: white !important;
}

/* Progress bars */
.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
}

.progress-bar.bg-success {
    background-color: #28a745 !important;
}

.progress-bar.bg-danger {
    background-color: #dc3545 !important;
}

.progress-bar.bg-secondary {
    background-color: #6c757d !important;
}

.progress-bar.bg-warning {
    background-color: #ffc107 !important;
}

.progress-bar.bg-info {
    background-color: #17a2b8 !important;
}

.progress-bar.bg-primary {
    background-color: #170d26 !important;
}

/* Card styling */
.card {
    border-radius: 12px;
    transition: all 0.3s ease;
}

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

/* Button styling */
.btn {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 13, 38, 0.2);
}

/* Navbar styling */
.navbar {
    box-shadow: 0 2px 10px rgba(23, 13, 38, 0.1);
}

.navbar-brand {
    font-weight: bold;
}

/* Stats cards */
.stats-card {
    background: linear-gradient(135deg, #170d26 0%, #2d1b4e 100%);
    color: white;
}

/* Category cards */
.category-card {
    border-left: 4px solid #170d26;
}

.category-card:hover {
    border-left-color: #2d1b4e;
}

/* Question form */
.question-form {
    background: rgba(23, 13, 38, 0.05);
    border-radius: 12px;
    padding: 20px;
}

/* Pagination */
.pagination .page-link {
    color: #170d26;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #170d26;
    border-color: #170d26;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(23, 13, 38, 0.3);
    border-radius: 50%;
    border-top-color: #170d26;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Choice feedback */
.choice-correct {
    background-color: rgba(40, 167, 69, 0.1) !important;
    border-color: #28a745 !important;
}

.choice-incorrect {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border-color: #dc3545 !important;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #170d26;
}

/* Table styling */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background-color: rgba(23, 13, 38, 0.1);
    border-bottom: 2px solid #170d26;
    color: #170d26;
    font-weight: 600;
}

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

/* Form controls */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.form-control:focus {
    border-color: #170d26;
    box-shadow: 0 0 0 0.2rem rgba(23, 13, 38, 0.25);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #170d26;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d1b4e;
}

/* Modal styling */
.modal-backdrop {
    background-color: rgba(23, 13, 38, 0.5);
}

.modal {
    backdrop-filter: blur(5px);
}

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(23, 13, 38, 0.2);
}

.modal-dialog {
    border-radius: 12px;
}

.modal-backdrop.show {
    opacity: 0.7;
} 