/* Variables globales */
:root {
    --primary-color: #d03120;
    /* Azul marino Cedros */
    --secondary-color: #ff8e8e;
    /* Azul claro */
    --accent-color: #ef9b11;
    /* Naranja */
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --white: #ffffff;
    --light-gray: #c8c8c8;
    --sidebar-width: 250px;
    --header-height: 60px;
    --border-radius: 6px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --navbar-width: 260px;
    --navbar-collapsed-width: 70px;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f6fa;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Barra de navegación lateral */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background-color: var(--primary-color);
    color: var(--white);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo img {
    max-width: 180px;
    height: auto;
    /* filter: brightness(0) invert(1); */
}

.toggle-btn {
    position: absolute;
    right: -40px;
    top: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-menu li a:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-menu li a.active {
    color: var(--white);
    background-color: var(--secondary-color);
    border-left: 4px solid var(--accent-color);
}

.menu-icon {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 15px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
}

/* Headers y navegación */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 0.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

nav ul li a.active {
    background-color: var(--secondary-color);
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Contenido principal */
main {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 0.5rem;
}

h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 15px;
    margin-top: auto;
    width: 100%;
    margin-left: calc(-1 * 20px);
    margin-right: calc(-1 * 20px);
}

/* Dashboard Styles */
.event-selector {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.event-selector label {
    margin-right: 0.5rem;
    font-weight: 600;
}

.event-selector select {
    padding: 0.5rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: white;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin: 0 0 15px 0;
    color: var(--dark-color);
    font-size: 16px;
}

.card .stat {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

.card .trend {
    font-size: 14px;
    margin: 0;
}

.trend.positive {
    color: var(--success-color);
}

.trend.negative {
    color: var(--danger-color);
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.chart-box {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-box h3 {
    margin: 0 0 20px 0;
    color: var(--dark-color);
}

.chart-box canvas {
    width: 100%;
    height: 250px !important;
    /* Controlar la altura de las gráficas */
    max-height: 300px;
}

.recent-sales {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
}

.recent-sales h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.recent-sales table {
    width: 100%;
    border-collapse: collapse;
}

.recent-sales th,
.recent-sales td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.recent-sales th {
    background-color: var(--light-color);
    font-weight: 600;
    color: var(--primary-color);
}

.recent-sales tr:hover {
    background-color: var(--light-color);
}

/* Limitar altura de la tabla con scroll */
.recent-sales .table-container {
    max-height: 300px;
    overflow-y: auto;
}

/* Calendar Styles */
.calendar-page {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.add-event-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-event-btn:hover {
    background-color: #d48a0f;
    transform: translateY(-2px);
}

.add-event-btn i {
    font-size: 0.9rem;
}

.month-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.month-navigation h3 {
    margin: 0;
    font-size: 1.5rem;
    min-width: 180px;
    text-align: center;
}

.month-navigation button {
    background-color: var(--light-color);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.view-selector {
    display: flex;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.view-selector button {
    background: none;
    border: none;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.view-selector button.active {
    background-color: var(--primary-color);
    color: white;
}

/* Grid del calendario */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-top: 1px solid var(--light-gray);
    border-left: 1px solid var(--light-gray);
}

.weekday-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.weekday-headers div {
    padding: 0.75rem;
}

.calendar-day {
    min-height: 120px;
    border-right: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    padding: 0.5rem;
    position: relative;
}

.day-number {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-weight: 600;
    color: var(--gray-color);
}

.calendar-day.today {
    background-color: rgba(0, 159, 184, 0.1);
}

.calendar-day.inactive .day-number {
    color: var(--light-gray);
}

/* Eventos en el calendario */
.event {
    margin: 1.5rem 0 0.25rem;
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
    background-color: white;
    font-size: 0.8rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.event:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.event::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.event.cultural::before {
    background-color: var(--accent-color);
}

.event.deportivo::before {
    background-color: var(--success-color);
}

.event.academico::before {
    background-color: var(--secondary-color);
}

.event.venta::before {
    background-color: var(--warning-color);
}

.event .time {
    font-weight: 700;
    font-size: 0.7rem;
    display: block;
    margin-bottom: 0.25rem;
}

.event .title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-details {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.event-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.event-item {
    display: flex;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--box-shadow);
}

.event-date {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    margin-right: 1rem;
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: 700;
}

.event-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.event-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.event-info p {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

/* Punto de Venta Styles */
.pos-page {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.pos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 58, 112, 0.1);
}

.pos-header .evento-info {
    flex: 1;
}

.pos-header h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.pos-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.pos-header img {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.pos-header img:hover {
    transform: translateY(-5px);
}

.pos-container {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 2rem;
    min-height: calc(100vh - 250px);
}

.productos-seccion {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--light-gray);
}

.categorias {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categorias::-webkit-scrollbar {
    display: none;
}

.categoria-btn {
    background-color: var(--light-color);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--dark-color);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.categoria-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 10px;
}

.categoria-btn span {
    position: relative;
    z-index: 2;
}

.categoria-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.categoria-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 58, 112, 0.2);
}

.categoria-btn.active::before {
    opacity: 1;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    max-height: calc(100vh - 400px);
    overflow-y: auto;
    padding: 1rem;
    border-radius: var(--border-radius);
    background-color: white;
}

.producto-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.producto-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.producto-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.producto-item h4 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.producto-item .precio {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.add-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.add-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.carrito-seccion {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carrito-seccion h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
    color: var(--primary-color);
    font-weight: 600;
}

.carrito-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    max-height: calc(100vh - 500px);
    padding-right: 0.5rem;
}

.carrito-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    transition: all 0.2s ease;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.25rem;
    border-radius: 6px;
}

.qty-btn {
    border: none;
    background: transparent;
    color: var(--primary-color);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.item-quantity span {
    min-width: 24px;
    text-align: center;
    font-weight: 500;
}

.remove-btn {
    border: none;
    background: transparent;
    color: var(--danger-color);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.remove-btn:hover {
    background: var(--danger-color);
    color: white;
    opacity: 1;
}

.item-total {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 80px;
    text-align: right;
}

.carrito-resumen {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--light-gray);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--light-gray);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.payment-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--light-gray);
}

.payment-btn {
    flex: 1;
    background-color: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--dark-color);
}

.payment-btn:hover {
    background-color: var(--light-gray);
}

.payment-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.carrito-acciones {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.cancel-btn {
    flex: 1;
    background-color: var(--light-gray);
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--dark-color);
}

.pay-btn {
    flex: 2;
    background-color: var(--success-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 1.1rem;
}

.cancel-btn:hover {
    background-color: var(--danger-color);
    color: white;
}

.pay-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* Scrollbar styles for the cart */
.carrito-items::-webkit-scrollbar {
    width: 8px;
}

.carrito-items::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 4px;
}

.carrito-items::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.carrito-items::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Proveedores Styles */
.proveedores-page {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.proveedores-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-box {
    display: flex;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 500px;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-gray);
    border-right: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 0 1.5rem;
    cursor: pointer;
}

.filter-options {
    display: flex;
    gap: 1rem;
}

.filter-options select {
    padding: 0.5rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.add-proveedor-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.add-proveedor-btn:hover {
    background-color: #d48a0f;
}

.proveedores-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.proveedores-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.proveedores-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--light-gray);
    vertical-align: middle;
}

.proveedores-table tr:hover {
    background-color: rgba(0, 58, 112, 0.05);
}

.status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.status.activo {
    background-color: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
}

.status.inactivo {
    background-color: rgba(108, 117, 125, 0.2);
    color: var(--gray-color);
}

.actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.action-btn {
    background-color: var(--light-color);
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn.edit:hover {
    background-color: var(--secondary-color);
    color: white;
}

.action-btn.view:hover {
    background-color: var(--primary-color);
    color: white;
}

.action-btn.delete:hover {
    background-color: var(--danger-color);
    color: white;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover {
    background-color: var(--light-gray);
}

.page-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsive adjustments for pagination */
@media (max-width: 576px) {
    .pagination {
        padding: 3px;
    }

    .page-btn {
        min-width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .pos-container {
        grid-template-columns: 1fr;
    }

    .charts-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    .logo {
        margin-bottom: 1rem;
    }

    nav ul {
        margin-bottom: 1rem;
    }

    .sidebar {
        width: var(--navbar-collapsed-width);
    }

    .sidebar-logo h2,
    .menu-text {
        display: none;
    }

    .main-content {
        margin-left: var(--navbar-collapsed-width);
        width: calc(100% - var(--navbar-collapsed-width));
    }

    .sidebar.expanded {
        width: var(--navbar-width);
        z-index: 2000;
    }

    .sidebar.expanded .sidebar-logo h2,
    .sidebar.expanded .menu-text {
        display: block;
        opacity: 1;
        width: auto;
    }
}

@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }

    main {
        padding: 1rem;
    }

    .event-list {
        grid-template-columns: 1fr;
    }

    .proveedores-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-options {
        flex-direction: column;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .toggle-btn {
        right: auto;
        left: 10px;
    }

    .sidebar.active .toggle-btn {
        right: -40px;
        left: auto;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin-bottom: 0.5rem;
    }

    .calendar-grid {
        font-size: 0.8rem;
    }

    header {
        padding: 1rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .user-info span {
        display: none;
    }
}

/* Estilos específicos para roles de usuario */
.role {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.role.admin {
    background-color: rgba(0, 58, 112, 0.2);
    color: var(--primary-color);
}

.role.vendedor {
    background-color: rgba(0, 159, 184, 0.2);
    color: var(--secondary-color);
}

/* Estilos para el modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: scale(1);
    transition: transform 0.3s ease;
}

.modal.hidden .modal-content {
    transform: scale(0.8);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.close-modal {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #002a54;
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: none;
    border-radius: 5px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #e2e6ea;
}

/* Estilos para el grupo de checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--dark-color);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-color);
    border-radius: 3px;
    cursor: pointer;
}

.checkbox-label:hover {
    color: var(--primary-color);
}

/* Estilos específicos para la página de usuarios */
.usuarios-page {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.usuarios-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.add-usuario-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-usuario-btn:hover {
    background-color: #002a54;
}

.usuarios-table {
    margin-bottom: 2rem;
}

/* Reportes Page Styles */
.report-filters {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.generate-report-btn,
.export-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.generate-report-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.export-btn {
    background-color: var(--success-color);
    color: var(--white);
}

/* Tables */
.report-tables {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.table-section {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.table-section h3 {
    margin: 0 0 20px 0;
    color: var(--dark-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Inventory Analysis */
.inventory-analysis {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.inventory-analysis h3 {
    margin: 0 0 20px 0;
    color: var(--dark-color);
}

.inventory-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.inventory-card {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
}

.inventory-card h4 {
    margin: 0 0 10px 0;
    color: var(--dark-color);
}

.inventory-card .stat {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

.inventory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inventory-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.inventory-list li:last-child {
    border-bottom: none;
}

/* Toggle Button */
.toggle-btn {
    display: none;
    position: fixed;
    left: 10px;
    top: 10px;
    z-index: 1001;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .toggle-btn {
        display: block;
    }
}

/* Sidebar collapsed state */
.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .sidebar-logo img {
    max-width: 40px;
}

.sidebar.collapsed .menu-text {
    display: none;
}

.sidebar.collapsed+.main-content {
    margin-left: 70px;
}

.sidebar-copyright {
    font-size: 12px;
    color: var(--light-color);
    text-align: center;
    padding: 10px;
    border-top: 1px solid var(--light-gray) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .toggle-btn {
        right: auto;
        left: 10px;
    }

    .sidebar.active .toggle-btn {
        right: -40px;
        left: auto;
    }
}