/* Modal Tabs Styles */
.modal-tabs {
    width: 100%;
    margin: 0;
}

/* Tab Navigation */
/* .modal-tabs-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #e5e7eb;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-tabs-nav::-webkit-scrollbar {
    display: none;
}

.modal-tabs-nav li {
    margin: 0;
    flex-shrink: 0;
} */

.modal-tabs-nav a {
    /* display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    position: relative;
    background: transparent; */
}

/* .modal-tabs-nav a:hover {
    color: #374151;
    background: rgba(59, 130, 246, 0.05);
}

.modal-tabs-nav a.active {
    border-top-color: #A3D265;
    background: #ffffff;
    font-weight: 600;
} */

.modal-tabs-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    /* height: 3px;
    background: #A3D265;
    border-radius: 2px 2px 0 0; */
}

/* Tab Content */
.modal-tabs-content {
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    min-height: 200px;
}

.modal-tab-panel {
    display: none;
    padding: 24px;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-tab-panel.active {
    display: block;
}

/* Tab Panel Content Styling */
.modal-tab-panel h3 {
    color: #1f2937;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.modal-tab-panel h4 {
    color: #374151;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.modal-tab-panel p {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.modal-tab-panel .wysiwyg-content {
    color: #374151;
    font-size: 16px;
    line-height: 1.6;
}

.modal-tab-panel .wysiwyg-content h1,
.modal-tab-panel .wysiwyg-content h2,
.modal-tab-panel .wysiwyg-content h3,
.modal-tab-panel .wysiwyg-content h4,
.modal-tab-panel .wysiwyg-content h5,
.modal-tab-panel .wysiwyg-content h6 {
    color: #1f2937;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.modal-tab-panel .wysiwyg-content ul,
.modal-tab-panel .wysiwyg-content ol {
    margin: 0 0 16px 0;
    padding-left: 20px;
}

.modal-tab-panel .wysiwyg-content li {
    margin: 0 0 8px 0;
    color: #374151;
}

/* Files & Resources Section */
.modal-tab-panel .files-section {
    margin-top: 24px;
}

.modal-tab-panel .files-section h5 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.modal-tab-panel .file-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin: 0 0 16px 0;
    background: #f9fafb;
    transition: all 0.2s ease-in-out;
}

.modal-tab-panel .file-item:hover {
    border-color: #A3D265;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.modal-tab-panel .file-item:last-child {
    margin-bottom: 0;
}

.modal-tab-panel .requirements {
    margin-top: 12px;
}

.modal-tab-panel .requirements h6 {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.modal-tab-panel .requirements ul {
    margin: 0;
    padding-left: 16px;
}

.modal-tab-panel .requirements li {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 4px 0;
}

/* Buttons in Tab Content */
.modal-tab-panel .component-button {
    margin: 8px 8px 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Navigation Buttons */
.modal-tab-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.modal-tab-navigation .component-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease-in-out;
}

.modal-tab-navigation .component-button:disabled,
.modal-tab-navigation .component-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* .modal-tab-navigation .component-button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
} */

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 8px;
    }

    .modal-tabs-nav a {
        padding: 10px 16px;
        font-size: 13px;
    }

    .modal-tab-panel {
        padding: 16px;
    }

    .modal-tab-panel h3 {
        font-size: 20px;
    }

    .modal-tab-panel h4 {
        font-size: 16px;
    }

    .modal-tab-panel p {
        font-size: 14px;
    }

    .modal-tab-navigation {
        display: flex;
        flex-direction: row;
        gap: 12px;
    }

    .modal-tab-navigation .component-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-tabs-nav a {
        padding: 8px 12px;
        font-size: 12px;
    }

    .modal-tab-panel {
        padding: 12px;
    }

    .modal-tab-panel h3 {
        font-size: 18px;
    }

    .modal-tab-panel h4 {
        font-size: 15px;
    }

    .modal-tab-navigation {
        display: flex;
        flex-direction: column;
    }
}

/* Accessibility Improvements */
.modal-tabs-nav a:focus {
    outline: 2px solid #B4C1FF;
    outline-offset: 2px;
    border-radius: 4px;
}

.modal-tab-panel:focus {
    outline: none;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .modal-tabs-nav a {
        border: 1px solid transparent;
    }

    .modal-tabs-nav a.active {
        border-color: #000000;
        background: #ffffff;
        color: #000000;
    }

    .modal-tab-panel .file-item {
        border-color: #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .modal-tab-panel {
        animation: none;
    }

    .modal-tabs-nav a {
        transition: none;
    }

    .modal-tab-panel .file-item {
        transition: none;
    }
}

/* Tab progress lines */
.tab-progress-line {
    border-color: rgba(0, 0, 0, 0.2);
    /* rhino/20 - default for future tabs */
    transition: border-color 0.3s ease;
}

.tab-progress-line.completed {
    border-color: #1a1a1a;
    /* rhino - for completed tabs */
}

.tab-progress-line.current {
    border-color: #A3D265;
    /* current tab */
}