/* 🍎 Apple-Style Modal Tabs */

.tab-navigation {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    background: var(--bg-alt);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.tab-button.active {
    background: var(--bg);
    color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tab-button .tab-icon {
    font-size: 18px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

/* Tab Progress Indicator */
.tab-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    padding: 0 4px;
}

.tab-progress-dot {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

body.theme-light .tab-progress-dot {
    background: rgba(0, 0, 0, 0.1);
}

.tab-progress-dot.completed {
    background: linear-gradient(90deg, #10b981, #059669);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.tab-progress-dot.active {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
    transform: scaleY(1.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}
