/* Bijgewerkte CSS voor simple-page-switcher.css */

/* Tab navigatie bovenaan */
.tab-navigation {
    display: flex;
    background-color: rgba(40, 40, 40, 0.7);
    margin-bottom: 8px;
    border-radius: 4px;
    position: relative;
    z-index: 5;
}

.tab-button {
    flex: 1;
    padding: 8px 10px;
    background: none;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: background-color 0.2s;
}

.tab-button.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.tab-button.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30%;
    width: 40%;
    height: 3px;
    background-color: white;
    border-radius: 1.5px;
}

.tab-button:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Container voor pagina's */
.page-container {
    width: 100%;
    height: calc(100% - 40px); /* Ruimte voor tabs */
    position: relative;
    box-sizing: border-box;
}

/* Iframe stijlen */
.content-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: transparent;
}

/* Swipe overlays */
.swipe-overlay {
    position: absolute;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0); /* Volledig transparant */
}

/* Pagina indicator dots onderaan */
.page-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator-dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* Voor mobiel in portrait mode */
@media (max-width: 768px) and (orientation: portrait) {
    .tab-button {
        padding: 6px 5px;
        font-size: 0.9rem;
    }
    
    .tab-button.active:after {
        height: 2px;
    }
    
    .page-container {
        height: calc(100% - 35px); /* Kleinere ruimte voor tabs op mobiel */
    }
    
    .page-indicator {
        bottom: 5px;
    }
    
    .indicator-dot {
        width: 6px;
        height: 6px;
    }
}

/* Fix voor eventuele dubbele scrollbars */
#helidata-container,
#scanner-container {
    overflow: hidden;
}

/* Zorg dat de P2000 container de juiste padding heeft */
#p2000-container {
    padding-bottom: 30px; /* Ruimte voor indicator dots */
}

/* Voorkom dat de pagina niet goed wisselt op mobiel */
@media (max-width: 768px) {
    #list-container {
        position: relative;
        overflow: hidden;
    }
}