/* Estilos personalizados para TT SMART PRO */

:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --success-color: #27ae60;
    --danger-color: #dc3545;
    --warning-color: #f8961e;
    --dark-bg: #1b263b;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
}

/* Estilos para el login */
.login-container {
    max-width: 400px;
    margin: 50px auto;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 60px;
    color: gold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 20px;
    border-radius: 20px;
}

/* Estilos para el sidebar */
.sidebar {
    background: var(--dark-bg);
    color: white;
}

.sidebar a {
    color: rgba(255,255,255,0.8);
    transition: all 0.3s;
}

.sidebar a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* Estilos para tarjetas */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.15);
}

/* Estilos para botones */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* Estilos para tablas */
.table-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.table thead th {
    background: var(--dark-bg);
    color: white;
    border: none;
    padding: 12px;
}

/* Estilos para badges */
.status-badge {
    background: #d4edda;
    color: #155724;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-badge i {
    font-size: 8px;
    color: #27ae60;
}
/* Alertas Premium (Toasts) */
.toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 9999;
}

.toast-premium {
    background: white;
    border-radius: 16px;
    padding: 16px 24px;
    min-width: 320px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    margin-bottom: 12px;
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: all 0.3s ease;
}

.toast-premium.hide {
    animation: fadeOutDown 0.4s ease forwards;
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.toast-success .toast-icon { background: #ecfdf5; color: #10b981; }
.toast-error .toast-icon { background: #fef2f2; color: #ef4444; }
.toast-info .toast-icon { background: #eff6ff; color: #3b82f6; }

.toast-content { flex: 1; }
.toast-title { font-weight: 700; color: #1e293b; font-size: 0.95rem; display: block; }
.toast-message { color: #64748b; font-size: 0.85rem; }

@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOutDown {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(20px); opacity: 0; }
}

/* Modal Ultra-Moderno (Cerrar Sesión) */
.modal-modern .modal-content {
    border: none;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0,0,0,0.25);
    background: rgba(255, 255, 255, 0.85); /* Vidrio puro */
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: modalPulseIn 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes modalPulseIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-modern .modal-body {
    padding: 50px 40px;
    text-align: center;
}

.logout-icon-wrapper {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 30px;
    position: relative;
}

.logout-icon-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #ef4444;
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.modal-modern .modal-title-premium {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.modal-modern .modal-text-premium {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 35px;
}

.btn-si {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    flex: 1;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.25);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-no {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 14px 35px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-si:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(239, 68, 68, 0.35);
    color: white;
}

.btn-no:hover {
    background: #e2e8f0;
    transform: translateY(-3px);
}
