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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    text-align: center;
}

header h1 {
    color: #4a5568;
    font-size: 2.5rem;
    margin-bottom: 5px;
}

header p {
    color: #718096;
    font-size: 1.1rem;
}

nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    margin-bottom: 30px;
}

.nav-btn {
    background: transparent;
    border: 2px solid #89ff13;
    color: #89ff13;
    padding: 12px 24px;
    margin: 0 10px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-btn:hover, .nav-btn.active {
    background: #89ff13;
    color: #4c1d95;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(137, 255, 19, 0.4);
}

main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.section-header h2 {
    color: #2d3748;
    font-size: 1.8rem;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #89ff13, #6bcc0f);
    color: #4c1d95;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6bcc0f, #4d990b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(137, 255, 19, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-danger {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c53030, #9c2626);
}

.btn-edit {
    background: linear-gradient(135deg, #89ff13, #6bcc0f);
    color: #4c1d95;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #6bcc0f, #4d990b);
}

.btn-delete {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #c53030, #9c2626);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

th {
    background: linear-gradient(135deg, #4c1d95, #3b0764);
    color: #89ff13;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

tr:hover {
    background: #f7fafc;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    background: linear-gradient(135deg, #4c1d95, #3b0764);
    color: #89ff13;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #cbd5e0;
}

.modal-body {
    padding: 20px;
}

form {
    padding: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-available {
    background: #c6f6d5;
    color: #22543d;
}

.status-full {
    background: #fed7d7;
    color: #742a2a;
}

.status-warning {
    background: #feebc8;
    color: #744210;
}

/* Logo Styles */
.logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo-header {
    width: 70px;
    height: 70px;
    margin-right: 20px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-text {
    flex: 1;
}

/* Login Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

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

.login-header h1 {
    color: #4c1d95;
    font-size: 2.5rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.login-header p {
    color: #475569;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.error-message {
    background: #fed7d7;
    color: #742a2a;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.logout-btn {
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Menu Styles */
.menu-container {
    padding: 50px 0;
}

.menu-container h2 {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.logo-selector {
    text-align: center;
    margin-bottom: 30px;
}

.logo-selector label {
    color: white;
    font-weight: 600;
    margin-right: 10px;
}

.logo-selector select {
    padding: 8px 15px;
    border-radius: 8px;
    border: 2px solid #89ff13;
    background: white;
    color: #4c1d95;
    font-weight: 600;
    cursor: pointer;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.menu-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 15px;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.menu-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.menu-btn i {
    font-size: 3rem;
    color: #89ff13;
    margin-bottom: 15px;
    display: block;
}

.menu-btn span {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
}

/* Estilos para filtros */
.filters-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
    border: 2px solid #e2e8f0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-weight: 700;
    color: #2d3748;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    padding: 10px 12px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    border-color: #89ff13;
    box-shadow: 0 0 0 3px rgba(137, 255, 19, 0.1);
    outline: none;
}

/* Estilos para vista previa de reportes */
.reporte-preview {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
}

.reporte-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid #89ff13;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.reporte-header h3 {
    color: #4c1d95;
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.reporte-header p {
    color: #718096;
    font-size: 0.95rem;
}

.grupo-section {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #89ff13;
}

.grupo-section h4 {
    color: #2d3748;
    margin-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    font-size: 1.2rem;
}

.grupo-section p {
    color: #4a5568;
    margin-bottom: 15px;
    font-weight: 500;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.9rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.preview-table th,
.preview-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.preview-table th {
    background: linear-gradient(135deg, #4c1d95, #3b0764);
    color: #89ff13;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.preview-table tr:hover {
    background: #f7fafc;
}

.resumen {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #e6fffa, #b2f5ea);
    border-radius: 10px;
    border-left: 4px solid #38b2ac;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.resumen p {
    margin: 8px 0;
    color: #2d3748;
    font-weight: 600;
}

.resumen strong {
    color: #4c1d95;
}

/* Notificaciones */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 2000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Estilos específicos para el modal de reportes */
#reporte-modal .modal-content {
    max-width: 800px;
}

#reporte-modal .modal-header {
    background: linear-gradient(135deg, #4c1d95, #3b0764);
}

#reporte-modal .modal-body {
    padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .logo-header {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .nav-btn {
        margin: 5px;
        padding: 10px 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 10px 8px;
    }
    
    .login-box {
        margin: 20px;
        padding: 30px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .logo-selector {
        margin-bottom: 20px;
    }
    
    .logo-selector select {
        width: 200px;
    }
    
    .logout-btn {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 10px;
    }
    
    /* Responsive para filtros */
    .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filter-group {
        min-width: unset;
    }
    
    .filter-group select {
        width: 100%;
    }
    
    /* Responsive para vista previa de reportes */
    .reporte-preview {
        padding: 15px;
    }
    
    .preview-table {
        font-size: 0.8rem;
    }
    
    .preview-table th,
    .preview-table td {
        padding: 8px 10px;
    }
    
    .grupo-section {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .menu-btn {
        padding: 30px 15px;
    }
    
    .menu-btn i {
        font-size: 2.5rem;
    }
    
    .menu-btn span {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .filters-container {
        padding: 15px;
    }
}
/* Estilos para el selector de reportes */
.reporte-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
}

.reporte-option {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 15px;
}

.reporte-option:hover {
    border-color: #89ff13;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.reporte-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4c1d95, #3b0764);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reporte-icon i {
    font-size: 1.5rem;
    color: #89ff13;
}

.reporte-info {
    flex: 1;
}

.reporte-info h4 {
    color: #2d3748;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.reporte-info p {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Estilos para estadísticas en reportes */
.estadisticas-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.estadistica-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #89ff13;
}

.estadistica-valor {
    font-size: 2rem;
    font-weight: 700;
    color: #4c1d95;
    margin-bottom: 5px;
}

.estadistica-label {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Mejoras para la vista previa de reportes */
.grupo-info {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #4c1d95;
}

.grupo-info h5 {
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.grupo-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.grupo-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
    font-size: 0.9rem;
}

.grupo-stat i {
    color: #89ff13;
}

/* Responsive para selector de reportes */
@media (max-width: 768px) {
    .reporte-option {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .reporte-icon {
        width: 50px;
        height: 50px;
    }
    
    .reporte-icon i {
        font-size: 1.2rem;
    }
    
    .estadisticas-container {
        grid-template-columns: 1fr;
    }
    
    .grupo-stats {
        flex-direction: column;
        gap: 10px;
    }
}
/* Estilos para campos de solo lectura */
.readonly-field {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    color: #6c757d;
    cursor: not-allowed;
}

.readonly-field:focus {
    background-color: #f8f9fa;
    border-color: #ced4da;
    box-shadow: none;
    outline: none;
}

.field-note {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}
/* Estilos para opciones deshabilitadas en selects */
select option:disabled {
    color: #dc3545 !important;
    background-color: #f8d7da !important;
    font-style: italic;
}

/* Estilos para grupos llenos */
.group-full {
    color: #dc3545;
    font-weight: bold;
}

.group-warning {
    color: #ffc107;
    font-weight: bold;
}

.group-available {
    color: #28a745;
    font-weight: bold;
}

/* Mejora para notificaciones de error */
.notification.error {
    background: #dc3545;
    border-left: 4px solid #a71e2a;
}

.notification.warning {
    background: #ffc107;
    color: #212529;
    border-left: 4px solid #d39e00;
}

.notification.success {
    background: #28a745;
    border-left: 4px solid #1e7e34;
}
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}