/**
 * Frontend Styles
 */

.pdf-mcq-upload-container {
    max-width: 1200px;
    margin: 20px 0;
}

.pdf-mcq-upload-box {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
}

.pdf-mcq-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.pdf-mcq-btn:hover {
    background: #005a87;
}

.pdf-mcq-btn-primary {
    background: #0073aa;
}

.pdf-mcq-btn-success {
    background: #46b450;
}

.pdf-mcq-btn-success:hover {
    background: #3a9b3e;
}

.pdf-mcq-btn-small {
    padding: 5px 10px;
    font-size: 14px;
}

#pdf-mcq-file-info {
    margin: 10px 0;
    padding: 10px;
    background: #f1f1f1;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#pdf-mcq-processing {
    text-align: center;
    padding: 50px;
}

.pdf-mcq-loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0073aa;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Questions Display */
#pdf-mcq-questions {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.pdf-mcq-question {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.question-header h4 {
    margin: 0;
    color: #333;
}

.delete-question {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.delete-question:hover {
    background: #c82333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.form-group textarea,
.form-group input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.options-group {
    margin: 15px 0;
}

.option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 3px;
}

.option input[type="radio"] {
    margin-right: 10px;
}

.option label {
    margin-right: 10px;
    font-weight: bold;
    min-width: 25px;
}

.option-text {
    flex: 1;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.pdf-mcq-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
    text-align: center;
}

.pdf-mcq-actions button {
    margin: 0 10px;
}

/* Messages */
.pdf-mcq-error,
.pdf-mcq-success {
    padding: 15px;
    margin: 20px 0;
    border-radius: 3px;
    text-align: center;
    font-weight: bold;
}

.pdf-mcq-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pdf-mcq-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .pdf-mcq-upload-container {
        padding: 0 15px;
    }
    
    .question-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .delete-question {
        margin-top: 10px;
    }
    
    .option {
        flex-wrap: wrap;
    }
    
    .option input[type="radio"],
    .option label {
        margin-bottom: 5px;
    }
    
    .option-text {
        width: 100%;
    }
    
    .pdf-mcq-actions button {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}