/**
 * Forms Styles
 *
 * @package Coursee
 * @since 1.0.0
 */

.coursee-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.coursee-form .form-group {
    margin-bottom: 1.5rem;
}

.coursee-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.coursee-form .required {
    color: #dc3232;
}

.coursee-form .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.coursee-form .form-control:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.coursee-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.coursee-form .form-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
}

.coursee-form .form-messages {
    margin-bottom: 1.5rem;
}

.coursee-form .form-messages .notice {
    padding: 1rem;
    border-left: 4px solid;
}

.coursee-form .form-messages .notice-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.coursee-form .form-messages .notice-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Image Upload */
.image-upload-wrapper {
    margin-top: 0.5rem;
}

.image-preview {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.image-preview img {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
}

.image-preview .remove-image {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
}

/* File Upload */
.file-upload-wrapper {
    margin-top: 0.5rem;
}

.uploaded-files-list {
    margin-top: 1rem;
}

.uploaded-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.uploaded-file .remove-file {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Quiz Questions */
.questions-list {
    margin-top: 1rem;
}

.question-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f9f9f9;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.question-number {
    font-weight: 600;
}

.question-options-list {
    margin-top: 1rem;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Certificate Builder */
.certificate-builder {
    margin-top: 1rem;
}

.certificate-preview {
    border: 2px dashed #ddd;
    min-height: 400px;
    background: #fff;
    padding: 2rem;
    margin-bottom: 1rem;
}

.certificate-canvas {
    position: relative;
    width: 100%;
    height: 100%;
}

.certificate-tools {
    display: flex;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .coursee-form {
        padding: 1rem;
    }

    .coursee-form .form-row {
        grid-template-columns: 1fr;
    }
}

