/* =========================================
   VIEW SWITCHER
   ========================================= */

.view-toggle-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 25px;
}

.view-toggle-pill {
    display: inline-flex;
    background: #e2e8f0;
    border-radius: 30px;
    padding: 4px;
}

.toggle-btn {
    background: transparent;
    border: none;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    border-radius: 26px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.toggle-btn:hover {
    color: #1e293b;
}

.toggle-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 768px) {
    .view-toggle-pill {
        max-width: calc(100vw - 24px);
    }

    .view-toggle-pill .toggle-btn {
        padding: 8px 6px;
        font-size: 11px;
        white-space: nowrap;
    }
}