﻿/* Dark Theme with Purple-Blue-Red Gradient */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --secondary-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --dark-bg: #0f0f23;
    --card-bg: rgba(30, 30, 60, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --border-color: rgba(102, 126, 234, 0.3);
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
}

body {
    background: var(--dark-bg);
    background-image: 
        radial-gradient(at 0% 0%, rgba(102, 126, 234, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(240, 147, 251, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(118, 75, 162, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(250, 112, 154, 0.2) 0px, transparent 50%);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.page-header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.5));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(240, 147, 251, 0.8));
    }
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Card Styles */
.custom-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(102, 126, 234, 0.4);
}

.custom-card h2 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Upload Form Styles */
.upload-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    border: 2px dashed var(--border-color);
    border-radius: 15px;
    background: rgba(102, 126, 234, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input-label:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.file-input-label i {
    font-size: 3rem;
    margin-right: 15px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.file-input-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Button Styles */
.btn-gradient {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px 0 rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(102, 126, 234, 0.6);
}

.btn-gradient:active {
    transform: translateY(0);
}

/* Progress Bar Styles */
.progress-container {
    margin-top: 20px;
}

.progress {
    height: 30px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress-bar {
    background: var(--primary-gradient);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.upload-status {
    text-align: center;
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Table Styles */
.files-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.files-table thead th {
    background: var(--primary-gradient);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.files-table thead th:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.files-table thead th:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.files-table tbody tr {
    background: rgba(30, 30, 60, 0.6);
    transition: all 0.3s ease;
}

.files-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.02);
}

.files-table tbody td {
    padding: 20px 15px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.files-table tbody td:first-child {
    border-left: 1px solid var(--border-color);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.files-table tbody td:last-child {
    border-right: 1px solid var(--border-color);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.file-name {
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-name::before {
    content: "📄";
    font-size: 1.2rem;
}

.file-size {
    color: var(--text-secondary);
}

.elapsed-time {
    font-weight: 600;
}

.elapsed-time.warning {
    color: var(--danger-color);
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Action Button Styles */
.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-action {
    padding: 8px 20px;
    border-radius: 20px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-delete {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 112, 154, 0.4);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-card {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .custom-card {
        padding: 20px;
    }
    
    .files-table {
        font-size: 0.9rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}
