/* ==============================================
   ELIMINAR DEPARTAMENTO - ESTILOS ESPECÍFICOS
   ============================================== */

/* Contenedor principal */
.edep-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Tarjetas */
.edep-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.edep-card:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Títulos */
.edep-title {
    color: #dc3545;
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.edep-title-icon {
    font-size: 1.6rem;
}

/* Banner informativo */
.edep-info-banner {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.edep-info-banner-icon {
    color: #1976d2;
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.edep-info-banner p {
    margin: 0;
    color: #1565c0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Grupos de formulario */
.edep-form-group {
    margin-bottom: 25px;
}

.edep-search-group {
    position: relative;
}

/* Input con icono */
.edep-input-with-icon {
    position: relative;
    width: 100%;
}

.edep-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1rem;
    z-index: 1;
}

.edep-form-input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.edep-form-input:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.edep-form-input:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* Lista de áreas */
.edep-list-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

/* Tarjeta de área */
.edep-area-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.edep-area-card:hover {
    border-color: #dc3545;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.1);
}

.edep-area-content {
    flex: 1;
}

.edep-area-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.edep-area-icon {
    color: #dc3545;
    font-size: 1.4rem;
}

.edep-area-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #343a40;
}

.edep-area-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-left: 28px;
}

/* Botón para ver departamentos */
.edep-btn-primary {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.edep-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.edep-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.edep-btn-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Estado vacío */
.edep-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.edep-empty-icon {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 15px;
}

.edep-empty-title {
    font-size: 1.3rem;
    color: #495057;
    margin-bottom: 10px;
    font-weight: 600;
}

.edep-empty-message {
    font-size: 0.95rem;
    color: #6c757d;
}

/* Lista de departamentos */
.edep-department-list {
    background: white;
    border-radius: 10px;
    border: 1px solid #eaeaea;
    overflow: hidden;
}

.edep-list-header {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.edep-list-content {
    max-height: 400px;
    overflow-y: auto;
}

/* Item de departamento */
.edep-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.2s ease;
}

.edep-list-item:hover {
    background-color: #f8f9fa;
}

.edep-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.edep-item-icon {
    color: #495057;
    font-size: 1.2rem;
}

/* Botón de eliminar */
.edep-btn-delete {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.edep-btn-delete:hover:not(:disabled) {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.edep-btn-delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.edep-btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Botón secundario */
.edep-btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.edep-btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Tarjeta de advertencia */
.edep-warning-card {
    border-left: 5px solid #dc3545;
    background: linear-gradient(to right, #fff 0%, #fff8f8 100%);
}

.edep-warning-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    color: #dc3545;
}

.edep-warning-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.edep-warning-title {
    margin: 0;
    color: #dc3545;
    font-size: 1.6rem;
    font-weight: 700;
}

/* Contenido de advertencia */
.edep-warning-content {
    padding: 10px 0;
}

.edep-warning-text {
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Entidad a eliminar */
.edep-entity-to-delete {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.edep-entity-icon {
    color: #dc3545;
    font-size: 1.8rem;
}

.edep-entity-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #212529;
}

/* Detalles de advertencia */
.edep-warning-details {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffd54f;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.edep-warning-details p {
    margin: 0 0 10px 0;
    color: #856404;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edep-info-icon {
    color: #856404;
    font-size: 1.1rem;
}

.edep-warning-list {
    margin: 10px 0 0 25px;
    color: #856404;
}

.edep-warning-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Sección de confirmación */
.edep-confirmation-section {
    margin: 30px 0;
}

.edep-confirmation-label {
    display: block;
    margin-bottom: 12px;
    color: #495057;
    font-weight: 600;
    font-size: 1rem;
}

.edep-confirmation-label strong {
    color: #dc3545;
}

.edep-confirmation-input {
    width: 100%;
    padding: 16px 20px;
    border: 3px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    transition: all 0.3s ease;
    color: #495057;
}

.edep-confirmation-input:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

.edep-confirmation-valid {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
    color: #155724;
}

.edep-confirmation-input::placeholder {
    color: #adb5bd;
    letter-spacing: 1px;
    font-weight: normal;
}

/* Mensajes de error */
.edep-error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    color: #721c24;
    font-weight: 500;
}

/* Acciones de eliminación */
.edep-delete-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f1f1f1;
}

/* Animaciones de carga */
.edep-spinner-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .edep-container {
        padding: 15px;
    }
    
    .edep-card {
        padding: 20px;
    }
    
    .edep-title {
        font-size: 1.5rem;
    }
    
    .edep-delete-actions {
        flex-direction: column;
    }
    
    .edep-area-card {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .edep-btn-primary,
    .edep-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}