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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.back-btn, .upload-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.back-btn:hover, .upload-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.upload-btn {
    right: 150px;
}

/* Card Layout */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.icon {
    font-size: 3em;
    color: #3498db;
    margin-bottom: 20px;
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.card p {
    color: #666;
    margin-bottom: 25px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
}

.btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9em;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1em;
}

/* Form Styles */
.upload-form, .user-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="file"]:focus {
    border-color: #3498db;
    outline: none;
}

.help-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

/* Quiz Grid */
.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.quiz-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.quiz-header h3 {
    color: #2c3e50;
    font-size: 1.3em;
}

.quiz-id {
    background: #f1f8ff;
    color: #3498db;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
}

.quiz-info p {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.quiz-url, .quiz-qr {
    margin: 20px 0;
}

.quiz-url label, .quiz-qr label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.url-display {
    display: flex;
    gap: 10px;
}

.url-display input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}

.copy-btn {
    padding: 10px 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.qr-img {
    width: 150px;
    height: 150px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    background: white;
}

.quiz-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Question Cards */
.question-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.question-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.question-header h3 {
    color: #2c3e50;
}

.question-type {
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
}

.question-difficulty {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
}

.question-difficulty.Medium {
    background: #fff3e0;
    color: #f57c00;
}

.question-difficulty.Easy {
    background: #e8f5e9;
    color: #388e3c;
}

.question-difficulty.Hard {
    background: #ffebee;
    color: #d32f2f;
}

.question-content {
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.8;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option {
    display: flex;
    align-items: flex-start;
}

.option input[type="radio"] {
    margin-right: 15px;
    margin-top: 5px;
}

.option label {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.option label:hover {
    background: #f5f9ff;
    border-color: #3498db;
}

.option input[type="radio"]:checked + label {
    background: #e3f2fd;
    border-color: #3498db;
    color: #1976d2;
}

.option-letter {
    display: inline-block;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    background: #3498db;
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
}

/* Results Page */
.result-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.result-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.result-header.success {
    color: #27ae60;
}

.result-header h1 {
    font-size: 2.5em;
    margin: 20px 0 10px;
}

.score-summary {
    margin-bottom: 40px;
}

.score-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
}

.score-display {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 20px;
    margin: 20px 0;
}

.score-number {
    font-size: 3em;
    font-weight: bold;
    color: #2c3e50;
}

.score-percentage {
    font-size: 2em;
    color: #3498db;
}

.score-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 20px;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71 0%, #3498db 100%);
    transition: width 1s ease-in-out;
}

/* Statistics Page */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    font-size: 2.5em;
    color: #3498db;
}

.stat-content h3 {
    color: #666;
    font-size: 1em;
    margin-bottom: 5px;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stats-table th {
    background: #2c3e50;
    color: white;
    padding: 15px;
    text-align: left;
}

.stats-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.stats-table tr:hover {
    background: #f5f9ff;
}

.rate-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
}

.rate-badge.high {
    background: #d4edda;
    color: #155724;
}

.rate-badge.medium {
    background: #fff3cd;
    color: #856404;
}

.rate-badge.low {
    background: #f8d7da;
    color: #721c24;
}

.rate-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.rate-fill {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71 0%, #f39c12 100%);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    color: #ddd;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header {
        padding: 20px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .back-btn, .upload-btn {
        position: static;
        display: inline-block;
        margin-top: 15px;
        margin-right: 10px;
    }

    .dashboard {
        grid-template-columns: 1fr;
    }

    .quiz-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .score-display {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .stats-table {
        display: block;
        overflow-x: auto;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    .btn, .back-btn, .upload-btn {
        display: none;
    }

    .result-card {
        box-shadow: none;
        padding: 0;
    }
}

/* Question Link Styles */
.question-link {
    color: #3498db;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.question-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal-dialog {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
    color: white;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4em;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

/* Question Detail Styles */
.question-detail-card {
    background: white;
}

.question-content-modal {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.question-meta-info {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.meta-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.badge-type {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-difficulty {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.badge-difficulty.Medium {
    background: #fff3e0;
    color: #f57c00;
}

.badge-difficulty.Easy {
    background: #e8f5e9;
    color: #388e3c;
}

.badge-difficulty.Hard {
    background: #ffebee;
    color: #d32f2f;
}

/* Options in Modal */
.options-list {
    margin: 25px 0;
}

.option-header {
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1em;
}

.option-row {
    padding: 15px;
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.3s;
}

.option-row.correct {
    background: #e8f5e9;
    border-color: #4caf50;
}

.option-label {
    font-weight: bold;
    margin-right: 15px;
    min-width: 30px;
    font-size: 1.1em;
}

.option-text {
    flex: 1;
    margin-right: 15px;
}

.distribution-info {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

.distribution-chart {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-top: 5px;
    overflow: hidden;
}

.distribution-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    transition: width 0.5s ease;
}

/* Correct Answer Section */
.correct-answer-section {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #4caf50;
}

.section-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #388e3c;
    font-size: 1.1em;
}

.correct-answer-text {
    font-size: 1.2em;
    font-weight: bold;
    color: #388e3c;
}

/* Explanation Section */
.explanation-section {
    background: #fff3e0;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    border-left: 4px solid #ff9800;
}

.explanation-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #f57c00;
    font-size: 1.1em;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .modal-dialog {
        width: 95%;
        margin: 20px auto;
        max-height: 90vh;
    }

    .question-meta-info {
        flex-direction: column;
        gap: 10px;
    }

    .option-row {
        flex-direction: column;
        gap: 10px;
    }

    .option-text {
        margin-right: 0;
    }
}

/* Additional styles for new question types */
.question-type.Multiple-Choice {
    background: #e3f2fd;
    color: #1976d2;
}

.question-type.True-False {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Difficulty badges */
.question-difficulty.Easy {
    background: #e8f5e9;
    color: #388e3c;
}

.question-difficulty.Medium {
    background: #fff3e0;
    color: #f57c00;
}

.question-difficulty.Hard {
    background: #ffebee;
    color: #d32f2f;
}

/* Additional styles for submit.html */

/* Result card enhancements */
.result-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.result-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.result-header.success {
    color: #27ae60;
}

.result-header h1 {
    font-size: 2.5em;
    margin: 20px 0 10px;
}

.user-greeting {
    font-size: 1.2em;
    color: #666;
}

/* Summary cards animation */
.summary-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Perfect score styling */
.perfect-score {
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Incorrect questions animation */
.incorrect-question-card {
    animation: slideInLeft 0.5s ease;
    animation-fill-mode: both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Delay animations for each incorrect question */
.incorrect-question-card:nth-child(1) { animation-delay: 0.1s; }
.incorrect-question-card:nth-child(2) { animation-delay: 0.2s; }
.incorrect-question-card:nth-child(3) { animation-delay: 0.3s; }
.incorrect-question-card:nth-child(4) { animation-delay: 0.4s; }
.incorrect-question-card:nth-child(5) { animation-delay: 0.5s; }
.incorrect-question-card:nth-child(6) { animation-delay: 0.6s; }

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
}

.btn-success {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.btn-success:hover {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .result-card {
        padding: 20px;
    }

    .result-header h1 {
        font-size: 1.8em;
    }

    .result-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-number {
        font-size: 2em;
    }

    .actions-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Print styles for results */
@media print {
    .actions-section,
    .stats-preview .btn {
        display: none;
    }

    .result-card {
        box-shadow: none;
        padding: 0;
    }

    .perfect-score,
    .thank-you-message {
        break-inside: avoid;
    }
}


/* Additional styles for quiz list page */

/* Quiz card selection */
.quiz-card {
    position: relative;
    overflow: hidden;
}

.quiz-checkbox {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
    transform: scale(1.2);
    cursor: pointer;
}

/* Bulk actions bar */
.bulk-actions {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #e9ecef;
}

.bulk-actions label {
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    color: #495057;
}

/* Notification styles */
.notification {
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.notification i {
    font-size: 1.2em;
}

/* Quiz header actions */
.quiz-header-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.quiz-header-actions .btn-sm {
    flex: 1;
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
}

/* Empty state enhancements */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.empty-state i {
    color: #dee2e6;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bulk-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .quiz-header-actions {
        flex-direction: column;
    }

    .quiz-header-actions .btn-sm {
        width: 100%;
    }

    .confirmation-content {
        margin: 20% auto;
        width: 95%;
    }
}

/* Additional styles for SQLite database version */

/* Stats section */
.stats-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.stats-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 2em;
    color: #3498db;
}

.stat-content h3 {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
}

.stat-text {
    font-size: 1.2em;
    font-weight: 500;
    color: #2c3e50;
}

/* Header stats */
.header-stats {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.header-stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Database info badge */
.db-badge {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    margin-left: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-stats {
        flex-direction: column;
        gap: 10px;
    }
}