:root {
    /* Color Palette */
    --primary: #C39F76; /* Elegant soft gold/champagne */
    --primary-hover: #b08a5e;
    --bg-color: #fcfbf9; /* Warm off-white */
    --text-main: #2C363F; /* Deep charcoal for readable contrast */
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    overflow-x: hidden;
    position: relative;
}

/* Subtle Animated Background Gradient */
.background-animation {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, #fdfbfb 0%, #ebedee 100%);
    z-index: -1;
    animation: rotateBg 60s linear infinite;
    opacity: 0.6;
}

.background-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(var(--primary) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.07;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.upload-container {
    width: 100%;
    max-width: 640px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.8s var(--transition-smooth);
}

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

.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

.upload-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Drop Zone */
.drop-zone {
    position: relative;
    border: 2px dashed var(--primary);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    background-color: rgba(195, 159, 118, 0.03);
    transition: all var(--transition-fast);
    cursor: pointer;
    overflow: hidden;
}

.drop-zone:hover, .drop-zone.dragover {
    background-color: rgba(195, 159, 118, 0.08);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: transform var(--transition-smooth);
}

.drop-zone:hover .upload-icon {
    transform: translateY(-5px);
}

.drop-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.drop-subtext {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.accepted-formats {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: rgba(195, 159, 118, 0.15);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Preview Area */
.preview-area {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.preview-area::-webkit-scrollbar {
    width: 6px;
}
.preview-area::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.03);
    border-radius: 10px;
}
.preview-area::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.preview-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow-sm);
    animation: scaleIn 0.3s var(--transition-smooth);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.preview-item img, .preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background var(--transition-fast);
    font-size: 14px;
}

.preview-item .remove-btn:hover {
    background: rgba(220, 38, 38, 0.8);
}

/* Actions */
.actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(195, 159, 118, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(195, 159, 118, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(0,0,0,0.03);
    color: var(--text-main);
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(3px);
}

/* Progress */
.progress-container {
    text-align: center;
    padding: 1.5rem 0;
}

.progress-bar-wrap {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), #e6c59f);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.5s var(--transition-smooth);
}

.success-icon {
    width: 64px;
    height: 64px;
    color: #10B981;
    margin-bottom: 1rem;
}

.success-message h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--text-muted);
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 600px) {
    .upload-container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .drop-zone {
        padding: 2rem 1rem;
    }
    
    .actions {
        flex-direction: column-reverse;
    }
    
    .btn {
        width: 100%;
    }
}
