/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #2d5a87 0%, #1e3a5f 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #20b2aa, #2e8b57);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #40e0d0, #008b8b);
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, #66cdaa, #3cb371);
    bottom: 20%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.logo i {
    font-size: 28px;
    color: #20b2aa;
}

.beta {
    font-size: 12px;
    background: linear-gradient(135deg, #20b2aa, #40e0d0);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    margin-left: 8px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #20b2aa, #2e8b57);
    color: white;
    box-shadow: 0 4px 15px rgba(32, 178, 170, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 178, 170, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-icon {
    padding: 8px;
    border-radius: 8px;
    background: transparent;
}

/* Upload Area */
.upload-card {
    margin-bottom: 30px;
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.card-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 30px;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #20b2aa;
    background: rgba(32, 178, 170, 0.1);
    transform: scale(1.02);
}

.upload-content .upload-icon {
    font-size: 48px;
    color: #20b2aa;
    margin-bottom: 20px;
}

.upload-content h3 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

/* Upload Options */
.upload-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-group label {
    color: white;
    font-weight: 500;
    font-size: 14px;
}

.option-group input,
.option-group select {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.option-group input:focus,
.option-group select:focus {
    outline: none;
    border-color: #20b2aa;
    box-shadow: 0 0 0 3px rgba(32, 178, 170, 0.2);
}

.option-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Files Queue */
.files-queue {
    margin-bottom: 30px;
}

.files-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.file-details h4 {
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.file-details p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.file-actions {
    display: flex;
    gap: 8px;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #20b2aa, #40e0d0);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    color: white;
    font-weight: 500;
}

.upload-status {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    margin: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    color: white;
    font-size: 20px;
    font-weight: 600;
}

/* Results */
.result-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 16px;
}

.result-success {
    border-left: 4px solid #48cae4;
}

.result-error {
    border-left: 4px solid #ff6b6b;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.result-title {
    color: white;
    font-weight: 500;
}

.result-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-success {
    background: rgba(32, 178, 170, 0.2);
    color: #20b2aa;
}

.status-error {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.result-details {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
}

.download-links {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.download-link {
    padding: 8px 16px;
    background: rgba(32, 178, 170, 0.2);
    color: #20b2aa;
    text-decoration: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-link:hover {
    background: rgba(32, 178, 170, 0.3);
    transform: translateY(-1px);
}

/* File Type Icons */
.file-icon.image { background: linear-gradient(135deg, #ff6b6b, #feca57); }
.file-icon.video { background: linear-gradient(135deg, #48cae4, #023e8a); }
.file-icon.audio { background: linear-gradient(135deg, #f72585, #b5179e); }
.file-icon.document { background: linear-gradient(135deg, #667eea, #764ba2); }
.file-icon.archive { background: linear-gradient(135deg, #feca57, #ff6b6b); }
.file-icon.code { background: linear-gradient(135deg, #48cae4, #667eea); }
.file-icon.default { background: linear-gradient(135deg, #a8a8a8, #6c6c6c); }

/* Page-wide drag indicator */
body.drag-active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(32, 178, 170, 0.1);
    border: 3px dashed #20b2aa;
    z-index: 9999;
    pointer-events: none;
    animation: dragPulse 1s infinite;
}

body.drag-active::after {
    content: 'Drop files anywhere to upload';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(32, 178, 170, 0.9);
    color: white;
    padding: 20px 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes dragPulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

.file-item {
    animation: slideIn 0.3s ease;
}

.upload-area.uploading {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

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

    .glass-card {
        padding: 20px;
    }

    .upload-area {
        padding: 40px 15px;
    }

    .card-header h1 {
        font-size: 24px;
    }

    .download-links {
        flex-direction: column;
    }

    .file-actions {
        flex-direction: column;
        gap: 4px;
    }
}
