/* ============================================
   SHORTCODE: Gestión de Correos
   Dos columnas: Descargar | Cargar
   ============================================ */

/* Contenedor principal */
.revisor-correos {
    width: 100%;
    padding: 20px;
}

/* Grid de dos columnas */
.revisor-correos-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Panel individual */
.correos-panel {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header del panel */
.correos-panel-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.correos-panel-descargar .correos-panel-header {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
}

.correos-panel-cargar .correos-panel-header {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
}

.correos-panel-header i {
    font-size: 24px;
}

.correos-panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

/* Body del panel */
.correos-panel-body {
    padding: 25px;
}

/* Descripción */
.correos-descripcion {
    color: #616161;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Lista de archivos */
.correos-lista-archivos {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.correos-lista-archivos li {
    background: #f5f5f5;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.correos-lista-archivos i {
    color: #1e88e5;
    font-size: 18px;
}

.correos-lista-archivos strong {
    color: #212121;
    font-weight: 600;
}

/* Info box */
.correos-info-box {
    background: #e3f2fd;
    border-left: 4px solid #1e88e5;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.correos-info-box i {
    color: #1e88e5;
    font-size: 20px;
}

.correos-info-box span {
    color: #1565c0;
    font-weight: 600;
}

/* Área de carga (drag & drop) */
.correos-upload-area {
    border: 2px dashed #bdbdbd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.correos-upload-area:hover {
    border-color: #43a047;
    background: #f1f8e9;
}

.correos-upload-area.dragover {
    border-color: #43a047;
    background: #e8f5e9;
    transform: scale(1.02);
}

.correos-upload-area i {
    font-size: 48px;
    color: #bdbdbd;
    margin-bottom: 10px;
}

.correos-upload-area p {
    margin: 10px 0 5px 0;
    color: #616161;
    font-weight: 600;
}

.correos-upload-area small {
    color: #9e9e9e;
    font-size: 12px;
}

/* Archivo seleccionado */
.archivo-seleccionado {
    background: #e8f5e9;
    border: 1px solid #81c784;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.archivo-seleccionado i {
    color: #43a047;
    font-size: 24px;
}

.archivo-seleccionado span {
    flex: 1;
    color: #2e7d32;
    font-weight: 600;
}

.archivo-seleccionado .btn-quitar {
    background: transparent;
    border: none;
    color: #e53935;
    font-size: 18px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.archivo-seleccionado .btn-quitar:hover {
    background: #ffebee;
}

/* Botones */
.correos-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.correos-btn-primary {
    background: #1e88e5;
    color: white;
}

.correos-btn-primary:hover {
    background: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

.correos-btn-success {
    background: #43a047;
    color: white;
}

.correos-btn-success:hover {
    background: #388e3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.3);
}

.correos-btn:disabled {
    background: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.correos-btn i {
    font-size: 16px;
}

/* Mensajes */
.correos-mensaje {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

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

.correos-mensaje.success {
    background: #e8f5e9;
    border-left: 4px solid #43a047;
    color: #2e7d32;
}

.correos-mensaje.error {
    background: #ffebee;
    border-left: 4px solid #e53935;
    color: #c62828;
}

.correos-mensaje.info {
    background: #e3f2fd;
    border-left: 4px solid #1e88e5;
    color: #1565c0;
}

.correos-mensaje i {
    font-size: 18px;
}

/* Loading spinner */
.correos-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

@media (max-width: 1024px) {
    .revisor-correos-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .revisor-correos {
        padding: 15px;
    }
    
    .correos-panel-body {
        padding: 20px;
    }
    
    .correos-panel-header h3 {
        font-size: 16px;
    }
    
    .correos-upload-area {
        padding: 30px 15px;
    }
    
    .correos-upload-area i {
        font-size: 36px;
    }
}
