* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.1);
    --secondary: #1e1e2e;
    --secondary-hover: #2a2a3e;
    --background: #0f0f17;
    --surface: #1a1a27;
    --surface-hover: #252538;
    --border: #2a2a3e;
    --text: #ffffff;
    --text-secondary: #a0a0b0;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.logo svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.tagline {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Main */
main {
    flex: 1;
}

/* Upload Zone */
.upload-zone {
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-zone.dragover {
    transform: scale(1.02);
}

.upload-icon svg {
    width: 64px;
    height: 64px;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.upload-zone h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.upload-zone p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.file-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-large svg {
    width: 24px;
    height: 24px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* File List */
.file-list {
    background: var(--surface);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.file-list h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.files {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.file-item .file-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-item .file-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.file-item .file-details {
    flex: 1;
    min-width: 0;
}

.file-item .file-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item .file-size {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.file-item .remove-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.file-item .remove-btn:hover {
    background: var(--error);
    color: white;
}

.upload-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

/* Progress */
.progress-container {
    background: var(--surface);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background: var(--background);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #818cf8);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Result */
.result-container,
.error-container,
.download-container {
    background: var(--surface);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
}

.result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.result-icon.success {
    background: rgba(16, 185, 129, 0.1);
}

.result-icon.success svg {
    width: 40px;
    height: 40px;
    color: var(--success);
}

.result-icon.error {
    background: rgba(239, 68, 68, 0.1);
}

.result-icon.error svg {
    width: 40px;
    height: 40px;
    color: var(--error);
}

.result-container h2,
.error-container h2,
.download-container h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.result-container > p,
.error-container > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Link Box */
.link-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.link-box input {
    flex: 1;
    padding: 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
}

.btn-copy {
    background: var(--secondary);
    color: var(--text);
    padding: 1rem;
    border: 1px solid var(--border);
}

.btn-copy svg {
    width: 20px;
    height: 20px;
}

.btn-copy.copied {
    background: var(--success);
    border-color: var(--success);
}

/* Result Info */
.result-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 10px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-item .value {
    font-weight: 600;
}

/* Download Page */
.download-icon svg {
    width: 64px;
    height: 64px;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.download-files {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
    text-align: left;
}

.download-file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.download-file-item .file-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-file-item .file-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.download-file-item .file-details {
    flex: 1;
    min-width: 0;
}

.download-file-item .file-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-file-item .file-size {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.download-file-item .download-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Footer */
footer {
    text-align: center;
    padding-top: 3rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .upload-zone {
        padding: 2rem 1.5rem;
    }
    
    .upload-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .result-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .link-box {
        flex-direction: column;
    }
    
    .upload-actions {
        flex-direction: column;
    }
    
    .btn-copy span {
        display: none;
    }
}

/* Hidden utility */
[hidden] {
    display: none !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
