/* ============================================
   DASHBOARD SETTINGS - Marquee, navegación inferior y mejoras
   ============================================ */

/* --- Marquee --- */
#marqueeContainer {
    width: 100%;
    background: rgba(0,0,0,0.05);
    padding: 8px 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    display: none;
}
#marqueeText {
    display: inline-block;
    white-space: nowrap;
    animation: marqueeScroll 20s linear infinite;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    padding-left: 100%;
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- Barra de navegación inferior (estilo imagen) --- */
.bottom-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 16px 24px;
    margin-top: 30px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-top: 3px solid #2ecc71;
    flex-wrap: wrap;
}
.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 16px;
    transition: all 0.25s ease;
    min-width: 70px;
}
.bottom-nav a i {
    font-size: 28px;
    color: var(--text-muted);
    transition: color 0.25s, transform 0.25s;
}
.bottom-nav a:hover {
    background: #f0f4ff;
    color: var(--primary-color);
}
.bottom-nav a:hover i {
    color: var(--primary-color);
    transform: translateY(-2px);
}
.bottom-nav a.active {
    background: var(--primary-color);
    color: white;
}
.bottom-nav a.active i {
    color: white;
}
.bottom-nav a.active:hover {
    background: var(--primary-light);
}
.bottom-nav a:not(.active):hover i {
    color: var(--primary-color);
}

/* --- Sidebar: Availability y Marquee controls --- */
.control-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}
.toggle-switch-small {
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}
.toggle-switch-small::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch-small.active {
    background: var(--cyan);
}
.toggle-switch-small.active::after {
    transform: translateX(20px);
}
.toggle-switch-small input {
    display: none;
}

#availabilityIndicator {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    color: white;
    margin-top: 8px;
    background: #2ecc71;
    letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 768px) {
    .bottom-nav {
        gap: 20px;
        padding: 12px 16px;
        border-radius: 16px;
    }
    .bottom-nav a {
        font-size: 12px;
        padding: 6px 12px;
        min-width: 60px;
    }
    .bottom-nav a i {
        font-size: 24px;
    }
    #marqueeText {
        font-size: 14px;
    }
}
/* ============================================
   NUEVOS ESTILOS PARA PESTAÑAS Y FRANJA DE DISPONIBILIDAD
   ============================================ */

/* --- Franja de disponibilidad --- */
.availability-bar {
    width: 100%;
    padding: 10px 20px;
    border-radius: 8px;
    margin: 20px 0 10px 0;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: white;
    background: #2ecc71; /* se sobrescribe con JS */
    transition: background 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.availability-bar span {
    display: inline-block;
}

/* --- Contenedor de pestañas --- */
.tabs-container {
    margin-top: 20px;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px 20px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 10px 24px;
    border-radius: 16px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    position: relative;
}

.tab-btn i {
    font-size: 28px;
    color: var(--text-muted);
    transition: color 0.25s, transform 0.25s;
}

.tab-btn:hover {
    background: #f0f4ff;
    color: var(--primary-color);
}
.tab-btn:hover i {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}
.tab-btn.active i {
    color: white;
}

.tab-btn:not(.active):hover i {
    color: var(--primary-color);
}

/* --- Contenido de pestañas --- */
.tab-content {
    display: none;
    margin-top: 30px;
    animation: fadeIn 0.3s ease;
}

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

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

/* Ajuste para que la franja se vea bien en móviles */
@media (max-width: 768px) {
    .tabs-nav {
        gap: 10px;
        padding: 10px 16px;
        border-radius: 16px;
    }
    .tab-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    .tab-btn i {
        font-size: 24px;
    }
    .availability-bar {
        font-size: 14px;
        padding: 8px 16px;
    }
}