/* ==========================================================
 🎨 ESTILOS PERSONALIZADOS GESSERV
 ========================================================== */

/* ✅ Sombra para tablas */
.table-shadow {
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
}

/* ==========================================================
   🔹 TABLAS Y BADGES
   ========================================================== */

.table-dominios thead,
.table-servidores thead,
.table-paginas thead,
.table-trabajos thead {
    color: #fff;
}

.table-dominios thead { background-color: #6f42c1; }
.table-servidores thead { background-color: #0d6efd; }
.table-paginas thead { background-color: #198754; }
.table-trabajos thead {
    background-color: #ffc107;
    color: #000;
}

.badge-dominios { background-color: #6f42c1; }
.badge-servidores { background-color: #0d6efd; }
.badge-paginas { background-color: #198754; }
.badge-trabajos {
    background-color: #ffc107;
    color: #000;
}

/* Filas coloreadas */
.table-bordered tr.table-blue-light > * { background-color: #e7f1ff !important; color: #000 !important; }
.table-bordered tr.table-blue-dark > *  { background-color: #87b7ff !important; color: #000 !important; }

.table-bordered tr.table-green-light > * { background-color: #e9f7ef !important; color: #000 !important; }
.table-bordered tr.table-green-dark > *  { background-color: #bfffc5 !important; color: #000 !important; }

.text-orange { color: #FF6600; }
.bg-orange { background-color: #FF6600; color: #fff; }
.btn-warning { background-color: #FF6600; border-color: #FF6600; }
.btn-warning:hover { background-color: #e65c00; border-color: #e65c00; }

/* ==========================================================
   🔹 LOGIN GESSERV (Estilo Normandy SR2)
   ========================================================== */

body.login-page {
    background: linear-gradient(135deg, #0056b3, #007bff);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
}

.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: linear-gradient(180deg, rgba(99,131,165,0.6), rgba(179,204,231,0.8));
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    padding: 2.5rem;
    max-width: 420px;
    text-align: center;
    animation: fadeIn 0.6s ease;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}

.login-logo {
    width: 350px;
    margin-bottom: 1rem;
}

.login-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.form-label {
    color: #f0f0f0;
    font-weight: 500;
}

.login-input {
    border-radius: 10px !important;
    padding: 0.75rem;
    border: none;
    color: #000;
    background: rgba(255,255,255,0.85);
    transition: box-shadow 0.3s;
}

.login-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.4);
}

.btn-login {
    background: linear-gradient(90deg, #3543fc, #3543fc);
    border: none;
    border-radius: 10px;
    padding: 0.75rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-login:hover {
    background: linear-gradient(90deg, #b3daff, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

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

/* ==========================================================
   🔹 CABECERA GLOBAL GESSERV + EFECTO NICK ANIMADO
   ========================================================== */

.dashboard-header {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.dashboard-header a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
}
.dashboard-header a:hover { color: #b3daff; }

.user-glow {
    font-weight: 600;
    color: #b3daff;
    text-shadow: 0 0 8px #66b3ff, 0 0 12px #009dff;
    animation: glowPulse 2.5s infinite alternate ease-in-out;
}

@keyframes glowPulse {
    from { text-shadow: 0 0 6px #009dff, 0 0 10px #33c3ff; }
    to   { text-shadow: 0 0 12px #66b3ff, 0 0 18px #ffffff; }
}

/* ==========================================================
   🔹 DASHBOARD GESSERV (Normandy)
   ========================================================== */

body.dashboard-page {
    background: linear-gradient(135deg, #0056b3, #007bff);
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    padding-top: 80px; /* compensa header fijo */
    color: #fff;
}

.dashboard-container {
    text-align: center;
    padding: 3rem 1rem;
}

.dashboard-logo {
    width: 400px;
    opacity: 0.95;
}

.dashboard-title {
    color: #ffffff !important;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 1rem;
    text-shadow: 0 0 8px rgba(255,255,255,0.25);
}

.dashboard-subtitle {
    color: #e8e8e8;
    font-weight: 400;
    margin-bottom: 2rem;
}

.dashboard-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.dashboard-card {
    border-radius: 20px;
    width: 200px;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.dashboard-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.dashboard-card:hover i {
    transform: scale(1.2) rotate(-3deg);
    color: #ffffff;
}

.dashboard-card:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 25px rgba(255,255,255,0.3);
}

/* Colores base */
.bg-blue { background: linear-gradient(135deg, #007bff, #3399ff); }
.bg-green { background: linear-gradient(135deg, #28a745, #55d187); }
.bg-orange { background: linear-gradient(135deg, #ff8800, #ffb84d); }

/* Holographic reflection */
.dashboard-card::after {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    transform: rotate(25deg);
    transition: opacity 0.4s ease;
    opacity: 0;
}

.dashboard-card:hover::after {
    opacity: 1;
    animation: hologlow 1.2s linear;
}

@keyframes hologlow {
    0% { transform: translate(-150%, -150%) rotate(25deg); }
    100% { transform: translate(150%, 150%) rotate(25deg); }
}
/* ==========================================================
   🎨 AJUSTES GLOBALES DE COLOR Y BOTONES GESSERV
   ========================================================== */

/* 🔹 Texto blanco global en contenedores principales */
body, 
.dashboard-container, 
.card, 
.table, 
h1, h2, h3, h4, h5, h6, 
label, 
p, 
th, 
td {
    color: #ffffff !important;
}

/* 🔹 Tablas transparentes con texto claro */
.table {
    background: transparent !important;
}
.table thead {
    background: rgba(255, 255, 255, 0.15) !important;
}
.table tbody tr {
    background: rgba(255, 255, 255, 0.07) !important;
    transition: all 0.3s ease;
}
.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* ==========================================================
   🔸 BOTONES RELLENOS ESTILO NORMANDY SR2
   ========================================================== */
.btn {
    border: none !important;
    font-weight: 500;
    border-radius: 10px;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,255,255,0.25);
}

/* 🟦 Primario (Azul - Servidores) */
.btn-primary {
    background: linear-gradient(135deg, #007bff, #004aad);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #3399ff, #0069d9);
}

/* 🟩 Éxito (Verde - Confirmar / Guardar) */
.btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}
.btn-success:hover {
    background: linear-gradient(135deg, #34d058, #218838);
}

/* 🟧 Advertencia (Naranja - Editar) */
.btn-warning {
    background: linear-gradient(135deg, #ff8800, #ffb84d);
    color: #fff !important;
}
.btn-warning:hover {
    background: linear-gradient(135deg, #ff9a00, #ffd480);
}

/* 🔴 Peligro (Rojo - Eliminar / Cerrar sesión) */
.btn-danger {
    background: linear-gradient(135deg, #dc3545, #a71d2a);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #ff4d5e, #b71c1c);
}

/* 🔹 Informativo (Celeste - Ver / Ir) */
.btn-info {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
}
.btn-info:hover {
    background: linear-gradient(135deg, #33c3ff, #138496);
}

/* 🔸 Botones pequeños en tablas */
.btn-sm {
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
}

/* ==========================================================
   ✨ EFECTO HOVER HOLOGRÁFICO EN BOTONES
   ========================================================== */
.btn::after {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255,255,255,0.15), rgba(255,255,255,0));
    transform: rotate(25deg);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;

}

.btn:hover::after {
    opacity: 1;
    animation: hologlow 1.2s linear;
}

@keyframes hologlow {
    0% { transform: translate(-150%, -150%) rotate(25deg); }
    100% { transform: translate(150%, 150%) rotate(25deg); }
}
/* ==========================================================
   🔹 INPUTS Y TEXTAREAS ESTILO NORMANDY
   ========================================================== */
.form-control-normandy {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.05);
}

.form-control-normandy::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control-normandy:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: #66b3ff;
    box-shadow: 0 0 10px rgba(102,179,255,0.6);
    outline: none;
    color: #fff;
}

/* Textarea */
textarea.form-control-normandy {
    resize: vertical;
    min-height: 60px;
}
/* ==========================================================
   🔹 CORRECCIÓN DE TABLAS EN DASHBOARD (Páginas, Servidores)
   ========================================================== */

.dashboard-page .table {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border-radius: 10px;
}

.dashboard-page .table th,
.dashboard-page .table td {
    border-color: rgba(255, 255, 255, 0.25) !important;
    vertical-align: middle !important;
}

.dashboard-page .table thead th {
    background: linear-gradient(90deg, #007bff, #3399ff) !important;
    color: #fff !important;
    font-weight: 600;
    text-transform: uppercase;
}

.dashboard-page .table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.06) !important;
}

.dashboard-page .table tbody tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.12) !important;
}

/* Botones dentro de tablas */
.dashboard-page .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.dashboard-page .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
/* ✨ Inputs translúcidos Normandy */
.login-input {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.login-input:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: #00ffcc;
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.5);
}
.bg-purple {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}
.bg-purple:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(106, 17, 203, 0.4);
    color: #fff;
}
/* 🟣 Enlace Tareas en navbar */
.nav-tareas-link {
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    border-bottom: 2px solid transparent;
}

.nav-tareas-link:hover {
    color: #c5a3ff !important;
    text-shadow: 0 0 6px rgba(197, 163, 255, 0.8);
    border-bottom: 2px solid #9b59b6;
}
