
/**
 * FileUploadZone Component Styles
 *
 * Modern Material Design-inspired styling for the file upload component
 */

/* ==================== MAIN CONTAINER ==================== */

.file-upload-zone {
    display: block;
    width: 100%;
    font-family: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==================== DROP ZONE ==================== */

.file-upload-zone-dropzone {
    position: relative;
    border: 2px dashed #bdbdbd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.file-upload-zone-dropzone:hover {
    border-color: #2196F3;
    background-color: #f5f9ff;
}

/* Drag over state */
.file-upload-zone-dropzone.file-upload-zone-dragover {
    border-color: #2196F3;
    background-color: #e3f2fd;
    border-width: 3px;
    transform: scale(1.02);
}

/* When files are selected */
.file-upload-zone.has-files .file-upload-zone-dropzone {
    padding: 20px;
    min-height: auto;
    background-color: #e8f5e9;
    border-color: #4CAF50;
    border-style: solid;
}

.file-upload-zone.has-files .file-upload-zone-dropzone:hover {
    background-color: #c8e6c9;
}

/* ==================== INSTRUCTION TEXT ==================== */

.file-upload-zone-instruction {
    color: #757575;
    user-select: none;
}

.file-upload-zone-instruction i {
    color: #2196F3;
    margin-bottom: 16px;
}

.file-upload-zone-instruction p {
    font-size: 16px;
    margin: 8px 0;
}

.file-upload-zone-instruction small {
    font-size: 14px;
}

/* ==================== SUMMARY TEXT ==================== */

.file-upload-zone-summary {
    color: #2e7d32;
    user-select: none;
}

.file-upload-zone-summary i {
    font-size: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

.file-upload-zone-summary strong {
    font-size: 16px;
    vertical-align: middle;
}

.file-upload-zone-summary small {
    font-size: 14px;
    margin-left: 8px;
}

/* ==================== FILE LIST ==================== */

.file-upload-zone-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ==================== FILE ITEM ==================== */

.file-upload-zone-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.file-upload-zone-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #bdbdbd;
}

/* File icon */
.file-upload-zone-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 12px;
}

/* File info */
.file-upload-zone-item-info {
    flex: 1;
    min-width: 0;
    margin-right: 12px;
}

.file-upload-zone-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #212121;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.file-upload-zone-item-size {
    font-size: 12px;
    color: #757575;
}

/* Delete button */
.file-upload-zone-item-delete {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    background-color: #f5f5f5;
    color: #757575;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.file-upload-zone-item-delete:hover {
    background-color: #f44336;
    color: #fff;
    transform: scale(1.1);
}

.file-upload-zone-item-delete:active {
    transform: scale(0.95);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 576px) {
    .file-upload-zone-dropzone {
        padding: 30px 15px;
        min-height: 150px;
    }

    .file-upload-zone-instruction p {
        font-size: 14px;
    }

    .file-upload-zone-instruction i {
        font-size: 2rem;
    }

    .file-upload-zone-item {
        padding: 10px 12px;
    }

    .file-upload-zone-item-icon {
        width: 32px;
        height: 32px;
        font-size: 20px;
        margin-right: 10px;
    }

    .file-upload-zone-item-name {
        font-size: 13px;
    }

    .file-upload-zone-item-size {
        font-size: 11px;
    }
}

/* ==================== UTILITIES ==================== */

/* Compact variant */
.file-upload-zone-compact .file-upload-zone-dropzone {
    padding: 20px 15px;
    min-height: 120px;
}

/* Error state */
.file-upload-zone-error .file-upload-zone-dropzone {
    border-color: #f44336;
    background-color: #ffebee;
}

.file-upload-zone-error .file-upload-zone-dropzone:hover {
    background-color: #ffcdd2;
}

/* Disabled state */
.file-upload-zone-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.file-upload-zone-disabled .file-upload-zone-dropzone {
    cursor: not-allowed;
    background-color: #f5f5f5;
}

/* Loading state */
.file-upload-zone-loading .file-upload-zone-dropzone {
    position: relative;
    pointer-events: none;
}

.file-upload-zone-loading .file-upload-zone-dropzone::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}


.empty-state-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    margin-top: 20px;
    animation: fadeIn 0.6s ease-out;
}

.empty-state-content {
    text-align: center;
    max-width: 400px;
}

/* Ilustración CSS */
.icon-wrapper {
    width: 40px;
    height: 40px;
}

.folder-icon {
    width: 60px;
    height: 45px;
    background: #cbdcf0;
    border-radius: 4px;
    position: relative;
    margin: 20px auto;
}

.folder-icon::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 25px;
    height: 10px;
    background: #cbdcf0;
    border-radius: 4px 4px 0 0;
}

.paper {
    width: 40px;
    height: 30px;
    background: white;
    position: absolute;
    bottom: 10px;
    left: 10px;
    border-radius: 2px;
    animation: float 3s ease-in-out infinite;
}

.plus-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Tipografía y Botón */
.empty-state-content h3 {
    color: #2d3436;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.btn-modern-primary {
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Efecto de atención para el botón real */
.pulse-highlight {
    animation: pulse-blue 1.5s infinite;
}

@keyframes pulse-blue {
    0% { outline: 0px solid rgba(74, 144, 226, 0.7); }
    100% { outline: 15px solid rgba(74, 144, 226, 0); }
}
