* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Modo Oscuro */
body.dark-mode {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #e2e8f0;
}

body.dark-mode .login-container,
body.dark-mode .seccion-card,
body.dark-mode .stat-card,
body.dark-mode .chart-card,
body.dark-mode .evento-card,
body.dark-mode .venta-card,
body.dark-mode .cargador-card,
body.dark-mode .usuario-card,
body.dark-mode .detalles-section,
body.dark-mode .form-section {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .content-section h2,
body.dark-mode .evento-card h3,
body.dark-mode .venta-card h4,
body.dark-mode .usuario-card h4,
body.dark-mode .cargador-card h4 {
    color: #c4b5fd;
}

body.dark-mode .seccion-card h3 {
    color: #e2e8f0;
}

body.dark-mode .seccion-descripcion,
body.dark-mode .evento-info,
body.dark-mode .venta-info,
body.dark-mode .cargador-info p {
    color: #cbd5e0;
}

input,
select,
textarea {
    background: #ffffff !important;
    border-color: #d1d5db !important;
    color: #1f2937 !important;
}

input:focus,
select:focus,
textarea:focus {
    background: #ffffff !important;
    border-color: #8b5cf6 !important;
    color: #1f2937 !important;
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af !important;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: #4a5568 !important;
    border-color: #718096 !important;
    color: #f7fafc !important;
    font-weight: 500;
}

body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus {
    background: #4a5568;
    border-color: #8b5cf6;
    color: #f7fafc;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

body.dark-mode .form-section {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode .sidebar {
    background: linear-gradient(180deg, #2a1a4e 0%, #1a0f2e 100%);
    border-right-color: rgba(138, 43, 226, 0.2);
}

body.dark-mode .main-content {
    background: transparent;
}

.sidebar-header h2 {
    color: #1f2937;
    padding: 15px 20px;
    margin: 0;
    font-size: 18px;
    border-bottom: 2px solid #e5e7eb;
}

body.dark-mode .sidebar-header h2 {
    color: #e9d5ff;
    border-bottom-color: #4a5568;
}

.section {
    display: block;
}

.hidden {
    display: none !important;
}

#login-section {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    max-width: 450px;
    margin: 80px auto;
    background: #ffffff;
    padding: 48px 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid #e5e7eb;
}

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

.login-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.login-container h1 {
    text-align: center;
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-container h2 {
    text-align: center;
    color: #6b7280;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.login-form-group {
    margin-bottom: 20px;
}

.login-form-group label {
    display: block;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

#login-form input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    color: #1f2937;
    transition: all 0.2s ease;
}

#login-form input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.password-field {
    position: relative;
    margin-bottom: 0;
}

.password-field input {
    margin-bottom: 0;
    padding-right: 50px;
}

.show-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    font-size: 20px;
    user-select: none;
    transition: color 0.2s;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1;
}

.show-password:hover {
    color: #6b7280;
}

#login-form input::placeholder {
    color: #9ca3af;
}

#login-form button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    margin-top: 24px;
}

#login-form button:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

#login-form button:active {
    transform: translateY(0);
}

.error {
    color: #ef4444;
    text-align: center;
    margin-top: 16px;
    display: block;
    padding: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

#app-section {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

header {
    background: linear-gradient(135deg, #2a1a4e 0%, #1a0f2e 100%);
    padding: 24px 40px;
    margin: 0;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: none;
    border-bottom: 3px solid #8b5cf6;
    backdrop-filter: blur(10px);
    min-height: 80px;
    position: relative;
}

header > div:first-of-type {
    flex: 1;
    min-width: 0;
}

.menu-toggle {
    display: none;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.4);
    color: #b794f6;
    font-size: 24px;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    margin-right: 15px;
}

header h1 {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.8px;
    font-size: 24px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}

.user-info span {
    font-weight: 600;
    color: #e9d5ff;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-info button {
    padding: 8px 16px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.15);
    color: #e9d5ff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-info button:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

.tabs {
    display: none;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s;
    color: #e9d5ff;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.tab-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(138, 43, 226, 0.4);
}

.tab-btn.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    border-color: transparent;
}

main {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    min-height: auto;
}

main h2 {
    color: #b794f6;
    margin-bottom: 25px;
}

.app-container {
    display: flex;
    min-height: calc(100vh - 100px);
}

.sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 20px 0;
    box-shadow: 2px 0 12px rgba(0,0,0,0.05);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    background: transparent;
    color: #4b5563;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.sidebar-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-left-color: #8b5cf6;
    color: #6d28d9;
}

.sidebar-btn.active {
    background: rgba(139, 92, 246, 0.15);
    border-left-color: #8b5cf6;
    color: #6d28d9;
}

body.dark-mode .sidebar-btn {
    color: #c4b5fd;
}

body.dark-mode .sidebar-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #e9d5ff;
}

body.dark-mode .sidebar-btn.active {
    background: rgba(139, 92, 246, 0.25);
    color: #e9d5ff;
}
    color: #ffffff;
    border-left-color: #8b5cf6;
    font-weight: 600;
}

.sidebar-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #b794f6;
}

.sidebar-category .category-text {
    flex: 1;
    text-align: left;
    line-height: 1.3;
}

.sidebar-category .arrow {
    font-size: 12px;
    transition: transform 0.3s;
    margin-left: auto;
    flex-shrink: 0;
}

.sidebar-category.open .arrow {
    transform: rotate(-180deg);
}

.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-submenu.open {
    max-height: 500px;
}

.sidebar-subbtn {
    padding-left: 35px;
    font-size: 15px;
}

.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background: transparent;
    color: #333333;
}

.content-section {
    display: none;
    min-height: 400px;
}

.content-section.active {
    display: block;
}

.content-section h2 {
    color: #1f2937;
    margin-bottom: 32px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
}

.content-section p {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
}

.stats-filter {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stats-filter label {
    color: #6d28d9;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
}

.stats-filter select {
    flex: 1;
    max-width: 400px;
    padding: 12px 15px;
    border: 2px solid rgba(109, 40, 217, 0.3);
    border-radius: 8px;
    background: #f9fafb;
    color: #333333;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23333333" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

.stats-filter select:hover {
    border-color: #8b5cf6;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.stats-filter select:focus {
    outline: none;
    border-color: #8b5cf6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.stats-filter select option {
    background: #ffffff;
    color: #333333;
    padding: 10px;
    border: none;
}

.stats-filter select option:hover {
    background: rgba(139, 92, 246, 0.2);
}

.stats-filter select option:checked,
.stats-filter select option:selected {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    font-weight: bold;
}

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

.stat-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(139, 92, 246, 0.15);
    border-color: #c4b5fd;
}

.stat-icon {
    font-size: 48px;
    opacity: 0.8;
}

.stat-info h3 {
    font-size: 36px;
    color: #6d28d9;
    margin: 0 0 5px 0;
    font-weight: 700;
    letter-spacing: -1px;
}

.stat-info p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.chart-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.chart-card canvas {
    max-height: 300px;
}

.chart-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.chart-card h3 {
    color: #1f2937;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 18px;
}

.seccion-stat {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    margin-bottom: 10px;
    background: #f9fafb;
    border-radius: 5px;
    border-left: 3px solid #8b5cf6;
}

.seccion-stat-name {
    color: #6b7280;
    font-size: 14px;
}

.seccion-stat-value {
    color: #6d28d9;
    font-weight: bold;
}

.venta-reciente {
    padding: 12px;
    margin-bottom: 10px;
    background: #f9fafb;
    border-radius: 5px;
    border-left: 3px solid #6d28d9;
}

.venta-reciente-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.venta-reciente-id {
    color: #6d28d9;
    font-weight: bold;
}

.venta-reciente-total {
    color: #8b5cf6;
    font-weight: bold;
}

.venta-reciente-info {
    color: #6b7280;
    font-size: 14px;
}

.turno-group {
    margin-bottom: 30px;
}

.turno-group-title {
    color: #1f2937;
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #8b5cf6;
    padding-bottom: 10px;
    font-weight: 600;
}

.turno-group-title.clickeable {
    cursor: pointer;
    transition: all 0.3s;
}

.turno-group-title.clickeable:hover {
    color: #8b5cf6;
    transform: translateX(5px);
}

.cargadores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.cargador-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cargador-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.cargador-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.cargador-header h4 {
    color: #1f2937;
    margin: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
}

.cargador-cantidad {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.cargador-info p {
    margin: 5px 0;
    color: #6b7280;
    font-size: 14px;
}

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filters input, .filters select {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    transition: all 0.2s ease;
}

.filters input:focus, .filters select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.filters input::placeholder {
    color: #9ca3af;
}

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

.seccion-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
}

.seccion-badge {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
    animation: fadeIn 0.5s ease;
    z-index: 1;
}

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

.seccion-card.clickeable {
    cursor: pointer;
}

.seccion-card.clickeable:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(139, 92, 246, 0.15);
    border-color: #c4b5fd;
}

.seccion-card h3 {
    color: #1f2937;
    margin: 20px 0 12px 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.seccion-descripcion {
    color: #6b7280;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 0;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    color: #1f2937;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    padding: 24px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}

.modal-header h2 {
    color: #1f2937;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.btn-close {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-close:hover {
    color: #1f2937;
    transform: scale(1.1);
}

.modal-body {
    padding: 24px;
    background: #ffffff;
}

.modal-actions {
    margin-bottom: 20px;
}

.btn-primary, .btn-secondary, .btn-danger, .btn-edit {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.45);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #1f2937;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
}

.btn-edit {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
}

.evento-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.evento-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.evento-card h3 {
    color: #1f2937;
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.evento-info {
    color: #6b7280;
    margin-bottom: 15px;
    font-size: 14px;
}

.evento-info div {
    margin-bottom: 5px;
}

.evento-actions {
    display: flex;
    gap: 10px;
}

.form-container {
    max-width: 600px;
}

.form-container input, .form-container select, .form-container textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 15px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font-size: 16px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.form-container input:focus, .form-container select:focus, .form-container textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    background: #ffffff;
}

.form-container input::placeholder, .form-container textarea::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.form-section {
    margin: 24px 0;
    padding: 28px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
}

.section-title {
    color: #1f2937;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

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

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.total-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(109, 40, 217, 0.05) 100%);
    border: 2px solid #8b5cf6;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    text-align: center;
}

.total-title {
    color: #6d28d9;
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.total-amount {
    color: #6d28d9;
    font-size: 32px;
    font-weight: 700;
}

.info-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    color: #374151;
    font-size: 14px;
}

.list-container {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

.venta-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.venta-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.venta-card h4 {
    color: #1f2937;
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.venta-info {
    color: #6b7280;
    line-height: 1.6;
    font-size: 14px;
}

.confirmacion-detalles {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    color: #374151;
    line-height: 1.8;
}

.confirmacion-detalles p {
    margin: 8px 0;
    color: #1f2937;
}

.confirmacion-detalles strong {
    color: #6d28d9;
    font-weight: 600;
}

.confirmacion-detalles hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 16px 0;
}

.modal-confirmacion {
    max-width: 550px;
}

.modal-confirmacion .modal-content {
    background: #ffffff;
}

.modal-confirmacion .modal-header {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-bottom: 2px solid #fbbf24;
}

.modal-confirmacion .modal-header h2 {
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 10px;
}

#confirmacion-mensaje {
    color: #374151;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Estilos específicos para el modal de abono */
#modal-abono .modal-content {
    max-width: 500px;
    overflow: visible;
    padding: 0;
}

#modal-abono .modal-body {
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Scroll personalizado para el modal de abono */
#modal-abono .modal-body::-webkit-scrollbar {
    width: 8px;
}

#modal-abono .modal-body::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 4px;
}

#modal-abono .modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border-radius: 4px;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

#modal-abono .modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

#modal-abono .form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    padding: 15px 0 0 0;
    border-top: 1px solid rgba(138, 43, 226, 0.3);
    flex-wrap: wrap;
}

#modal-abono .form-actions button {
    min-width: 140px;
    padding: 12px 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .main-content {
        order: 1;
        padding: 15px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .secciones-container {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .cargadores-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== DISEÑO RESPONSIVO COMPLETO ===== */

/* Tablets y pantallas medianas (768px - 1024px) */
@media (max-width: 1024px) {
    header {
        padding: 20px 24px;
        min-height: 70px;
    }
    
    header h1 {
        font-size: 20px;
    }
    
    .user-info span,
    .user-info button {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .main-content {
        padding: 24px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    
    .secciones-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detalles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móviles y tablets pequeñas (hasta 768px) */
@media (max-width: 768px) {
    header {
        padding: 16px 20px;
        flex-wrap: wrap;
    }
    
    header > div:first-of-type {
        flex: 1 1 100%;
        margin-bottom: 12px;
    }
    
    header h1 {
        font-size: 16px;
        line-height: 1.3;
    }
    
    .menu-toggle {
        display: block;
        order: 0;
        z-index: 1001;
    }
    
    .user-info {
        gap: 8px;
    }
    
    .user-info span,
    .user-info button {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .sidebar {
        width: 80%;
        max-width: 300px;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-content {
        padding: 16px;
        width: 100%;
    }
    
    .content-section h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .stat-icon {
        font-size: 36px;
    }
    
    .stat-info h3 {
        font-size: 28px;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px 10px;
        font-size: 13px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 95vh;
        margin: 10px;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .form-container input,
    .form-container select,
    .form-container textarea {
        font-size: 16px;
        padding: 12px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-danger,
    .btn-edit {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .filters input,
    .filters select {
        width: 100%;
    }
    
    .stats-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats-filter select {
        max-width: 100%;
    }
    
    .evento-card,
    .venta-card,
    .cargador-card,
    .usuario-card {
        padding: 20px;
    }
    
    .evento-actions {
        flex-direction: column;
    }
    
    .evento-actions button {
        width: 100%;
    }
    
    .login-container {
        margin: 20px auto;
        padding: 32px 24px;
        max-width: 95%;
    }
    
    .login-logo {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }
    
    .login-container h1 {
        font-size: 24px;
    }
    
    .detalles-section {
        padding: 20px;
    }
    
    .detalles-section h3 {
        font-size: 18px;
    }
    
    .detalles-grid {
        grid-template-columns: 1fr;
    }
    
    #modal-abono .form-actions {
        flex-direction: column;
    }
    
    #modal-abono .form-actions button {
        width: 100%;
        min-width: auto;
    }
}

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
    header {
        padding: 12px 16px;
    }
    
    header h1 {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .main-content {
        padding: 12px;
    }
    
    .content-section h2 {
        font-size: 20px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-info h3 {
        font-size: 24px;
    }
    
    .seccion-card {
        padding: 20px;
    }
    
    .seccion-card h3 {
        font-size: 18px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-danger,
    .btn-edit {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .login-container {
        padding: 24px 20px;
    }
    
    .login-container h1 {
        font-size: 22px;
    }
}

/* Pantallas grandes (1440px+) */
@media (min-width: 1440px) {
    .main-content {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .dashboard-charts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .secciones-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Orientación landscape en móviles */
@media (max-height: 600px) and (orientation: landscape) {
    .sidebar {
        height: 100vh;
        overflow-y: auto;
    }
    
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Mejoras de accesibilidad táctil */
@media (hover: none) and (pointer: coarse) {
    .btn-primary,
    .btn-secondary,
    .btn-danger,
    .btn-edit,
    .sidebar-btn {
        min-height: 44px;
    }
    
    .seccion-card.clickeable {
        min-height: 120px;
    }
}
/* Estilos mejorados para el modal de crear turno */
#modal-form-evento .modal-content {
    max-width: 600px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
}

#modal-form-evento .modal-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

#modal-form-evento .modal-header h2 {
    color: #1f2937;
}

#modal-form-evento .modal-body {
    background: #ffffff;
}

#modal-form-evento .btn-close {
    color: #6b7280;
}

#modal-form-evento .btn-close:hover {
    color: #1f2937;
}

#modal-form-evento .form-container {
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
}

#modal-form-evento input,
#modal-form-evento select {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    background: #ffffff;
    color: #1f2937;
    transition: all 0.2s ease;
}

#modal-form-evento input:focus,
#modal-form-evento select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

#modal-form-evento input::placeholder {
    color: #9ca3af;
}

#modal-form-evento select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%231f2937" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
    color-scheme: light;
}

#modal-form-evento select option {
    background: #ffffff;
    color: #1f2937;
    padding: 10px;
}

/* Forzar color en todas las opciones incluyendo la seleccionada */
#evento-seccion option {
    background-color: #ffffff;
    color: #1f2937;
}

#evento-seccion option:checked {
    background: #8b5cf6;
    color: #ffffff;
}

#evento-seccion {
    color-scheme: light;
}

/* Select personalizado para evento-seccion */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-wrapper select {
    display: none;
}

.custom-select-trigger {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    transition: all 0.2s ease;
}

.custom-select-trigger:after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 12px;
}

.custom-select-trigger:hover,
.custom-select-trigger.active {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #8b5cf6;
    border-radius: 8px;
    margin-top: 5px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.custom-options.open {
    display: block;
}

.custom-option {
    padding: 12px 16px;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-option:hover {
    background: #f3f4f6;
}

.custom-option.selected {
    background: #8b5cf6;
    color: #ffffff;
}

.custom-options::-webkit-scrollbar {
    width: 8px;
}

.custom-options::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.1);
}

.custom-options::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border-radius: 4px;
}

/* Estilos para el modal de perfil */
#modal-perfil .modal-content {
    max-width: 500px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
}

#modal-perfil .modal-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

#modal-perfil .modal-header h2 {
    color: #1f2937;
}

#modal-perfil .modal-body {
    background: #ffffff;
}

#modal-perfil .section-title {
    color: #1f2937;
}

#modal-perfil label {
    color: #374151;
}

#modal-perfil input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    margin-bottom: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font-size: 16px;
    transition: all 0.2s ease;
}

#modal-perfil input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

#modal-perfil input::placeholder {
    color: #9ca3af;
}

#modal-perfil p {
    color: #6b7280;
}

#modal-perfil .form-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

#modal-perfil input:-webkit-autofill,
#modal-perfil input:-webkit-autofill:hover,
#modal-perfil input:-webkit-autofill:focus,
#modal-perfil input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #1f2937 !important;
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    transition: background-color 5000s ease-in-out 0s;
}

#modal-perfil .btn-close {
    color: #6b7280;
}

#modal-perfil .btn-close:hover {
    color: #1f2937;
}

#modal-form-evento .form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

#modal-form-evento input[type="date"],
#modal-form-evento input[type="time"] {
    color-scheme: dark;
}

#modal-form-evento input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

#modal-form-evento input[type="number"]::-webkit-outer-spin-button,
#modal-form-evento input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Corrección para autocompletado del navegador en todo el sistema */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #1f2937 !important;
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-container input:-webkit-autofill,
.form-container input:-webkit-autofill:hover,
.form-container input:-webkit-autofill:focus,
.form-container input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #1f2937 !important;
    background-color: #ffffff !important;
}

.form-grid input:-webkit-autofill,
.form-grid input:-webkit-autofill:hover,
.form-grid input:-webkit-autofill:focus,
.form-grid input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #1f2937 !important;
    background-color: #ffffff !important;
}

#modal-form-evento input:-webkit-autofill,
#modal-form-evento input:-webkit-autofill:hover,
#modal-form-evento input:-webkit-autofill:focus,
#modal-form-evento input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #1f2937 !important;
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Estilos para el select del dashboard */
#stats-seccion {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #d1d5db;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 16px;
}

#stats-seccion option {
    background: #ffffff;
    color: #1f2937;
}

#stats-seccion:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Estilos para el select de evento-seccion */
#evento-seccion {
    background: #ffffff;
    color: #1f2937;
}

#evento-seccion option {
    background: #1a0f2e !important;
    color: #e9d5ff !important;
}

#evento-seccion option:checked,
#evento-seccion option:hover,
#evento-seccion option[selected] {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(109, 40, 217, 0.2) 100%) !important;
    color: #e9d5ff !important;
}

select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(139, 92, 246, 0.1) inset !important;
    -webkit-text-fill-color: #e9d5ff !important;
    background-color: rgba(139, 92, 246, 0.1) !important;
}

/* Estilos para el modal de usuario */
#modal-usuario .modal-content {
    max-width: 500px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
}

#modal-usuario input,
#modal-usuario select {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font-size: 16px;
    transition: all 0.2s ease;
}

#modal-usuario input:focus,
#modal-usuario select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

#modal-usuario input::placeholder {
    color: #9ca3af;
}

#modal-usuario input:-webkit-autofill,
#modal-usuario input:-webkit-autofill:hover,
#modal-usuario input:-webkit-autofill:focus,
#modal-usuario input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #1f2937 !important;
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Scroll personalizado global para todo el sistema */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border-radius: 4px;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

/* Scroll para modal-content */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border-radius: 4px;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

/* Scroll para list-container */
.list-container::-webkit-scrollbar {
    width: 8px;
}

.list-container::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 4px;
}

.list-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border-radius: 4px;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.list-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

/* Scroll para main-content */
.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border-radius: 4px;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

/* Estilos para tablas de datos */
.table-container {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
}

.data-table thead {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.data-table th {
    padding: 16px 20px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: none;
}

.data-table td {
    padding: 16px 20px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.data-table tbody tr {
    transition: all 0.3s;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

.personal-view {
    display: block;
}

.personal-view.hidden {
    display: none;
}

.detalles-container {
    max-width: 1000px;
    margin: 0 auto;
}

.detalles-section {
    background: #ffffff;
    padding: 36px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.detalles-section h3 {
    color: #1f2937;
    margin-bottom: 24px;
    border-bottom: 2px solid #8b5cf6;
    padding-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
}

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

.detalle-item {
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.detalle-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.detalle-item strong {
    color: #6b7280;
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.detalle-item p {
    color: #1f2937;
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

/* Dropdown personalizado para sacramentos */
.sacramentos-dropdown {
    position: relative;
}

.sacramentos-trigger {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.sacramentos-trigger:hover {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.sacramentos-trigger .arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.sacramentos-trigger.open .arrow {
    transform: rotate(-180deg);
}

.sacramentos-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #8b5cf6;
    border-radius: 8px;
    margin-top: 5px;
    max-height: 0;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: max-height 0.3s ease;
}

.sacramentos-options.open {
    max-height: 200px;
    overflow-y: auto;
}

.sacramento-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 10px;
}

.sacramento-option:hover {
    background: #f3f4f6;
}

.sacramento-option input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
    vertical-align: middle;
}

.sacramento-option span {
    flex: 1;
    vertical-align: middle;
}

.usuario-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.usuario-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
    transform: translateY(-2px);
}

/* Modal de recibo con diseño moderno */
#modal-recibo {
    z-index: 2000 !important;
}

#modal-recibo .modal-content {
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
}

#modal-recibo .modal-header {
    background: #ffffff !important;
    border-bottom: 2px solid #8b5cf6;
}

#modal-recibo .modal-header h2 {
    color: #6d28d9 !important;
}

#modal-recibo .modal-body {
    background: #ffffff !important;
}

#recibo-modal-content {
    background: #ffffff;
    border: 2px solid #8b5cf6;
    border-radius: 12px;
    padding: 32px;
    color: #1f2937;
}

#recibo-modal-content h2 {
    color: #6d28d9;
    text-align: center;
    margin-bottom: 12px;
    font-size: 28px;
    font-weight: 700;
}

#recibo-modal-content p {
    color: #6b7280;
    text-align: center;
    margin-bottom: 24px;
    font-size: 13px;
}

#recibo-modal-content > div {
    margin-bottom: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-size: 15px;
}

#recibo-modal-content strong {
    color: #6d28d9;
    font-weight: 600;
}

#recibo-modal-content hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 20px 0;
}

/* Modo oscuro para modales */
body.dark-mode .modal-content {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .modal-header {
    background: #2d3748;
    border-bottom-color: #4a5568;
}

body.dark-mode .modal-header h2 {
    color: #c4b5fd;
}

body.dark-mode .modal-body {
    background: #2d3748;
    color: #e2e8f0;
}

body.dark-mode .modal-body input,
body.dark-mode .modal-body select,
body.dark-mode .modal-body textarea {
    background: #1a202c;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .modal-body label,
body.dark-mode .modal-body .section-title {
    color: #b794f6;
}

body.dark-mode .info-box {
    background: #1a202c;
    border-color: #8b5cf6;
    color: #e2e8f0;
}

body.dark-mode .btn-close {
    color: #cbd5e0;
}

body.dark-mode .btn-close:hover {
    color: #e2e8f0;
}

body.dark-mode .info-box {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

body.dark-mode .confirmacion-detalles {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

body.dark-mode .confirmacion-detalles p {
    color: #e2e8f0;
}

body.dark-mode .confirmacion-detalles strong {
    color: #c4b5fd;
}

body.dark-mode #confirmacion-mensaje {
    color: #e2e8f0;
}

body.dark-mode .modal-confirmacion .modal-header {
    background: #4a5568;
    border-bottom-color: #f59e0b;
}

body.dark-mode .modal-confirmacion .modal-header h2 {
    color: #fbbf24;
}

body.dark-mode .modal-confirmacion .modal-body {
    background: #2d3748;
}

body.dark-mode .modal-confirmacion .modal-content {
    background: #2d3748;
}

body.dark-mode #confirmacion-mensaje {
    color: #e2e8f0 !important;
}

/* Diseño del recibo acorde al sistema */
#recibo-modal-content {
    background: #ffffff !important;
    border: 2px solid #8b5cf6 !important;
    border-radius: 16px !important;
    padding: 40px !important;
    color: #1f2937 !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15) !important;
}

#recibo-modal-content h2 {
    color: #6d28d9 !important;
    text-align: center;
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 800;
}

#recibo-modal-content > p {
    color: #6b7280 !important;
    text-align: center;
    margin-bottom: 28px;
    font-size: 13px;
    font-weight: 500;
}

#recibo-modal-content > div {
    margin-bottom: 0;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
    color: #374151 !important;
    font-size: 15px;
}

#recibo-modal-content > div:last-of-type {
    border-bottom: none;
}

#recibo-modal-content strong {
    color: #6d28d9 !important;
    font-weight: 600;
    font-size: 13px;
}

#recibo-modal-content hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 24px 0;
}

/* Modo oscuro para recibo */
body.dark-mode #recibo-modal-content {
    background: #1e1e2e !important;
    border-color: #8b5cf6 !important;
    color: #e9ecef !important;
}

body.dark-mode #recibo-modal-content h2 {
    color: #b794f6 !important;
}

body.dark-mode #recibo-modal-content > p {
    color: #a0a0b0 !important;
}

body.dark-mode #recibo-modal-content > div {
    color: #e9ecef !important;
    border-bottom-color: #2d2d44;
}

body.dark-mode #recibo-modal-content strong {
    color: #b794f6 !important;
}

body.dark-mode #recibo-modal-content hr {
    border-top-color: #2d2d44;
}

body.dark-mode .detalle-item {
    background: #4a5568;
    border-color: #718096;
}

body.dark-mode .detalle-item:hover {
    background: #718096;
    border-color: #a0aec0;
}

body.dark-mode .detalle-item strong {
    color: #cbd5e0;
}

body.dark-mode .content-section p {
    color: #cbd5e0;
}

body.dark-mode .stat-info h3 {
    color: #c4b5fd;
}

body.dark-mode .stat-info p {
    color: #cbd5e0;
}

body.dark-mode .chart-card h3 {
    color: #e2e8f0;
}

body.dark-mode .seccion-stat-name {
    color: #cbd5e0;
}

body.dark-mode .seccion-stat-value {
    color: #c4b5fd;
}

body.dark-mode .venta-reciente-id {
    color: #c4b5fd;
}

body.dark-mode .venta-reciente-total {
    color: #a78bfa;
}

body.dark-mode .venta-reciente-info {
    color: #cbd5e0;
}

body.dark-mode .turno-group-title {
    color: #e2e8f0;
}

body.dark-mode .section-title {
    color: #e2e8f0;
}

body.dark-mode .total-title {
    color: #c4b5fd;
}

body.dark-mode .total-amount {
    color: #c4b5fd;
}

body.dark-mode .data-table td {
    color: #e2e8f0;
}

body.dark-mode .detalles-section h3 {
    color: #e2e8f0;
}

body.dark-mode #modal-historial-compras .modal-body > div:first-child {
    background: #4a5568 !important;
    border-left-color: #8b5cf6 !important;
}

body.dark-mode #modal-historial-compras .modal-body > div:first-child p {
    color: #e2e8f0 !important;
}

body.dark-mode #modal-historial-compras .modal-body > div:first-child strong {
    color: #e2e8f0 !important;
}

body.dark-mode .table-container {
    border-color: #4a5568;
}

body.dark-mode .data-table {
    background: #2d3748;
}

body.dark-mode .data-table tbody tr:hover {
    background: #4a5568;
}

/* Modal de recibo en modo oscuro */
body.dark-mode #modal-recibo .modal-content {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
}

body.dark-mode #modal-recibo .modal-header {
    background: #ffffff !important;
    border-bottom-color: #8b5cf6 !important;
}

body.dark-mode #modal-recibo .modal-header h2 {
    color: #6d28d9 !important;
}

body.dark-mode #modal-recibo .modal-body {
    background: #ffffff !important;
}

body.dark-mode #modal-recibo .btn-close {
    color: #6b7280 !important;
}

body.dark-mode #modal-recibo .btn-close:hover {
    color: #1f2937 !important;
}

body.dark-mode #login-section {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

body.dark-mode .login-container {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

body.dark-mode .login-container h1 {
    color: #e2e8f0;
}

body.dark-mode .login-container h2 {
    color: #cbd5e0;
}

body.dark-mode .login-form-group label {
    color: #e2e8f0;
}

body.dark-mode #login-form input {
    background: #4a5568;
    border-color: #718096;
    color: #f7fafc;
}

body.dark-mode #login-form input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    background: #4a5568;
}

body.dark-mode #login-form input::placeholder {
    color: #a0aec0;
}

body.dark-mode .show-password {
    color: #cbd5e0;
}

body.dark-mode .show-password:hover {
    color: #e2e8f0;
}

body.dark-mode .error {
    background: #742a2a;
    border-color: #fc8181;
    color: #feb2b2;
}

body.dark-mode .detalles-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

body.dark-mode .detalles-grid > div {
    background: #4a5568;
    border-color: #718096;
}

body.dark-mode .detalles-grid > div strong {
    color: #cbd5e0;
}

body.dark-mode .detalles-grid > div p,
body.dark-mode .detalles-grid > div span {
    color: #e2e8f0;
}
