/* modal.css */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
    transform: translateY(-50px);
    transition: transform 0.4s ease;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--secondary-color);
}

.modal-header h2 {
    font-size: 1.8em;
    color: var(--text-color);
    margin: 0;
}

.modal-close-button {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: var(--light-text-color);
    transition: color 0.3s ease;
}

.modal-close-button:hover {
    color: var(--primary-color);
}

.modal-body {
    overflow-y: auto;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 1.2em;
    height: 1.2em;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 500;
    cursor: pointer;
}

.modal-body input[type="text"],
.modal-body input[type="email"],
.modal-body textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-body input[type="text"]:focus,
.modal-body input[type="email"]:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 99, 232, 0.15);
}

.modal-body textarea {
    resize: vertical;
    min-height: 100px;
}

.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background-color: #f9f9f9;
}

.file-upload-area .file-upload-icon {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.file-upload-icon svg {
    width: 1em;
    height: 1em;
}

.file-upload-area p {
    margin: 0;
    color: var(--light-text-color);
}

.file-upload-area input[type="file"] {
    display: none;
}

#file-list {
    margin-top: 15px;
    font-size: 0.9em;
}

#file-list div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background: var(--secondary-color);
    border-radius: 8px;
    margin-bottom: 5px;
}

#file-list .remove-file {
    cursor: pointer;
    color: #ff0000;
    font-weight: bold;
    margin-left: 10px;
}

.modal-footer {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--secondary-color);
}

.modal-footer-note {
    margin-top: 15px;
    color: var(--light-text-color);
    font-size: 0.9em;
} 