/* Toggle Tabs Widget Styles */

.toggle-tabs-wrapper {
    width: 100%;
}

/* Tab Buttons Container */
.toggle-tabs-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
    position: relative;
    background-color: #f5f5f5;
    border-radius: 5px;
    padding: 4px;
}

/* Tab Button */
.toggle-tab-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: transparent;
    color: #666;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.toggle-tab-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

.toggle-tab-button.active {
    background-color: #ffffff;
    color: #007bff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tab Icon */
.toggle-tab-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* Tab Title */
.tab-title {
    display: inline;
}

/* Content Areas */
.toggle-tab-content {
    animation-fill-mode: both;
}

/* Visibility Tracking */
[data-toggle-visible="true"] {
    display: block !important;
}

.toggle-tab-active {
    display: block !important;
    visibility: visible !important;
}

/* Content starts hidden by default */
.toggle-content-hidden {
    display: none !important;
}

.toggle-tab-content.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.toggle-tab-content.fade-out {
    animation: fadeOut 0.3s ease-in-out;
}

.toggle-tab-content.slide-up-in {
    animation: slideUpIn 0.3s ease-in-out;
}

.toggle-tab-content.slide-up-out {
    animation: slideUpOut 0.3s ease-in-out;
}

.toggle-tab-content.slide-down-in {
    animation: slideDownIn 0.3s ease-in-out;
}

.toggle-tab-content.slide-down-out {
    animation: slideDownOut 0.3s ease-in-out;
}

.toggle-tab-content.zoom-in-in {
    animation: zoomInAnimation 0.3s ease-in-out;
}

.toggle-tab-content.zoom-out-out {
    animation: zoomOutAnimation 0.3s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

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

@keyframes slideUpOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes slideDownIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes zoomInAnimation {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoomOutAnimation {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .toggle-tabs-buttons {
        gap: 8px;
    }

    .toggle-tab-button {
        padding: 10px 16px;
        font-size: 13px;
    }

    .toggle-tab-icon {
        font-size: 14px;
        margin-right: 6px;
    }
}

@media (max-width: 480px) {
    .toggle-tabs-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .toggle-tab-button {
        width: 100%;
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* Accessibility */
.toggle-tab-button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Utility Classes */
.toggle-tab-active {
    display: block !important;
}

.elementor-alert {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.elementor-alert-warning {
    border-color: #ffb81c;
    background-color: #fff8e5;
    color: #856404;
}
