/* Estilos base para ropro.es */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none; /* Hidden by default, shown in media query */
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    cursor: pointer;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
    display: none; /* Hidden by default, shown by JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
}

.main-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    padding: 0 20px 30px;
    border-bottom: 1px solid #475569;
    margin-bottom: 20px;
}

.logo-image {
    width: 32px;
    height: 32px;
    margin-right: 12px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #f8fafc;
}

.nav-menu {
    padding: 0 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.nav-item i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
}

.check-icon {
    position: absolute;
    right: 16px;
    color: #10b981;
    font-size: 14px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 20px;
}

/* Header */
.top-header {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.header-left p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

.header-right {
    display: flex;
    gap: 12px;
}

.btn-admin, .btn-account, .btn-logout {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-admin {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-account {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.btn-account:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(96, 165, 250, 0.4);
}

.btn-logout {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

/* Dashboard Stats */
.dashboard-stats {
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* Quick Actions */
.quick-actions {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.quick-actions h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.action-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.action-card:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.action-card i {
    font-size: 24px;
    color: #3b82f6;
}

.action-card span {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

/* Order Form Section */
.order-form-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-header {
    margin-bottom: 20px;
    text-align: center;
}

.form-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.form-header p {
    font-size: 14px;
    color: #64748b;
}

.order-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.form-input, .form-select, .form-textarea {
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Estilos para textarea auto-expandible */
.form-textarea.auto-expand {
    resize: none;
    overflow: hidden;
    min-height: 80px;
    max-height: 400px;
    transition: height 0.2s ease;
}

.form-textarea.auto-expand:focus {
    outline: none;
    border-color: #e2e8f0;
    box-shadow: none;
}

.form-textarea.auto-expand[readonly] {
    background-color: #f8fafc;
    color: #374151;
    cursor: default;
    border-color: #e2e8f0;
}

.limits-display {
    padding: 6px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(107, 114, 128, 0.4);
}

/* Ads Section */
.ads-section {
    margin-bottom: 30px;
}

.ads-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.ad-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.ad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ad-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.ad-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.ad-content p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .top-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .header-left {
        text-align: center;
    }
    
    .header-right {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .order-form {
        max-width: 100%;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .ads-container {
        grid-template-columns: 1fr;
    }
    
    .welcome-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Account Page Styles */
.settings-tabs {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.tab-button {
    padding: 12px 20px;
    border: none;
    background: none;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

.tab-button.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.settings-content {
    margin-bottom: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.settings-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.card-header p {
    font-size: 14px;
    color: #64748b;
    text-align: center;
}

.form-section {
    max-width: 600px;
    margin: 0 auto;
}

.form-section .form-group {
    margin-bottom: 20px;
}

.form-section .form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.form-section .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-section .form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-section .form-group input[readonly] {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

.form-section .form-group small {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    display: block;
}

.form-section .btn-secondary {
    margin-top: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.form-section .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(107, 114, 128, 0.4);
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}

.toggle-item:last-child {
    border-bottom: none;
}

.toggle-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.toggle-info p {
    font-size: 14px;
    color: #64748b;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #3b82f6;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* ===== RESPONSIVE DESIGN MEJORADO ===== */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        margin-left: 250px;
        padding: 15px;
    }
    
    .top-header {
        padding: 15px 20px;
    }
    
    .header-left h1 {
        font-size: 20px;
    }
    
    .dashboard-stats {
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .content-sections {
        gap: 20px;
    }
    
    .content-section {
        padding: 20px;
    }
}

/* Móviles y tablets pequeñas */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 15px 0;
    }
    
    .main-container {
        flex-direction: column;
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    
    .top-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }
    
    .header-left h1 {
        font-size: 18px;
        justify-content: center;
    }
    
    .header-left p {
        font-size: 13px;
    }
    
    .header-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .btn-admin, .btn-account, .btn-logout {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .dashboard-stats {
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-icon i {
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .content-sections {
        gap: 15px;
    }
    
    .content-section {
        padding: 15px;
    }
    
    .section-header h3 {
        font-size: 16px;
    }
    
    .section-header p {
        font-size: 12px;
    }
    
    /* Formularios responsive */
    .form-section {
        padding: 15px;
    }
    
    .form-section .form-group {
        margin-bottom: 15px;
    }
    
    .form-section .form-group label {
        font-size: 13px;
    }
    
    .form-section .form-group input,
    .form-section .form-group select,
    .form-section .form-group textarea {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .form-section .btn-primary,
    .form-section .btn-secondary {
        padding: 10px 16px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Precios responsive */
    .price-calculation {
        padding: 15px;
    }
    
    .price-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .price-item {
        width: 100%;
    }
    
    .price-label {
        font-size: 13px;
    }
    
    .price-value {
        font-size: 16px;
    }
    
    /* Notificaciones responsive */
    .notification {
        width: 90%;
        max-width: none;
        margin: 10px auto;
        padding: 12px;
    }
    
    .notification-content {
        font-size: 13px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .main-content {
        padding: 10px;
    }
    
    .top-header {
        padding: 12px;
        gap: 12px;
    }
    
    .header-left h1 {
        font-size: 16px;
    }
    
    .header-left p {
        font-size: 12px;
    }
    
    .header-right {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-admin, .btn-account, .btn-logout {
        width: 100%;
        justify-content: center;
        padding: 10px;
        font-size: 12px;
    }
    
    .dashboard-stats {
        gap: 12px;
    }
    
    .stats-grid {
        gap: 10px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
    }
    
    .stat-icon i {
        font-size: 14px;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .content-sections {
        gap: 12px;
    }
    
    .content-section {
        padding: 12px;
    }
    
    .section-header h3 {
        font-size: 15px;
    }
    
    .section-header p {
        font-size: 11px;
    }
    
    /* Formularios móvil */
    .form-section {
        padding: 12px;
    }
    
    .form-section .form-group input,
    .form-section .form-group select,
    .form-section .form-group textarea {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .form-section .btn-primary,
    .form-section .btn-secondary {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Precios móvil */
    .price-calculation {
        padding: 12px;
    }
    
    .price-label {
        font-size: 12px;
    }
    
    .price-value {
        font-size: 14px;
    }
    
    /* Notificaciones móvil */
    .notification {
        width: 95%;
        padding: 10px;
    }
    
    .notification-content {
        font-size: 12px;
    }
}

/* Orientación landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .sidebar {
        height: 60px;
        padding: 10px 0;
    }
    
    .logo {
        padding: 0 15px 10px;
        margin-bottom: 10px;
    }
    
    .nav-menu {
        display: flex;
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
        padding: 0 15px;
    }
    
    .nav-item {
        margin-bottom: 0;
        padding: 8px 12px;
        white-space: nowrap;
    }
    
    .nav-item span {
        display: none;
    }
    
    .main-content {
        margin-top: 60px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        padding: 10px;
    }
    
    .stat-number {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 10px;
    }
}

/* Dispositivos muy pequeños */
@media (max-width: 360px) {
    .main-content {
        padding: 8px;
    }
    
    .top-header {
        padding: 10px;
    }
    
    .header-left h1 {
        font-size: 14px;
    }
    
    .header-left p {
        font-size: 11px;
    }
    
    .btn-admin, .btn-account, .btn-logout {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .stat-card {
        padding: 10px;
    }
    
    .stat-icon {
        width: 30px;
        height: 30px;
    }
    
    .stat-icon i {
        font-size: 12px;
    }
    
    .stat-number {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .content-section {
        padding: 10px;
    }
    
    .section-header h3 {
        font-size: 14px;
    }
    
    .form-section {
        padding: 10px;
    }
    
    .form-section .form-group input,
    .form-section .form-group select,
    .form-section .form-group textarea {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .form-section .btn-primary,
    .form-section .btn-secondary {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* Mejoras para accesibilidad táctil */
@media (max-width: 768px) {
    .nav-item,
    .btn-admin,
    .btn-account,
    .btn-logout,
    .form-section .btn-primary,
    .form-section .btn-secondary {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .form-section .form-group input,
    .form-section .form-group select,
    .form-section .form-group textarea {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .toggle-switch {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
    }

    /* Sidebar para móviles */
    .sidebar {
        width: 280px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: -280px; /* Hidden by default */
        z-index: 1001;
        transition: left 0.3s ease;
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        padding: 20px 0;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .sidebar.active {
        left: 0; /* Slide in */
    }

    /* Main content adjustments */
    .main-content {
        padding-top: 80px; /* Space for the hamburger button */
        margin-left: 0;
    }

    /* Header adjustments */
    .top-header {
        margin-top: 20px;
    }

    /* Mejorar la navegación móvil */
    .nav-item {
        padding: 16px 20px;
        margin-bottom: 4px;
        border-radius: 0;
        border-left: 4px solid transparent;
        transition: all 0.3s ease;
    }

    .nav-item:hover {
        background: rgba(255, 255, 255, 0.1);
        border-left-color: #3b82f6;
    }

    .nav-item.active {
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
        border-left-color: #60a5fa;
    }

    /* Logo mejorado para móvil */
    .logo {
        padding: 20px;
        margin-bottom: 30px;
        border-bottom: 1px solid #475569;
    }

    .logo-text {
        font-size: 22px;
    }
}
