/* Estilos exactos para replicar xyris.space - Actualizado con colores de referencia */

/* Fondo del Login con patrón de puntos */
.authentication-wrapper.authentication-basic {
    background-image: radial-gradient(#d7dcf1 2px, transparent 2px);
    background-size: 24px 24px;
    background-color: #f5f5f9;
}

html[data-theme="theme-dark"] .authentication-wrapper.authentication-basic {
    background-image: radial-gradient(#2b3275 2px, transparent 2px);
    background-color: #1a1c2e;
}

/* Ajustes de la barra de navegación */
.layout-navbar {
    backdrop-filter: saturate(200%) blur(6px);
    background-color: rgba(255, 255, 255, 0.8) !important;
}

html[data-theme="theme-dark"] .layout-navbar {
    background-color: rgba(26, 28, 46, 0.8) !important;
    border-bottom: 1px solid #363b6d !important;
}

/* Estilos de las tarjetas */
.card {
    border: none;
    box-shadow: 0 2px 6px 0 rgba(67, 89, 113, 0.12);
}

html[data-theme="theme-dark"] .card {
    background-color: #242745 !important;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.4);
    border: 1px solid #363b6d !important;
}

/* Botón de tema */
#theme-toggle {
    border: none;
    background: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle:hover {
    background-color: rgba(67, 89, 113, 0.05);
}

html[data-theme="theme-dark"] #theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Notificaciones Badge */
.badgecus {
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

/* Estilos para el menú lateral */
.bg-menu-theme .menu-link, .bg-menu-theme .menu-horizontal-link {
    color: #697a8d;
}

html[data-theme="theme-dark"] .bg-menu-theme .menu-link {
    color: #e0e4f0;
}

.bg-menu-theme .menu-item.active > .menu-link {
    background-color: rgba(106, 111, 226, 0.16) !important;
    color: #6a6fe2 !important;
}

/* Pricing Cards */
.border-top-3 {
    border-top-width: 3px !important;
}

/* SweetAlert2 Dark Mode Fix */
html[data-theme="theme-dark"] .swal2-popup {
    background-color: #242745;
    color: #d2d4e1;
    border: 1px solid #363b6d;
}

html[data-theme="theme-dark"] .swal2-title, 
html[data-theme="theme-dark"] .swal2-content {
    color: #e0e4f0;
}

/* Notyf Dark Mode Fix */
html[data-theme="theme-dark"] .notyf__toast {
    background-color: #242745;
    color: #d2d4e1;
    border: 1px solid #363b6d;
}

/* Mobile Fixes */
@media (max-width: 767.98px) {
    .layout-navbar {
        margin: 0.5rem 1rem 0 !important;
        width: calc(100% - 2rem) !important;
    }
    .authentication-wrapper.authentication-basic .authentication-inner {
        max-width: 95%;
    }
}

/* Ajustes adicionales para el logo de GitHub */
.btn-icon {
    padding: 0;
    height: 2.375rem;
    width: 2.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-icon:hover {
    background-color: rgba(67, 89, 113, 0.05);
}

html[data-theme="theme-dark"] .btn-icon:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Fix para el sidebar en móvil */
@media (max-width: 1199.98px) {
    .layout-menu {
        position: fixed !important;
        top: 0;
        bottom: 0;
        left: 0;
        margin-right: 0 !important;
        margin-left: 0 !important;
        transform: translate3d(-100%, 0, 0);
        transition: transform 0.3s;
        z-index: 1075;
    }
    
    .layout-menu-expanded .layout-menu {
        transform: translate3d(0, 0, 0) !important;
    }
}

/* Estilos para Tablas Modernas (Inspirado en la imagen de referencia) */
.table-modern {
    border-collapse: separate;
    border-spacing: 0 8px;
    width: 100%;
}

.table-modern thead th {
    border: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: #a1acb8;
    padding: 12px 20px;
    letter-spacing: 0.5px;
}

.table-modern tbody tr {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}

html[data-theme="theme-dark"] .table-modern tbody tr {
    background-color: #2b2c40;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.table-modern tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

html[data-theme="theme-dark"] .table-modern tbody tr:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.table-modern tbody td {
    padding: 15px 20px;
    border: none;
    vertical-align: middle;
}

.table-modern tbody tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.table-modern tbody tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Badges y Elementos de la Tabla */
.badge-modern {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-modern-success {
    background-color: #e8fadf;
    color: #71dd37;
}

.badge-modern-danger {
    background-color: #ffe5e0;
    color: #ff3e1d;
}

.badge-modern-info {
    background-color: #e0f9fc;
    color: #03c3ec;
}

.badge-modern-primary {
    background-color: #e7e7ff;
    color: #696cff;
}

html[data-theme="theme-dark"] .badge-modern-success { background-color: rgba(113, 221, 55, 0.15); }
html[data-theme="theme-dark"] .badge-modern-danger { background-color: rgba(255, 62, 29, 0.15); }
html[data-theme="theme-dark"] .badge-modern-info { background-color: rgba(3, 195, 236, 0.15); }
html[data-theme="theme-dark"] .badge-modern-primary { background-color: rgba(105, 108, 255, 0.15); }

.token-container {
    background-color: #f8f9fa;
    padding: 6px 10px;
    border-radius: 8px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 180px;
}

html[data-theme="theme-dark"] .token-container {
    background-color: #323249;
}

.search-bar-modern {
    border-radius: 12px;
    padding: 10px 20px;
    border: 1px solid #eceef1;
    background-color: #fff;
    transition: all 0.2s;
}

html[data-theme="theme-dark"] .search-bar-modern {
    background-color: #2b2c40;
    border-color: #444564;
    color: #fff;
}

.search-bar-modern:focus {
    border-color: #696cff;
    box-shadow: 0 0 0 0.25rem rgba(105, 108, 255, 0.1);
}

.btn-modern {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-modern:hover {
    transform: translateY(-1px);
}
