/*=====================================================
                    Tipografia
======================================================*/
@font-face {
    font-family: "RobotoCondensedLight";
    src: url("../webfonts/robotocondensed-light.ttf"),
        url("../webfonts/robotocondensed-light.eot"),
        url("../webfonts/robotocondensed-light.woff"),
        url("../webfonts/robotocondensed-light.woff2"),
        url("../webfonts/robotocondensed-light.svg");
}

@font-face {
    font-family: "RobotoRegular";
    src: url("../webfonts/roboto-regular.ttf"),
        url("../webfonts/roboto-regular.eot"),
        url("../webfonts/roboto-regular.woff"),
        url("../webfonts/roboto-regular.woff2"),
        url("../webfonts/roboto-regular.svg");
}

@font-face {
    font-family: "OswaldLight";
    src: url("../webfonts/oswald-light.ttf"),
        url("../webfonts/oswald-light.eot"),
        url("../webfonts/oswald-light.woff"),
        url("../webfonts/oswald-light.woff2"),
        url("../webfonts/oswald-light.svg");
}

/* Variables CSS para tema moderno */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --success-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --border-color: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body,
html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: "RobotoRegular", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    position: relative;
    background-color: #f5f7fa;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-container {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.main-container>.login,
.main-container>.hero-body {
    height: auto;
    width: 100%;
    max-width: 450px;
    min-width: 320px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.is-photo {
    max-width: 300px;
    height: auto;
    margin: 0 auto;
}

.text-condensedLight {
    font-family: "RobotoCondensedLight";
}

.tittles {
    font-family: "OswaldLight";
}

.full-width {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.list-unstyle {
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}

.img-responsive {
    width: 100%;
    height: auto;
}

.divider-menu-h {
    height: 0 !important;
    border-top: 1px solid #E1E1E1;
    width: 92% !important;
    margin: 0 auto !important;
}

.page-container {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    justify-content: space-between;
}

/*  Scrolls */
.scroll::-webkit-scrollbar {
    width: 8px;
}

.scroll::-webkit-scrollbar-thumb {
    background: rgba(102, 107, 122, 1);
}

.scroll::-webkit-scrollbar-thumb:active,
.scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 107, 122, 1);
}

.scroll::-webkit-scrollbar-track {
    background: rgba(29, 30, 34, 1);
}

.scroll::-webkit-scrollbar-track:hover,
.scroll::-webkit-scrollbar-track:active {
    background: rgba(29, 30, 34, 1);
}

/*=============Estilos barra superior*/
.navBar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    height: 40px;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    margin-bottom: 100px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
}

.navBar.navBar-change {
    width: calc(100% - 280px);
    left: 280px;
}

.navBar-options {
    line-height: 60px;
    height: 38px;
    padding: 0 20px;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navBar-options .fa-exchange-alt,
.navBar-options-list {
    line-height: 60px;
    height: 60px;
    margin: 0;
    padding: 0;
}

.navBar-options .fa-exchange-alt {
    width: 50px;
    height: 50px;
    left: 0;
    font-size: 24px;
    cursor: pointer;
    user-select: none;
    text-align: center;
    outline: none;
    margin-left: 10px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.navBar-options .fa-exchange-alt:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.navBar-options-list {
    right: 9px;
}

.navBar-options-list .noLink {
    cursor: inherit;
}

.navBar-options-list ul {
    height: 45px;
    display: flex;
}

.navBar-options-list ul li {
    height: 45px;
    line-height: 45px;
    cursor: pointer;
    padding: 0 7px;
    font-size: 21px;
    user-select: none;
}

.navBar-options-list ul li {
    outline: none;
}

.navBar-options-list ul li a,
.navBar-options-list ul li img {
    margin: 0;
    padding: 0;
    padding-top: 0;
    margin-top: 0;
    box-sizing: border-box;
    color: #FFF;
}

.navBar-options-list ul li img {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    margin-top: 9px;
    margin-bottom: 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.navBar-options-list ul li img:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/*=============Estilos en comun navegacion lateral y contenido pagina*/
.navLateral,
.pageContent,
.navLateral-body {
    height: 100%;
}

.navLateral,
.pageContent {
    overflow-y: auto;
}

/*=============Estilos navegacion lateral*/
.navLateral {
    width: 0;
    border-right: none;
    transition: var(--transition);
    position: relative;
    background-color: #fff;
    box-shadow: var(--shadow-md);
    pointer-events: none;
    opacity: 0;
}

.navLateral-change {
    pointer-events: auto;
    opacity: 1;
    width: 280px;
    border-right: 1px solid var(--border-color);
}

.navLateral-body {
    background-color: #fff;
    position: relative;
    height: 100%;
}

.navLateral-body-logo {
    height: 60px;
    line-height: 60px;
    color: #fff;
    width: 100%;
    font-size: 22px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 0 20px;
    box-shadow: var(--shadow-sm);
}

.navLateral-body-cl,
.navLateral-body-cr {
    box-sizing: border-box;
    height: 77px;
    float: left;
    margin: 0;
    padding: 0;
    position: relative;
}

.navLateral-body-cl {
    width: 30%;
}

.navLateral-body-cl img {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    display: block;
    margin-top: 8px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.navLateral-body-cl img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.navLateral-body-cr {
    width: 70%;
    font-family: "RobotoCondensedLight";
    padding-left: 10px;
    padding-top: 12px;
}

.navLateral-body-cr span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.navLateral-body-cr small {
    color: var(--text-secondary);
    font-size: 13px;
}

.navLateral-body-tittle-menu {
    height: 60px;
    line-height: 60px;
    font-size: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-principal li,
.menu-principal li a {
    display: block;
}

.menu-principal li a {
    height: 50px;
    color: var(--text-primary);
    position: relative;
    transition: var(--transition);
    padding: 0 15px;
    border-left: 3px solid transparent;
}

.menu-principal li a:hover {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.08);
    border-left-color: var(--primary-color);
    transform: translateX(3px);
}

.menu-principal li a div.navLateral-body-cl,
.menu-principal li a div.navLateral-body-cr {
    height: 50px;
    line-height: 50px;
}

.menu-principal li a div.navLateral-body-cl {
    text-align: center;
    font-size: 20px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.menu-principal li a:hover div.navLateral-body-cl {
    color: var(--primary-color);
}

.btn-subMenu span.fa-chevron-down {
    position: absolute;
    top: 0;
    right: 15px;
    line-height: 50px;
    height: 50px;
    font-size: 14px;
    transition: var(--transition);
    color: var(--text-secondary);
}

.btn-subMenu+.sub-menu-options {
    transition: var(--transition);
}

.sub-menu-options {
    height: 0;
    background-color: #f8f9fa;
    overflow-y: hidden;
    transition: var(--transition);
    border-left: 3px solid var(--primary-color);
    margin-left: 15px;
}

.sub-menu-options li a {
    border-left: 3px solid transparent;
    padding-left: 20px;
    height: 45px;
}

.sub-menu-options li a div.navLateral-body-cl,
.sub-menu-options li a div.navLateral-body-cr {
    height: 45px;
    line-height: 45px;
}

.sub-menu-options li a:hover {
    border-left-color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
}

.btn-subMenu-show {
    background-color: rgba(99, 102, 241, 0.1);
    border-left-color: var(--primary-color);
}

.btn-subMenu-show .navLateral-body-cl,
.btn-subMenu-show .navLateral-body-cr {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-subMenu-show+.sub-menu-options {
    height: auto;
    overflow-y: auto;
    background-color: rgba(99, 102, 241, 0.05);
}

.btn-subMenu-show span.fa-chevron-down {
    transform: rotate(180deg);
    color: var(--primary-color);
}

/*=============Estilos contenido pagina*/
.pageContent {
    width: 100%;
    background-color: #f5f7fa;
    transition: var(--transition);
    padding: 80px;
    padding-top: 120px;
    min-height: calc(100vh - 60px);
}

.pageContent-change {
    width: calc(100% - 280px);
}

/*=============Estilos detalle de venta*/
.sale-details {
    display: flex;
    justify-content: space-between;
    transition: var(--transition);
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    background-color: #fff;
    box-shadow: var(--shadow-sm);
}

.sale-details:hover {
    background-color: #f8f9fa;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Mejoras generales para contenedores */
.container.is-fluid {
    background-color: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.container.is-fluid .title {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 15px;
}

.container.is-fluid .subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    margin-top: 10px;
    font-weight: 500;
}

/* Mejoras para formularios */
.field label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.input,
.textarea,
.select select {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    padding: 12px 15px;
    font-size: 15px;
}

.input:focus,
.textarea:focus,
.select select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.input:hover,
.textarea:hover,
.select select:hover {
    border-color: var(--primary-light);
}

/* Mejoras para botones */
.button {
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 12px 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    color: #fff;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff !important;
}

.button.is-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.button.is-info:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    color: #fff;
}

.button.is-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.button.is-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    color: #fff;
}

.button.is-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.button.is-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
    color: #fff;
}

.button.is-link {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    font-weight: 600;
}

.button.is-link:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

.button.is-link.is-light {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff !important;
    border: 2px solid #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    font-weight: 600;
}

.button.is-link.is-light:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #fff !important;
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

/* Mejoras para botones pequeños */
.button.is-small {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff !important;
}

.button.is-small.is-link {
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
    color: #fff !important;
}

.button.is-small.is-link:hover {
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    color: #fff !important;
}

.button.is-small.is-success {
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
    color: #fff !important;
}

.button.is-small.is-success:hover {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    color: #fff !important;
}

.button.is-small.is-danger {
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
    color: #fff !important;
}

.button.is-small.is-danger:hover {
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    color: #fff !important;
}

.button.is-small.is-info {
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
    color: #fff !important;
}

.button.is-small.is-info:hover {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    color: #fff !important;
}

/* Mejoras para botones medianos */
.button.is-medium {
    padding: 14px 28px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff !important;
}

/* Mejoras para botones redondeados */
.button.is-rounded {
    border-radius: 9999px;
    padding: 12px 28px;
    color: #fff !important;
}

.button.is-rounded.is-small {
    padding: 8px 20px;
    color: #fff !important;
}

.button.is-rounded.is-medium {
    padding: 14px 32px;
    color: #fff !important;
}

/* Forzar texto blanco en todos los botones */
.button,
.button.is-link,
.button.is-info,
.button.is-success,
.button.is-danger,
.button.is-warning,
.button.is-primary,
.button.is-link.is-light,
.button.is-info.is-light,
.button.is-success.is-light,
.button.is-danger.is-light,
.button.is-warning.is-light,
.button.is-primary.is-light,
button.button,
a.button {
    color: #fff !important;
}

.button:hover,
.button.is-link:hover,
.button.is-info:hover,
.button.is-success:hover,
.button.is-danger:hover,
.button.is-warning:hover,
.button.is-primary:hover,
.button.is-link.is-light:hover,
.button.is-info.is-light:hover,
.button.is-success.is-light:hover,
.button.is-danger.is-light:hover,
.button.is-warning.is-light:hover,
.button.is-primary.is-light:hover,
button.button:hover,
a.button:hover {
    color: #fff !important;
}

/* Asegurar que los iconos dentro de los botones también sean blancos */
.button .icon,
.button i,
.button svg {
    color: #fff !important;
    fill: #fff !important;
}

.button:hover .icon,
.button:hover i,
.button:hover svg {
    color: #fff !important;
    fill: #fff !important;
}

/* Mejoras para tablas */
.table {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: #fff;
}

.table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.table thead th {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 15px;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.05);
    transform: scale(1.01);
}

.table tbody td {
    padding: 15px;
    border-color: var(--border-color);
}

/* Cards modernos para dashboard */
.level-item {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    margin: 10px;
}

.level-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.level-item a {
    text-decoration: none;
    color: inherit;
}

.level-item .heading {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.level-item .title {
    color: var(--primary-color);
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

/* Notificaciones mejoradas */
.notification {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid;
    padding: 20px;
    margin-bottom: 20px;
}

.notification.is-success {
    background-color: #f0fdf4;
    border-left-color: var(--success-color);
    color: #065f46;
}

.notification.is-info {
    background-color: #eff6ff;
    border-left-color: var(--info-color);
    color: #1e40af;
}

.notification.is-danger {
    background-color: #fef2f2;
    border-left-color: var(--danger-color);
    color: #991b1b;
}

/* Mejoras para select */
.select select {
    background-color: #fff;
    cursor: pointer;
}

.select:not(.is-multiple):not(.is-loading)::after {
    border-color: var(--primary-color);
}

/* Mejoras para file input */
.file-label {
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.file-label:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Scrollbar mejorado */
.scroll::-webkit-scrollbar {
    width: 10px;
}

.scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 5px;
}

.scroll::-webkit-scrollbar-thumb:active,
.scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #4338ca 100%);
}

.scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 5px;
}

/*=====================================================
                    Media  Queries
======================================================*/
@media (max-width: 768px) {
    .navLateral {
        pointer-events: none;
        opacity: 0;
        width: 0;
        border-right: none;
        position: fixed;
        left: 0;
        top: 60px;
        z-index: 1000;
        height: calc(100vh - 60px);
    }

    .navLateral-change {
        width: 280px;
        pointer-events: auto;
        opacity: 1;
        border-right: 1px solid var(--border-color);
    }

    .pageContent {
        width: 100%;
        padding: 20px 15px;
    }

    .pageContent-change {
        width: 100%;
    }

    .container.is-fluid {
        padding: 20px 15px;
    }

    .level-item {
        margin: 5px;
        padding: 20px;
    }

    .table-container {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {

    .main-container>.login,
    .main-container>.hero-body {
        max-width: 95%;
        min-width: 95%;
        margin: 20px;
    }

    .container.is-fluid .title {
        font-size: 24px;
    }

    .level-item .title {
        font-size: 24px;
    }
}

/*=====================================================
                    Mejoras Adicionales UX
======================================================*/

/* Animaciones suaves para elementos interactivos */
a,
button {
    transition: var(--transition);
}

a:hover,
button:hover {
    transform: translateY(-1px);
}

/* Mejoras para iconos */
.icon {
    transition: var(--transition);
}

.button:hover .icon {
    transform: scale(1.1);
}

/* Efecto de carga mejorado */
.is-loading::after {
    border-color: var(--primary-color) transparent transparent transparent !important;
}

/* Mejoras para badges y tags */
.tag {
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 5px 12px;
}

/* Mejoras para breadcrumbs */
.breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--primary-color);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Mejoras para modales */
.modal-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-card-head {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 20px;
}

.modal-card-title {
    color: #fff;
    font-weight: 700;
}

.modal-card-body {
    padding: 30px;
}

/* Mejoras para mensajes de ayuda */
.help {
    font-size: 12px;
    margin-top: 5px;
}

/* Efectos de hover mejorados para cards */
.card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-3px);
}

/* Mejoras para paginación */
.pagination {
    margin-top: 30px;
}

.pagination-link {
    border-radius: var(--radius-md);
    transition: var(--transition);
    border-color: var(--border-color);
}

.pagination-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.pagination-link.is-current {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-color);
}

/* Mejoras para mensajes de error y éxito */
.message {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.message-header {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    font-weight: 600;
}

/* Efecto de focus mejorado para accesibilidad */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Mejoras para tooltips */
[data-tooltip] {
    position: relative;
}

/* Animación de entrada para elementos */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Mejoras para estados deshabilitados */
.button:disabled,
.input:disabled,
.select select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mejoras para separadores */
hr {
    background-color: var(--border-color);
    border: none;
    height: 1px;
    margin: 20px 0;
}

/* Mejoras para listas */
.content ul,
.content ol {
    margin-left: 20px;
}

.content li {
    margin-bottom: 8px;
}

/* Mejoras para código */
code {
    background-color: #f3f4f6;
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

/* Mejoras para bloques de código */
pre {
    background-color: #1f2937;
    color: #fff;
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
}

/* Efecto de pulso para elementos importantes */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Mejoras para imágenes responsivas */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* Mejoras para figuras */
figure {
    margin: 0;
}

/* Mejoras para texto */
.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

/* Utilidades adicionales */
.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-xl {
    box-shadow: var(--shadow-xl);
}

/* Mejoras para el box de login */
.box.login {
    border: none;
    box-shadow: var(--shadow-xl);
}

/* Mejoras para el contenedor principal */
.page-container {
    background-color: #f5f7fa;
}

/* Mejoras para el navbar en móviles */
@media (max-width: 768px) {
    .navBar {
        box-shadow: var(--shadow-md);
    }

    .navBar-options .fa-exchange-alt {
        width: 45px;
        height: 45px;
    }
}

/* Dashboard grid personalizado */
.dashboard-grid {
    display: grid;
    /* reducir tamaño mínimo para más columnas en pantallas pequeñas */
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.dashboard-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    min-height: 140px;
    margin: 0;
    color: #fff;
}

.dashboard-card .heading {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
}

.dashboard-card .title {
    font-size: 28px;
    color: #fff;
    font-weight: 700;
}

/* Contenedor reutilizable para el icono circular */
.dashboard-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-icon i {
    font-size: 34px;
    color: #fff;
}

@media (max-width: 480px) {
    .dashboard-card {
        padding: 14px;
        min-height: 130px;
    }

    .dashboard-card .title {
        font-size: 24px;
    }

    .dashboard-icon {
        width: 60px;
        height: 60px;
    }

    .dashboard-icon i {
        font-size: 28px;
    }
}

/* Ajustes para pantallas muy pequeñas (<=360px) */
@media (max-width: 360px) {
    .dashboard-card {
        padding: 10px;
        min-height: 110px;
    }

    .dashboard-card .title {
        font-size: 20px;
    }

    .dashboard-card .heading {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .dashboard-icon {
        width: 48px;
        height: 48px;
    }

    .dashboard-icon i {
        font-size: 20px;
    }
}

/* Ajustes para pantallas grandes: forzar 4 columnas en el dashboard */
@media (min-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Breakpoint intermedio: 3 columnas a partir de 992px */
@media (min-width: 992px) and (max-width: 1199px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ajustes específicos para Estadísticas Avanzadas en pantallas pequeñas */
@media (max-width: 420px) {
    #advanced-stats {
        padding: 18px !important;
    }

    #advanced-stats h2.title.is-4 {
        font-size: 20px;
        padding-bottom: 10px;
    }

    #advanced-stats h3.subtitle.is-5 {
        font-size: 14px;
    }

    #advanced-stats .heading {
        font-size: 12px;
    }

    #advanced-stats .level-item {
        padding: 14px;
        min-height: 120px;
    }
}

@media (max-width: 360px) {
    #advanced-stats {
        padding: 12px !important;
    }

    #advanced-stats h2.title.is-4 {
        font-size: 18px;
        padding-bottom: 8px;
    }

    #advanced-stats h3.subtitle.is-5 {
        font-size: 12px;
    }

    #advanced-stats .heading {
        font-size: 11px;
    }

    #advanced-stats .level-item {
        padding: 10px;
        min-height: 100px;
    }
}