/* Toggle Tabs Widget Styles */

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

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

/* Tab Button */
.toggle-tab-button {
    display: inline-flex;
    flex: 0 0 auto;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    background-color: #d9d9d9;
    color: #23343f;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.25s ease, color 0.25s ease, border-radius 0.25s ease;
    white-space: nowrap;
    line-height: 1;
}

.toggle-tab-button:hover {
    background-color: #cfd4d8;
    color: #1b2b35;
}

.toggle-tab-button.active {
    background-color: #005f78;
    color: #ffffff;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: none;
}

/* 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: 0;
    }

    .toggle-tab-button {
        padding: 8px 14px;
        font-size: 13px;
    }

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

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

    .toggle-tab-button {
        width: auto;
        padding: 8px 12px;
        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;
}
