/* Exam Form Styles */
.form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.form-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Specific override for large form cards */
.form-card.large,
.form-container .form-card.large {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    max-width: 800px;
}

.form-header {
    margin-bottom: 2.5rem;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #4a90e2, #5664d2);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-header h2 {
    margin-bottom: 1rem;
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

.form-header p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.category-input {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.category-input:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-input label {
    display: block;
    margin-bottom: 0.75rem;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
}

.category-input input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.category-input input[type="number"]:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    outline: none;
}

.available-count {
    display: block;
    font-size: 0.9rem;
    color: #666;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

/* Category-specific styles */
.category-input:nth-child(1) { border-left: 4px solid #28a745; }  /* Easy */
.category-input:nth-child(2) { border-left: 4px solid #ffc107; }  /* Medium */
.category-input:nth-child(3) { border-left: 4px solid #dc3545; }  /* Hard */
.category-input:nth-child(4) { border-left: 4px solid #6f42c1; }  /* Unseen */
.category-input:nth-child(5) { border-left: 4px solid #17a2b8; }  /* Image */
.category-input:nth-child(6) { border-left: 4px solid #fd7e14; }  /* Video */

.preview-section {
    margin-top: 2.5rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.preview-section h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4a90e2;
}

.preview-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
}

.preview-label {
    font-weight: 600;
    color: #666;
    min-width: 150px;
}

.preview-value {
    color: #333;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--cyber-primary, #4a90e2);
    color: var(--cyber-dark, #ffffff);
    border: none;
}

.btn-primary:hover {
    background: var(--cyber-accent, #357abd);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .form-container {
        padding: 1rem;
    }

    .form-card {
        padding: 1.5rem;
        margin: 0.5rem;
        border-radius: 12px;
    }

    .form-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .form-header p {
        font-size: 1rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-input {
        padding: 1rem;
    }

    .preview-section {
        padding: 1rem;
    }

    .preview-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .preview-label {
        margin-bottom: 0.25rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
}