﻿/* ---------- Upload Container ---------- */
.upload-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: #37352f;
}

/* ---------- Header ---------- */
.upload-header {
    margin-bottom: 3rem;
}

.upload-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #37352f;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.upload-subtitle {
    font-size: 1.1rem;
    color: #73726e;
    margin: 0;
    font-weight: 400;
}

/* ---------- Form Wrapper ---------- */
.upload-form-wrapper {
    background-color: #ffffff;
    border: 1px solid #e9e9e7;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ---------- Form Fields ---------- */
.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #37352f;
    margin-bottom: 0.25rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 0.875rem;
    font-size: 0.95rem;
    color: #37352f;
    background-color: #ffffff;
    border: 1px solid #e9e9e7;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

    .form-input:hover,
    .form-textarea:hover,
    .form-select:hover {
        border-color: #d3d1cb;
    }

    .form-input:focus,
    .form-textarea:focus,
    .form-select:focus {
        border-color: #37352f;
        box-shadow: 0 0 0 3px rgba(55, 53, 47, 0.1);
    }

    .form-input::placeholder,
    .form-textarea::placeholder {
        color: #9b9a97;
    }

.form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2337352f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.5rem;
}

.form-error {
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 0.25rem;
}

/* ---------- File Upload ---------- */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2.5rem 1.5rem;
    background-color: #fafaf9;
    border: 2px dashed #e9e9e7;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

    .file-label:hover {
        background-color: #f7f6f3;
        border-color: #d3d1cb;
    }

    .file-label.dragging {
        background-color: #f0f0ef;
        border-color: #37352f;
    }

    .file-label.has-file {
        background-color: #f0fdf4;
        border-color: #86efac;
    }

.file-icon {
    font-size: 2rem;
    opacity: 0.6;
}

.file-text {
    font-size: 0.95rem;
    color: #73726e;
    font-weight: 400;
}

.file-name {
    font-size: 0.875rem;
    color: #37352f;
    font-weight: 500;
}

/* ---------- Form Actions ---------- */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0ef;
    margin-top: 0.5rem;
}

.btn-cancel {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #37352f;
    background-color: #ffffff;
    text-decoration: none;
    border: 1px solid #e9e9e7;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .btn-cancel:hover {
        background-color: #fafaf9;
        border-color: #d3d1cb;
        text-decoration: none;
        color: #37352f;
    }

.btn-submit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    background-color: #37352f;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

    .btn-submit:hover {
        background-color: #2c2a26;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

.submit-icon {
    font-size: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .upload-container {
        padding: 2rem 1.5rem;
    }

    .upload-title {
        font-size: 2rem;
    }

    .upload-form-wrapper {
        padding: 1.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}
