/* Tab Navigation styles */

.tab-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 24px;
    background: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body.dark-mode .tab-btn {
    background: #2a2a2a;
    color: #b0b0b0;
}

.tab-btn:hover {
    background: #f0f0f0;
}

body.dark-mode .tab-btn:hover {
    background: #333;
}

.tab-btn.active {
    background: #3498db;
    color: white;
}

body.dark-mode .tab-btn.active {
    background: #3498db;
    color: white;
}

/* Recording tab - outline style */
#tab-recording {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
}

#tab-recording:hover,
#tab-recording.active {
    background: #3498db;
    color: white;
}

body.dark-mode #tab-recording {
    background: transparent;
    border-color: #5dade2;
    color: #5dade2;
}

body.dark-mode #tab-recording:hover,
body.dark-mode #tab-recording.active {
    background: #3498db;
    color: white;
}

/* Schedule tab - outline style */
#tab-schedule {
    background: transparent;
    border: 2px solid #27ae60;
    color: #27ae60;
}

#tab-schedule:hover,
#tab-schedule.active {
    background: #27ae60;
    color: white;
}

body.dark-mode #tab-schedule {
    background: transparent;
    border-color: #58d68d;
    color: #58d68d;
}

body.dark-mode #tab-schedule:hover,
body.dark-mode #tab-schedule.active {
    background: #27ae60;
    color: white;
}

.tab-content {
    display: none;
}

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

/* Right-align Testing, Admin, Docs tabs */
#tab-testing {
    margin-left: auto;
}

/* Testing Tab Styles */
.tab-btn.test-tab-btn.active {
    background: #f39c12;
}

#tab-content-testing {
    border: 3px dashed #f39c12;
    border-radius: 10px;
    padding: 10px;
}

/* Mobile responsive tabs */
@media (max-width: 768px) {
    .tab-navigation {
        flex-wrap: wrap;
        gap: 8px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1 1 auto;
        min-width: 0;
        text-align: center;
    }

    /* Remove auto margin on mobile so tabs wrap evenly */
    #tab-testing {
        margin-left: 0;
    }
}

/* Smaller screens - stack into 2 rows */
@media (max-width: 480px) {
    .tab-navigation {
        gap: 6px;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 12px;
        flex: 1 1 calc(33.33% - 6px);
    }
}
