/* Global Styles */
body {
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.2s;
}

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

/* Question Card Styles */
.question-card {
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    background: white;
    padding: 1.5rem;
}

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

.question-card .card-title {
    color: #0d6efd;
    font-weight: 600;
}

.question-number {
    color: #0d6efd;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.question-type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
}

.matching-container {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}

.matching-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    cursor: pointer;
}

.matching-item.selected {
    background-color: #e7f1ff;
    border-color: #0d6efd;
}

.item-text {
    min-width: 150px;
    font-weight: 500;
}

.match-select {
    flex: 1;
}

.retry-btn {
    margin-top: 1rem;
    background-color: #6c757d;
    border: none;
}

.retry-btn:hover {
    background-color: #5a6268;
}

.attempts-left {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.feedback {
    margin-top: 1rem;
}

.questions-list {
    max-width: 800px;
    margin: 0 auto;
}

/* Form Styles */
.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Button Styles */
.btn-primary {
    background-color: #0d6efd;
    border: none;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}

/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

/* Admin Dashboard Specific Styles */
#questionsList .list-group-item {
    border-left: 3px solid #0d6efd;
    margin-bottom: 0.5rem;
}

/* Login/Register Form Styles */
.login-form, .register-form {
    max-width: 400px;
    margin: 2rem auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Animation Styles */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Loading spinner styles */
#loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

/* Disabled state styles */
.form-check-input:disabled,
.form-check-input:disabled ~ .form-check-label,
.match-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Correct answer display */
.alert-info {
    background-color: #e3f2fd;
    border-color: #90caf9;
    color: #0d47a1;
}
