* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1000px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header {
    background: #4a6bdf;
    color: white;
    text-align: center;
    padding: 25px 20px;
}

h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.description {
    font-size: 16px;
    opacity: 0.9;
}

.main-content {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.upload-section {
    flex: 1;
}

.files-section {
    flex: 1;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.files-section h3 {
    color: #4a6bdf;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.upload-area {
    border: 3px dashed #4a6bdf;
    border-radius: 15px;
    padding: 40px 20px;
    margin-bottom: 25px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.upload-area:hover, .upload-area.dragover {
    background: #f0f4ff;
    transform: translateY(-5px);
}

.upload-icon {
    font-size: 60px;
    color: #4a6bdf;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 18px;
    margin-bottom: 15px;
}

.browse-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #4a6bdf;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.browse-btn:hover {
    background: #3a5bd0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 91, 208, 0.3);
}

#file-input {
    display: none;
}

.file-info {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    text-align: left;
}

.file-info h3 {
    color: #4a6bdf;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.info-item {
    display: flex;
    margin-bottom: 12px;
}

.info-label {
    font-weight: 600;
    color: #4a6bdf;
    min-width: 120px;
}

.info-value {
    color: #555;
    word-break: break-all;
}

.no-file, .no-files {
    text-align: center;
    color: #a0a0a0;
    font-style: italic;
}

.file-preview {
    margin-top: 20px;
    text-align: center;
}

.file-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.action-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-btn {
    background: #4a6bdf;
    color: white;
}

.upload-btn:hover {
    background: #3a5bd0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 91, 208, 0.3);
}

.reset-btn {
    background: #dc3545;
    color: white;
}

.reset-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.progress-container {
    margin-top: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    height: 20px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4a6bdf, #2575fc);
    transition: width 0.4s ease;
}

.status-text {
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
    color: #4a6bdf;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.file-icon {
    font-size: 24px;
    color: #4a6bdf;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.file-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #888;
}

.file-date, .file-size {
    display: flex;
    align-items: center;
}

.file-actions .download-btn {
    color: #4a6bdf;
    font-size: 18px;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.file-actions .download-btn:hover {
    background: #f0f4ff;
    transform: scale(1.1);
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .container {
        border-radius: 10px;
    }
    
    header {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .upload-container {
        padding: 20px;
    }
    
    .info-item {
        flex-direction: column;
        margin-bottom: 15px;
    }
    
    .info-label {
        margin-bottom: 5px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}