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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
    padding-bottom: 6rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    max-width: 80rem;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #037CFB 0%, #4DB6FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Demo Container */
.demo-container {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 3rem;
}

/* Upload Section */
.upload-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 2.5rem;
}

.upload-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #fff;
}

/* Dropzone */
.dropzone {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.dropzone:hover {
    border-color: #037CFB;
    background: rgba(3, 124, 251, 0.05);
}

.dropzone.drag-over {
    border-color: #4DB6FF;
    background: rgba(77, 182, 255, 0.1);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(77, 182, 255, 0.3);
}

.dropzone.drag-over .dropzone-content i {
    transform: scale(1.2);
    color: #4DB6FF;
}

.dropzone-compact {
    padding: 3rem 2rem;
}

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

/* Dropzone Content */
.dropzone-content {
    pointer-events: none;
}

.dropzone-content i {
    font-size: 6rem;
    color: #037CFB;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.dropzone-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.dropzone-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.dropzone-formats {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.format-badge {
    background: rgba(3, 124, 251, 0.2);
    border: 1px solid rgba(3, 124, 251, 0.3);
    color: #4DB6FF;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.dropzone-limit {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Files Preview */
.files-preview {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1.5rem;
}

.files-preview-list {
    grid-template-columns: 1fr;
}

/* File Item */
.file-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.2rem;
    overflow: hidden;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* File Preview */
.file-preview {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

.file-icon-container {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 124, 251, 0.1);
}

.file-icon {
    font-size: 6rem;
    color: #037CFB;
}

/* File Info */
.file-info {
    padding: 1.2rem;
}

.file-name {
    font-size: 1.3rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.8rem;
}

/* Progress Bar */
.file-progress {
    height: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.2rem;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #037CFB 0%, #4DB6FF 100%);
    border-radius: 0.2rem;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* File Status */
.file-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.file-status.uploading {
    color: #4DB6FF;
}

.file-status.success {
    color: #4CAF50;
}

.file-status.error {
    color: #FF5252;
}

.file-status i {
    font-size: 1.3rem;
}

/* Delete Button */
.delete-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 82, 82, 0.9);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 10;
}

.file-item:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    background: #FF5252;
    transform: scale(1.1);
}

.delete-btn i {
    color: #fff;
    font-size: 1.4rem;
}

/* List View for Documents */
.files-preview-list .file-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
}

.files-preview-list .file-icon-container {
    width: 6rem;
    height: 6rem;
    aspect-ratio: auto;
    border-radius: 1rem;
    flex-shrink: 0;
}

.files-preview-list .file-icon {
    font-size: 3rem;
}

.files-preview-list .file-info {
    flex: 1;
    padding: 0 1.5rem;
}

.files-preview-list .file-name {
    margin-bottom: 0.3rem;
}

.files-preview-list .delete-btn {
    position: static;
    opacity: 1;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.4);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.4rem;
}

/* Error Message */
.error-message {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: #FF5252;
    padding: 1.2rem 1.5rem;
    border-radius: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-1rem); }
    75% { transform: translateX(1rem); }
}

.error-message i {
    font-size: 1.8rem;
}

.error-message p {
    font-size: 1.3rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.4rem;
    }

    .demo-container {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }

    .dropzone {
        padding: 3rem 1.5rem;
    }

    .dropzone-content i {
        font-size: 4.5rem;
    }

    .dropzone-title {
        font-size: 1.6rem;
    }

    .files-preview {
        grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
        gap: 1rem;
    }
}
