.file-uploader-section {
    padding: 4rem 2rem;
    background-color: white;
}

.file-uploader {
    max-width: 800px;
    margin: 0 auto;
}

.file-uploader-title {
    text-align: center;
    font-family: 'Didot', serif;
    font-size: 28px;
    color: #2B2B2B;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.message {
    font-size: 16px;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.success-message {
    background-color: #dcfce7;
    color: #166534;
}

.error-message {
    background-color: #fee2e2;
    color: #dc2626;
}

.upload-zone {
    border: 2px dashed #CBBBA0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.upload-zone:hover {
    border-color: #90684A;
    background-color: rgba(203, 187, 160, 0.1);
}

.file-input {
    display: none;
}

.target-audience {
    margin-top: 3rem;
}

.audience-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.audience-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #CBBBA0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audience-option:hover {
    background-color: rgba(203, 187, 160, 0.1);
}

.audience-option img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.audience-option-label {
    font-weight: 500;
}

.analyze-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto 0;
    padding: 1rem 2rem;
    background-color: #CBBBA0;
    color: #2B2B2B;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.analyze-button:hover:not(:disabled) {
    background-color: #90684A;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(144, 104, 74, 0.3);
}

.analyze-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.analyze-button i {
    margin-right: 0.5rem;
}

/* File Preview Styles */
.file-preview-container {
    margin-bottom: 2rem;
    border: 2px solid #CBBBA0;
    border-radius: 12px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.file-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.preview-title {
    font-size: 18px;
    font-weight: 600;
    color: #2B2B2B;
    margin: 0;
}

.remove-file-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 20px;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.remove-file-btn:hover {
    background-color: #fee2e2;
    color: #dc2626;
}

.file-preview {
    padding: 1.5rem;
    text-align: center;
    background-color: #fafafa;
}

.preview-image {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.preview-pdf {
    padding: 2rem;
    color: #6b7280;
}

.preview-pdf i {
    color: #dc2626;
}

.preview-filename {
    font-size: 14px;
    margin-top: 0.5rem;
    color: #374151;
}

/* Analyzing Overlay */
.analyzing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.analyzing-content {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f4f6;
    border-top-color: #90684A;
    border-radius: 50%;
    margin: 0 auto 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.analyzing-title {
    font-size: 24px;
    font-weight: 600;
    color: #2B2B2B;
    margin-bottom: 0.5rem;
}

.analyzing-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 2rem;
}

.analyzing-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: #f9fafb;
    border-radius: 8px;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.step.active {
    background-color: #eff6ff;
    color: #3b82f6;
}

.step i {
    font-size: 18px;
}

.step span {
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .file-uploader-title {
        font-size: 24px;
    }

    .audience-options {
        grid-template-columns: 1fr;
    }

    .analyze-button {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .file-uploader-title {
        font-size: 20px;
    }

    .upload-zone {
        padding: 1rem;
    }
}
