/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin: 0;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.2s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #28a745;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Flag Matrix Table */
.flag-matrix-table {
    margin-bottom: 0;
}

.flag-matrix-table th {
    white-space: nowrap;
    font-weight: 600;
    font-size: 13px;
}

.flag-matrix-table .flag-name-col {
    min-width: 180px;
}

.flag-matrix-table .flag-key-col {
    min-width: 140px;
}

.flag-matrix-table .env-col {
    min-width: 100px;
}

.flag-matrix-table td {
    vertical-align: middle;
}

.flag-matrix-table code {
    font-size: 12px;
    color: #6c757d;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
}

.flag-matrix-table .badge {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
}

/* API usage callout */
#apiUsageTabContent .callout > .header,
.callout:has(#apiUsageTabs) > .header {
    padding: 0;
}

/* API usage tabs */
#apiUsageTabs {
    padding-left: 0;
}

#apiUsageTabs .nav-link {
    color: #666;
}

#apiUsageTabs .nav-link:hover {
    color: #333;
}

#apiUsageTabs .nav-link.active {
    color: #333;
}

/* Environment column header colors - applied via JS in Plugin.php */

/* Text semibold helper */
.text-semibold {
    font-weight: 600;
}

/* Text monospace helper */
.text-monospace {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
}
