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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 600px;
    width: 100%;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.upload-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.drop-zone {
    border: 3px dashed #d1d5db;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.drop-zone:hover {
    border-color: #667eea;
    background: #f9fafb;
}

.drop-zone.drag-over {
    border-color: #667eea;
    background: #eef2ff;
}

.upload-icon {
    width: 80px;
    height: 80px;
    color: #667eea;
    margin-bottom: 20px;
}

.drop-zone h2 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 8px;
}

.drop-zone p {
    color: #6b7280;
    font-size: 1rem;
}

.file-limit {
    margin-top: 16px;
    font-size: 0.875rem;
    color: #9ca3af;
}

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

.progress-section {
    text-align: center;
}

.file-info {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 24px;
}

.file-icon {
    width: 48px;
    height: 48px;
    color: #667eea;
    margin-right: 16px;
    flex-shrink: 0;
}

.file-details {
    text-align: left;
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: #6b7280;
    font-size: 0.875rem;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    color: #6b7280;
    font-size: 0.875rem;
}

.success-section,
.error-section {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    color: #10b981;
    margin: 0 auto 20px;
}

.error-icon {
    width: 80px;
    height: 80px;
    color: #ef4444;
    margin: 0 auto 20px;
}

.success-section h2,
.error-section h2 {
    font-size: 1.75rem;
    color: #1f2937;
    margin-bottom: 12px;
}

.info-text {
    color: #6b7280;
    margin-bottom: 24px;
}

.link-container {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.download-link {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1f2937;
    background: #f9fafb;
    font-family: 'Courier New', monospace;
}

.copy-btn {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.copy-btn.copied {
    background: #10b981;
}

.warning-text {
    background: #fef3c7;
    color: #92400e;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 12px;
    border-left: 4px solid #f59e0b;
}

.expiry-text {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.upload-another-btn {
    padding: 12px 32px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-another-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.error-message {
    color: #ef4444;
    margin-bottom: 24px;
    font-size: 1rem;
}

.hidden {
    display: none !important;
}

@media (max-width: 640px) {
    .header h1 {
        font-size: 2rem;
    }

    .upload-section {
        padding: 30px 20px;
    }

    .drop-zone {
        padding: 40px 20px;
    }

    .link-container {
        flex-direction: column;
    }

    .copy-btn {
        width: 100%;
    }
}
