:root {
    --primary: #3498db;
    --secondary: #2980b9;
    --success: #2ecc71;
    --danger: #e74c3c;
    --light: #f5f5f5;
    --dark: #34495e;
    --gray: #95a5a6;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2.5rem;
    color: var(--primary);
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stats {
    display: flex;
    gap: 20px;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-item .label {
    color: var(--gray);
    font-size: 0.9rem;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.upload-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-area {
    width: 100%;
    border: 3px dashed var(--primary);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 25px 0;
    position: relative;
}

.upload-area:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.upload-area i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.upload-area h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.upload-area p {
    color: var(--gray);
    margin-bottom: 15px;
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

.btn i {
    font-size: 1.1rem;
}

.btn-success {
    background: var(--success);
}

.btn-success:hover {
    background: #27ae60;
    box-shadow: 0 6px 12px rgba(46, 204, 113, 0.3);
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover {
    background: #c0392b;
    box-shadow: 0 6px 12px rgba(231, 76, 60, 0.3);
}

.files-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 1.6rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.file-list::-webkit-scrollbar {
    width: 8px;
}

.file-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.file-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    background: var(--light);
    transition: all 0.3s ease;
}

.file-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.file-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    margin-right: 15px;
}

.file-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    margin-bottom: 5px;
    word-break: break-all;
}

.file-meta {
    display: flex;
    gap: 15px;
    color: var(--gray);
    font-size: 0.85rem;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.progress-container {
    width: 100%;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    height: 12px;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 8px;
    width: 0%;
    transition: width 0.3s ease;
}

.upload-status {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    margin: 10px 0;
}

.empty-state {
    text-align: center;
    padding: 40px 0;
    color: var(--gray);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: rgba(149, 165, 166, 0.3);
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: var(--gray);
    font-size: 0.9rem;
}

.cloudflare-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249, 180, 45, 0.1);
    padding: 8px 15px;
    border-radius: 30px;
    margin-top: 15px;
    color: #F9B42D;
    font-weight: 600;
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    header {
        flex-direction: column;
        gap: 20px;
    }
    
    .stats {
        width: 100%;
        justify-content: space-around;
    }
}

@media (max-width: 600px) {
    .stats {
        flex-wrap: wrap;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-actions {
        width: 100%;
        margin-top: 15px;
        justify-content: flex-end;
    }
}