/* Estilos personalizados para la aplicación de gestión Divi */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border-radius: 15px 15px 0 0 !important;
    padding: 2rem;
}

.card-header h2 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: white !important;
}

.card-header h2,
.card-header p,
.card-header .text-muted {
    color: white !important;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.table {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    vertical-align: middle;
}

.badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
    border-radius: 8px;
}

.btn-outline-primary:hover {
    background-color: #667eea;
    border-color: #667eea;
}

.btn-outline-success {
    border-color: #28a745;
    color: #28a745;
    border-radius: 8px;
}

.btn-outline-success:hover {
    background-color: #28a745;
    border-color: #28a745;
}

.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .card-header {
        padding: 1.5rem;
    }

    .table-responsive {
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Honeypot field: oculto para usuarios, visible para bots simples */
.hp-field {
    position: absolute;
    left: -5000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Banner Carta al Futuro */
.carta-futuro-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.carta-futuro-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.carta-futuro-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.5);
}

.carta-futuro-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.carta-icon {
    font-size: 60px;
    animation: bounce 2s ease-in-out infinite;
}

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

.carta-text {
    flex: 1;
    color: white;
}

.carta-text h4 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.carta-text p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
}

.btn-carta-futuro {
    background: white;
    color: #ff6b6b;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: inline-block;
    white-space: nowrap;
}

.btn-carta-futuro:hover {
    background: #f0f0f0;
    color: #e74c3c;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .carta-futuro-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .carta-icon {
        font-size: 50px;
    }
    
    .carta-text h4 {
        font-size: 1.3rem;
    }
    
    .carta-text p {
        font-size: 0.95rem;
    }
    
    .btn-carta-futuro {
        padding: 10px 25px;
        font-size: 1rem;
    }
}

/* Resaltar filas sin usuario admin creado */
.table-warning {
    background-color: #fff3cd !important;
    border-left: 4px solid #f0ad4e !important;
}

.table-warning:hover {
    background-color: #ffeaa7 !important;
}

/* Badges más grandes para información crítica */
.fs-6 {
    font-size: 1rem !important;
}

.fw-bold {
    font-weight: 700 !important;
}

/* Alertas de atención */
.text-danger.small {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}