/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #faf9f8;
    color: #323130;
    line-height: 1.4;
}

/* Header */
.header {
    background-color: #0078d4;
    color: white;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-title h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

/* Global PyScript Status Indicator */
#global-pyscript-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 400;
}

.status-ready {
    display: none; /* Hide completely when ready */
}

/* Subtle spinner animation */
.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Disabled button styles */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Layout */
.main-content {
    display: flex;
    min-height: calc(100vh - 60px);
}

/* Sidebar */
.sidebar {
    width: 240px;
    background-color: #f3f2f1;
    border-right: 1px solid #edebe9;
    padding: 0;
    overflow: visible;
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: 60px;
    overflow: visible;
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #edebe9;
    display: flex;
    justify-content: flex-start;
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    font-size: 18px;
    color: #605e5c;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.hamburger-menu:hover {
    background-color: #e1dfdd;
    color: #323130;
}

.nav-menu {
    padding: 16px 8px;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section h3 {
    font-size: 12px;
    font-weight: 600;
    color: #605e5c;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding: 0 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    margin: 2px 0;
    font-size: 14px;
    color: #323130;
    white-space: nowrap;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item:hover {
    background-color: #e1dfdd;
}

.nav-item.active {
    background-color: #0078d4;
    color: white;
}

.nav-icon {
    margin-right: 8px;
    width: 20px;
    text-align: center;
    font-size: 20px;
    flex-shrink: 0;
}

.nav-text {
    transition: opacity 0.2s ease;
}

/* Collapsed sidebar styles */
.sidebar.collapsed .nav-section h3 {
    opacity: 0;
    visibility: hidden;
}

.sidebar.collapsed .nav-item {
    padding: 8px;
    justify-content: center;
}

.sidebar.collapsed .nav-icon {
    margin-right: 0;
}

.sidebar.collapsed .nav-text {
    opacity: 0;
    visibility: hidden;
    width: 0;
}

/* Tooltip for collapsed state */
.sidebar.collapsed .nav-item:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: #323130;
    color: white;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-left: 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
}

.sidebar.collapsed .nav-item:hover::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-right-color: #323130;
    z-index: 1000;
    margin-left: 4px;
    pointer-events: none;
}

/* Hide regular tooltips when sidebar is collapsed */
.sidebar.collapsed .nav-item[data-tooltip]:hover::after {
    left: 100%;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    margin-left: 8px;
    margin-bottom: 0;
}

.sidebar.collapsed .nav-item[data-tooltip]:hover::before {
    left: 100%;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-right-color: #323130;
    border-left-color: transparent;
    margin-left: 4px;
    margin-bottom: 0;
}

/* General tooltip styles */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #323130;
    color: white;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 4px;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
}

[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #323130;
    z-index: 1000;
    pointer-events: none;
}

/* Override general tooltips for collapsed sidebar nav items */
.sidebar.collapsed .nav-item[data-tooltip]:hover::after {
    content: attr(data-tooltip) !important;
    position: absolute !important;
    left: 100% !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    background-color: #323130 !important;
    color: white !important;
    padding: 6px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    z-index: 1000 !important;
    margin-left: 8px !important;
    margin-bottom: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
}

.sidebar.collapsed .nav-item[data-tooltip]:hover::before {
    content: '' !important;
    position: absolute !important;
    left: 100% !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    border: 4px solid transparent !important;
    border-right-color: #323130 !important;
    border-top-color: transparent !important;
    border-bottom-color: transparent !important;
    border-left-color: transparent !important;
    z-index: 1000 !important;
    margin-left: 4px !important;
    margin-bottom: 0 !important;
    pointer-events: none !important;
}

/* Hide regular tooltip positioning for collapsed nav items */
.sidebar.collapsed .nav-item {
    overflow: visible !important;
}

/* Special positioning for buttons */
.btn[data-tooltip]:hover::after {
    bottom: 100%;
    margin-bottom: 8px;
}

/* Special positioning for hamburger menu */
.hamburger-menu[data-tooltip]:hover::after {
    top: 100%;
    bottom: auto;
    margin-top: 4px;
    margin-bottom: 0;
}

.hamburger-menu[data-tooltip]:hover::before {
    top: 100%;
    bottom: auto;
    border-top-color: transparent;
    border-bottom-color: #323130;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #323130;
}

.page-header p {
    font-size: 14px;
    color: #605e5c;
}

.learn-more-link {
    color: #0078d4;
    text-decoration: none;
}

.learn-more-link:hover {
    text-decoration: underline;
}

/* Action Bar */
.action-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #0078d4;
    color: white;
    border-color: #0078d4;
}

.btn-primary:hover {
    background-color: #106ebe;
    border-color: #106ebe;
}

.btn-secondary {
    background-color: white;
    color: #323130;
    border-color: #d2d0ce;
}

.btn-secondary:hover {
    background-color: #f3f2f1;
}

.btn-success {
    background-color: #107c10;
    color: white;
    border-color: #107c10;
}

.btn-success:hover {
    background-color: #0e6e0e;
}

/* Algorithm Link Button */
.algorithm-link {
    background: none;
    border: none;
    color: #0078d4;
    cursor: pointer;
    font-size: inherit;
    font-weight: 500;
    padding: 2px 4px;
    border-radius: 3px;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all 0.2s ease;
}

.algorithm-link:hover {
    background-color: #f3f2f1;
    text-decoration-color: #0078d4;
}

.algorithm-link:active {
    background-color: #edebe9;
}

/* Back Button */
.btn-link {
    background: none;
    border: none;
    color: #0078d4;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Jobs Section */
.jobs-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
    min-height: 300px;
}

.jobs-list {
    padding: 24px;
}

.empty-state {
    text-align: center;
    padding: 60px 24px;
}

.empty-state-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #323130;
}

.empty-state-content p {
    font-size: 14px;
    color: #605e5c;
    margin-bottom: 16px;
}

/* Job Items */
.job-item {
    border: 1px solid #edebe9;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.job-item:hover {
    border-color: #0078d4;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.2);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.job-name {
    font-size: 16px;
    font-weight: 600;
    color: #323130;
}

.job-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.job-status.completed {
    background-color: #dff6dd;
    color: #107c10;
}

.job-status.running {
    background-color: #fff4ce;
    color: #8a8886;
}

.job-info {
    font-size: 14px;
    color: #605e5c;
}

/* Documentation Section */
.documentation-section {
    margin-top: 32px;
}

.documentation-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #323130;
}

.doc-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-link {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #edebe9;
    text-decoration: none;
    color: #323130;
    transition: all 0.2s ease;
}

.doc-link:hover {
    border-color: #0078d4;
    box-shadow: 0 2px 4px rgba(0, 120, 212, 0.1);
}

.doc-icon {
    margin-right: 12px;
    font-size: 16px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1010;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.large-modal {
    max-width: 800px;
}

.wizard-modal {
    max-width: 700px;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #edebe9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2,
.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #323130;
}

.close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #605e5c;
}

.close:hover {
    color: #323130;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #edebe9;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Configuration Settings Flyout Styles */
.flyout {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: white;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.2);
    z-index: 1010;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.flyout.open {
    right: 0;
}

.flyout-header {
    padding: 20px 24px;
    border-bottom: 1px solid #edebe9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
}

.flyout-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #323130;
}

.flyout-close {
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #605e5c;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.flyout-close:hover {
    background-color: #f3f2f1;
    color: #323130;
}

.flyout-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.flyout-footer {
    padding: 16px 24px;
    border-top: 1px solid #edebe9;
    background-color: #faf9f8;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.config-section {
    margin-bottom: 24px;
}

.config-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #323130;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #edebe9;
}

.config-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f3f2f1;
}

.config-item:last-child {
    border-bottom: none;
}

.config-item label {
    font-weight: 500;
    color: #605e5c;
    min-width: 120px;
    margin-right: 16px;
}

.config-item span {
    color: #323130;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

.categorical-settings {
    text-align: right;
    flex: 1;
}

.categorical-item {
    padding: 2px 0;
    font-size: 14px;
    color: #605e5c;
}

/* Flyout overlay */
.flyout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1005;
    display: none;
}

.flyout-overlay.show {
    display: block;
}

/* Wizard Styles */
.wizard-content {
    padding: 24px;
}

.wizard-steps {
    display: flex;
    margin-bottom: 32px;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    background-color: #edebe9;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #edebe9;
    color: #605e5c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
}

.step.active .step-number,
.step.completed .step-number {
    background-color: #0078d4;
    color: white;
}

.step-title {
    font-size: 12px;
    text-align: center;
    color: #605e5c;
    font-weight: 500;
}

.step.active .step-title,
.step.completed .step-title {
    color: #323130;
    font-weight: 600;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

.wizard-footer {
    padding: 16px 24px;
    border-top: 1px solid #edebe9;
    display: flex;
    justify-content: space-between;
}

.content-area {
    position: relative; /* Ensure the modal is positioned relative to content area */
    flex: 1; /* Take remaining space after sidebar */
    overflow: hidden; /* Contain the modal within content area */
}

/* Wizard Page Styles */
.wizard-page-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: calc(100vh - 80px); /* Account for header space */
    background: #fff;
}

.wizard-page-container .wizard-header {
    flex-shrink: 0;
}

.wizard-page-container .wizard-main {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0; /* Allow flexbox to shrink */
}

.wizard-page-container .wizard-footer {
    flex-shrink: 0;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 68px; /* Fixed height to prevent layout shifts */
}

.wizard-page-container .wizard-footer .btn {
    min-width: 80px; /* Prevent buttons from changing width on hover */
    box-sizing: border-box; /* Include border in width calculation */
}

.wizard-page-container .wizard-footer .footer-left {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: 280px; /* Align with main content area, offset by sidebar width */
}

.wizard-page-container .wizard-footer .footer-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.wizard-page-container .wizard-sidebar {
    flex-shrink: 0;
    width: 280px;
    background: #f8f9fa;
    border-right: 1px solid #e1e5e9;
    padding: 24px 0;
    overflow-y: auto;
}

.wizard-page-container .wizard-content-area {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    min-height: 0; /* Allow content to scroll */
}

/* Dataset Details Page Styles */
.page-header-with-back {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-btn {
    background: #0078d4;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: #106ebe;
}

.page-header-content {
    flex: 1;
}

.dataset-details-section {
    padding: 24px 0;
}

.dataset-info-cards {
    margin-bottom: 32px;
}

.info-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
}

.info-card-header {
    background: #f8f9fa;
    padding: 12px 16px;
    font-weight: 600;
    border-bottom: 1px solid #e1e5e9;
}

.info-card-content {
    padding: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #605e5c;
}

.info-value {
    color: #323130;
}

.dataset-preview {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
}

.dataset-preview-header {
    background: #f8f9fa;
    padding: 16px;
    border-bottom: 1px solid #e1e5e9;
}

.dataset-preview-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.dataset-preview-content {
    padding: 16px;
}

.dataset-table-container {
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

.dataset-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.dataset-table th {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

.dataset-table td {
    border: 1px solid #e1e5e9;
    padding: 8px;
    white-space: nowrap;
}

.dataset-table tr:nth-child(even) {
    background: #fafbfc;
}

.no-preview {
    text-align: center;
    color: #605e5c;
    padding: 32px;
}

.full-page-wizard {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wizard-header {
    background: #0078d4;
    color: white;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wizard-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.close-wizard {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.close-wizard:hover {
    background: rgba(255, 255, 255, 0.1);
}

.wizard-main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.wizard-sidebar {
    width: 300px;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    padding: 24px 0;
    overflow-y: auto;
}

.wizard-steps-vertical {
    padding: 0 24px;
}

.step-vertical {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
    position: relative;
}

.step-vertical:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    width: 2px;
    height: calc(100% + 4px);
    background: #dee2e6;
}

.step-vertical.completed::after {
    background: #0078d4;
}

.step-vertical.active::after {
    background: linear-gradient(to bottom, #0078d4 50%, #dee2e6 50%);
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dee2e6;
    color: #6c757d;
    font-weight: 600;
    margin-right: 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.step-vertical.completed .step-indicator {
    background: #0078d4;
    color: white;
}

.step-vertical.active .step-indicator {
    background: #0078d4;
    color: white;
}

.step-info {
    flex: 1;
    padding-top: 8px;
}

.step-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
}

.step-vertical.active .step-title {
    color: #0078d4;
}

.wizard-content-area {
    flex: 1;
    overflow-y: auto;
    background: white;
}

.full-page-wizard .wizard-step {
    display: none;
    padding: 32px 48px 100px 48px;
    max-width: 800px;
}

.full-page-wizard .wizard-step.active {
    display: block;
}

.step-header {
    margin-bottom: 32px;
}

.step-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 8px 0;
}

.step-header p {
    color: #6c757d;
    margin: 0;
    font-size: 16px;
}

.step-content {
    max-width: 600px;
}

.form-section {
    margin-bottom: 32px;
}

.full-page-wizard .form-group {
    margin-bottom: 24px;
}

.full-page-wizard .form-group label {
    display: block;
    font-weight: 600;
    color: #212529;
    margin-bottom: 8px;
    font-size: 14px;
}

.full-page-wizard .form-group input[type="text"],
.full-page-wizard .form-group input[type="file"],
.full-page-wizard .form-group select,
.full-page-wizard .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Disabled file input styling */
.full-page-wizard .form-group input[type="file"]:disabled {
    background-color: #f3f2f1;
    border-color: #e1dfdd;
    color: #a19f9d;
    cursor: not-allowed;
    opacity: 0.6;
}

.full-page-wizard .form-group select {
    background-color: white;
    cursor: pointer;
}

.full-page-wizard .form-group select option {
    padding: 8px 12px;
    font-size: 14px;
}

/* Custom dropdown styling */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-selected {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dropdown-selected:hover,
.dropdown-selected.active {
    border-color: #0078d4;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.dropdown-selected .placeholder {
    color: #6c757d;
    font-size: 14px;
}

.dropdown-selected .selected-option {
    color: #212529;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.dropdown-arrow {
    color: #6c757d;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown-selected.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.dropdown-options.show {
    display: block;
}

/* Task type dropdown styling */
#task-type {
    font-family: inherit;
    position: relative;
}

/* Custom styling for task type options */
.task-type-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.task-type-option:hover {
    background: #f8f9fa;
}

.task-type-option.selected {
    background: #e7f3ff;
}

.task-type-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

/* Classification icon - Column chart */
.task-type-icon.chart::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 2px;
    width: 3px;
    height: 16px;
    background: #0078d4;
    border-radius: 1px;
}

.task-type-icon.chart::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 7px;
    width: 3px;
    height: 12px;
    background: #0078d4;
    border-radius: 1px;
    box-shadow: 5px 0 0 #0078d4, 10px 4px 0 #0078d4;
}

/* Regression icon - Stacked squares */
.task-type-icon.layers::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 3px;
    background: #0078d4;
    border-radius: 1px;
    box-shadow: 0 5px 0 #0078d4, 0 10px 0 #0078d4, 0 15px 0 #0078d4;
}

.help-text {
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #0078d4;
}

.help-text small {
    color: #6c757d;
    line-height: 1.4;
}

/* Data source options styling */
.data-source-options {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.data-source-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.data-source-option:hover {
    background-color: #f8f9fa;
}

.data-source-option input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.data-source-option label {
    cursor: pointer;
    font-weight: 500;
    margin: 0;
}

.full-page-wizard .form-group input[type="text"]:focus,
.full-page-wizard .form-group select:focus,
.full-page-wizard .form-group textarea:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.full-page-wizard .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.radio-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* More specific selector to override .radio-group label */
.flyout .radio-group-vertical label,
.radio-group-vertical label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: normal;
    cursor: pointer;
    width: 100%;
}

.flyout .radio-group-vertical input[type="radio"],
.radio-group-vertical input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
    width: auto;
    min-width: 16px;
}

.flyout .radio-group-vertical span,
.radio-group-vertical span {
    flex: 1;
    line-height: 1.4;
}

.full-page-wizard .radio-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.full-page-wizard .radio-label:hover {
    border-color: #0078d4;
    background: #f8f9fa;
}

.full-page-wizard .radio-label input[type="radio"] {
    margin-right: 12px;
    margin-bottom: 0;
}

.full-page-wizard .radio-label input[type="radio"]:checked + span {
    color: #0078d4;
    font-weight: 600;
}

.info-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 24px;
}

.info-card h3 {
    margin: 0 0 16px 0;
    color: #212529;
    font-size: 18px;
    font-weight: 600;
}

.info-card p {
    margin: 0 0 16px 0;
    color: #6c757d;
    line-height: 1.5;
}

.info-card ul {
    margin: 0;
    padding-left: 20px;
    color: #6c757d;
}

.info-card li {
    margin-bottom: 8px;
}

.wizard-footer-full {
    border-top: 1px solid #dee2e6;
    background: white;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
}

.footer-left,
.footer-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #323130;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d2d0ce;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

.radio-group {
    display: flex;
    gap: 16px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: normal;
    margin-bottom: 0;
    padding: 4px 0;
}

.checkbox-group input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 0;
}

/* Configuration Buttons */
.config-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.config-section.horizontal {
    flex-direction: row;
    gap: 20px;
}

.config-item {
    flex: 1;
}

.config-btn {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: #f3f2f1;
    border: 1px solid #d2d0ce;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all 0.2s ease;
}

.config-btn:hover {
    background-color: #edebe9;
    border-color: #c8c6c4;
}

.config-icon {
    font-size: 20px;
    margin-right: 12px;
}

.config-title {
    font-weight: 600;
    margin-bottom: 2px;
    color: #323130;
}

.config-desc {
    font-size: 13px;
    color: #605e5c;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #d2d0ce;
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    background-color: #faf9f8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload-area:hover {
    border-color: #0078d4;
    background-color: #f8f9fa;
}

.file-upload-area.dragover {
    border-color: #0078d4;
    background-color: rgba(0, 120, 212, 0.05);
}

/* Model Results */
.model-result {
    border: 1px solid #edebe9;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.model-result:hover {
    border-color: #0078d4;
    box-shadow: 0 2px 4px rgba(0, 120, 212, 0.1);
}

.model-result.best-model {
    border-color: #107c10;
    background-color: #f3ffeb;
}

.model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.model-name {
    font-weight: 600;
    color: #323130;
}

.model-score {
    font-weight: 600;
    color: #0078d4;
}

.best-model .model-score {
    color: #107c10;
}

.model-info {
    font-size: 14px;
    color: #605e5c;
}

/* Training Progress */
.progress-item {
    margin-bottom: 16px;
    padding: 12px;
    background-color: #f3f2f1;
    border-radius: 4px;
}

.progress-item.completed {
    background-color: #dff6dd;
}

.progress-item.running {
    background-color: #fff4ce;
}

/* Metrics Display */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    background-color: #f3f2f1;
    padding: 16px;
    border-radius: 6px;
    text-align: center;
}

.metric-label {
    font-size: 12px;
    color: #605e5c;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 24px;
    font-weight: 600;
    color: #323130;
}

/* Visualization */
.visualization-container {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 16px;
    margin-top: 16px;
}

/* JSON Editor */
#test-features {
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* Child Job Details Styles */
.model-info-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.model-info-section h5 {
    color: #323130;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #edebe9;
}

.model-description {
    color: #605e5c;
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.5;
}

.model-summary {
    margin-bottom: 20px;
}

.performance-metric {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background-color: #f3f2f1;
    border-radius: 6px;
    margin-bottom: 16px;
}

.metric-label {
    font-size: 14px;
    font-weight: 500;
    color: #323130;
}

.metric-value.primary-metric {
    font-size: 18px;
    font-weight: 600;
    color: #0078d4;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f2f1;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    font-weight: 500;
    color: #605e5c;
}

.detail-value {
    font-size: 14px;
    color: #323130;
}

/* Child Job Metrics Grid */
.metrics-grid .metric-item {
    background-color: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #edebe9;
}

.metrics-grid .metric-name {
    font-size: 12px;
    color: #605e5c;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
}

.metrics-grid .metric-value {
    font-size: 20px;
    font-weight: 600;
    color: #0078d4;
}

/* Metrics Visualization */
.metrics-visualization {
    margin-top: 32px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.metrics-visualization h5 {
    color: #323130;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #edebe9;
}

.visualization-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #faf9f8;
    border-radius: 6px;
    border: 1px solid #edebe9;
}

.visualization-container canvas {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Prediction Result */
.prediction-result {
    margin-top: 16px;
    padding: 12px;
    background-color: #f3f2f1;
    border-radius: 4px;
    font-weight: 600;
}

.prediction-result.success {
    background-color: #dff6dd;
    color: #107c10;
}

.prediction-result.error {
    background-color: #fed9cc;
    color: #d13438;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .wizard-steps {
        flex-wrap: wrap;
    }
    
    .step {
        flex: 0 0 50%;
        margin-bottom: 16px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 8px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-success {
    color: #107c10;
}

.text-error {
    color: #d13438;
}

.text-warning {
    color: #ff8c00;
}

.hidden {
    display: none !important;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Page Content */
.page-content {
    width: 100%;
}

/* Home Page Styles */
.home-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 0;
    max-width: 1200px;
}

.gallery-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.image-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    position: relative;
}

/* Data Visualization Chart */
.data-viz {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.chart-bars {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 80px;
}

.bar {
    width: 20px;
    background: linear-gradient(180deg, #1976d2 0%, #0d47a1 100%);
    border-radius: 2px 2px 0 0;
    transition: height 0.3s ease;
}

/* ML Network */
.ml-network {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    position: relative;
}

.network-nodes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 120px;
}

.node {
    width: 16px;
    height: 16px;
    background: #7b1fa2;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(123, 31, 162, 0.3);
}

.network-connections::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 1px;
    background: #7b1fa2;
    opacity: 0.6;
}

/* Data Table */
.data-table {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    flex-direction: column;
    padding: 20px;
}

.table-header {
    width: 100%;
    height: 20px;
    background: #388e3c;
    border-radius: 2px;
    margin-bottom: 8px;
}

.table-row {
    width: 100%;
    height: 12px;
    background: #66bb6a;
    border-radius: 1px;
    margin-bottom: 4px;
    opacity: 0.8;
}

.table-row:nth-child(even) {
    opacity: 0.6;
}

/* Algorithm Flow */
.algorithm {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc02 100%);
}

.algo-flow {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flow-box {
    width: 30px;
    height: 30px;
    background: #f57c00;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(245, 124, 0, 0.3);
}

.flow-arrow {
    font-size: 20px;
    color: #f57c00;
    font-weight: bold;
}

/* Learning Cards Styles */
.learning-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    padding: 20px 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    min-height: 80px;
}

.learning-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.15);
}

.learning-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle {
    background-color: #4da6ff;
    color: white;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.learning-label {
    font-size: 14px;
    font-weight: 600;
    color: #323130;
    line-height: 1.4;
    text-align: left;
    flex: 1;
}

/* Data Page Styles */
.data-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
    min-height: 400px;
}

.data-files-list {
    padding: 24px;
}

.data-file-item {
    border: 1px solid #edebe9;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.data-file-item:hover {
    border-color: #0078d4;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.2);
}

.data-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.data-file-icon {
    font-size: 24px;
    color: #0078d4;
}

.data-file-details h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #323130;
}

.data-file-meta {
    font-size: 14px;
    color: #605e5c;
}

.data-file-size {
    font-size: 14px;
    color: #605e5c;
    font-weight: 500;
}

/* Data Content Modal */
.data-preview-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 14px;
}

.data-preview-table th,
.data-preview-table td {
    border: 1px solid #edebe9;
    padding: 8px 12px;
    text-align: left;
}

.data-preview-table th {
    background-color: #f3f2f1;
    font-weight: 600;
    color: #323130;
}

.data-preview-table td {
    color: #605e5c;
}

.data-preview-table tbody tr:nth-child(even) {
    background-color: #faf9f8;
}

.data-preview-table tbody tr:hover {
    background-color: #f3f2f1;
}

.data-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.data-info-card {
    background-color: #f3f2f1;
    padding: 16px;
    border-radius: 6px;
    text-align: center;
}

.data-info-label {
    font-size: 12px;
    color: #605e5c;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.data-info-value {
    font-size: 20px;
    font-weight: 600;
    color: #323130;
}

.data-preview-note {
    background-color: #fff4ce;
    border: 1px solid #ffcc02;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #605e5c;
}

/* Models Page Styles */
.models-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
    min-height: 400px;
}

.deployed-models-list {
    padding: 24px;
}

.deployed-model-item {
    border: 1px solid #edebe9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.deployed-model-item:hover {
    border-color: #0078d4;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.2);
}

.deployed-model-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.deployed-model-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.deployed-model-details h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #323130;
}

.deployed-model-meta {
    font-size: 14px;
    color: #605e5c;
    margin-bottom: 4px;
}

.deployed-model-metrics {
    display: flex;
    gap: 16px;
    font-size: 13px;
}

.metric-badge {
    background-color: #f3f2f1;
    padding: 4px 8px;
    border-radius: 12px;
    color: #605e5c;
}

.deployed-model-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.model-status-badge {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    background-color: #dff6dd;
    color: #107c10;
}

.deployed-model-actions {
    display: flex;
    gap: 8px;
}

.model-action-btn {
    padding: 6px 12px;
    border: 1px solid #0078d4;
    background-color: transparent;
    color: #0078d4;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.model-action-btn:hover {
    background-color: #0078d4;
    color: white;
}

.model-action-btn.primary {
    background-color: #0078d4;
    color: white;
}

.model-action-btn.primary:hover {
    background-color: #106ebe;
}

/* Models Table */
.models-table-container {
    padding: 24px;
}

.models-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.models-table th {
    background-color: #f8f9fa;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: #323130;
    border-bottom: 1px solid #edebe9;
    font-size: 14px;
}

.models-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #edebe9;
    color: #323130;
    font-size: 14px;
}

.models-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.models-table tbody tr:hover {
    background-color: #f8f9fa;
}

.models-table tbody tr:last-child td {
    border-bottom: none;
}

.model-name {
    font-weight: 600;
    color: #0078d4;
}

.model-type {
    color: #605e5c;
}

.model-job {
    color: #0078d4;
    text-decoration: none;
}

.model-job:hover {
    text-decoration: underline;
}

.model-created {
    color: #605e5c;
}

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

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

/* Featurization Settings Styles */
.checkbox-label-horizontal {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: normal;
    margin-bottom: 0;
}

.checkbox-label-horizontal input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 0;
}

.categorical-table-container {
    margin-top: 12px;
    border: 1px solid #d2d0ce;
    border-radius: 6px;
    overflow: hidden;
}

.categorical-table {
    width: 100%;
    border-collapse: collapse;
}

.categorical-table th {
    background-color: #f3f2f1;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #d2d0ce;
}

.categorical-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #edebe9;
    vertical-align: middle;
}

.categorical-table tr:last-child td {
    border-bottom: none;
}

.categorical-table .column-name {
    font-weight: 500;
    color: #323130;
}

.radio-group {
    display: flex;
    gap: 16px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin: 0;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Job Details Page Styles */
.job-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.job-title-section {
    flex: 1;
}

.back-button {
    background: none;
    border: none;
    color: #0078d4;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 8px;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.back-button:hover {
    text-decoration: underline;
}

.breadcrumb {
    font-size: 13px;
    color: #605e5c;
    margin-bottom: 12px;
}

.breadcrumb-item {
    color: #605e5c;
}

.breadcrumb-separator {
    margin: 0 6px;
    color: #a19f9d;
}

.job-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.job-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.job-status-badge.running {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.job-status-badge.completed {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.job-status-badge.failed {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Timeout status styling - orange/amber theme */
.job-status-badge.timed-out,
.job-status-badge.failed-timeout {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* Completed with timeout - greenish with orange accent */
.job-status-badge.completed-timeout {
    background-color: #e7f4e7;
    border-color: #c3d4c3;
    color: #2d5a2d;
    border-left: 3px solid #ffc107;
}

.status-icon {
    font-size: 12px;
}

.job-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Job Actions Toolbar - applies to all job toolbars */
.job-actions-toolbar {
    display: flex !important;
    gap: 12px;
    padding: 16px 24px !important;
    background: white !important;
    border: 1px solid #e1dfdd !important;
    align-items: center;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
}

.job-actions-toolbar .btn {
    display: inline-flex !important;
    margin: 0 !important;
    background: white !important;
    border: 1px solid #d2d0ce !important;
    color: #323130 !important;
}

.model-actions-toolbar {
    display: flex !important;
    gap: 12px;
    padding: 16px 24px !important;
    background: white !important;
    border: 1px solid #e1dfdd !important;
    align-items: center;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
}

.model-actions-toolbar .btn {
    display: inline-flex !important;
    margin: 0 !important;
    background: white !important;
    border: 1px solid #d2d0ce !important;
    color: #323130 !important;
}

.job-details-content {
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.job-tabs {
    display: flex;
    border-bottom: 1px solid #edebe9;
    background: #f8f6f4;
}

/* === UNIFIED TAB STYLES - Used across all pages === */
/* All tab containers */
.job-tabs,
.tab-navigation,
.tabs {
    display: flex;
    border-bottom: 1px solid #e1e4e8;
    background-color: #f8f9fa;
    margin-bottom: 0;
}

/* All tab buttons - COMPLETE RESET then rebuild styles */
button.tab-button,
.job-tabs .tab-button,
.tab-navigation .tab-button,
.tabs .tab-button,
.tab-button {
    all: unset !important;
    box-sizing: border-box !important;
    display: inline-block !important;
    padding: 16px 24px !important;
    cursor: pointer !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #605e5c !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

button.tab-button:hover,
.job-tabs .tab-button:hover,
.tab-navigation .tab-button:hover,
.tabs .tab-button:hover,
.tab-button:hover {
    background: #f3f2f1 !important;
    color: #323130 !important;
    border: 0 !important;
    border-bottom: 3px solid transparent !important;
}

button.tab-button.active,
.job-tabs .tab-button.active,
.tab-navigation .tab-button.active,
.tabs .tab-button.active,
.tab-button.active {
    color: #0078d4 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 3px solid #0078d4 !important;
}

button.tab-button:focus,
.job-tabs .tab-button:focus,
.tab-navigation .tab-button:focus,
.tabs .tab-button:focus,
.tab-button:focus {
    outline: none !important;
    box-shadow: none !important;
    border: 0 !important;
    border-bottom: 3px solid transparent !important;
}

button.tab-button.active:focus,
.job-tabs .tab-button.active:focus,
.tab-navigation .tab-button.active:focus,
.tabs .tab-button.active:focus,
.tab-button.active:focus {
    border: 0 !important;
    border-bottom: 3px solid #0078d4 !important;
}

/* Tab content containers */
.job-tab-content,
.tab-content,
.tab-panel {
    padding: 24px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Early stopping notice */
.early-stop-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: #fff4ce;
    border: 1px solid #f1c21b;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 20px;
}

.notice-icon {
    font-size: 20px;
    margin-top: 2px;
}

.notice-content h4,
.notice-content strong {
    margin: 0 0 8px 0;
    color: #393939;
    font-weight: 600;
}

.notice-content p {
    margin: 0;
    color: #525252;
    font-size: 14px;
    line-height: 1.5;
}

.job-tab-content {
    padding: 24px;
}

.tab-panel {
    display: none;
}

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

.job-overview-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.properties-section,
.inputs-section,
.outputs-section,
.best-model-section,
.run-summary-section {
    margin-bottom: 32px;
}

.properties-section h3,
.inputs-section h3,
.outputs-section h3,
.best-model-section h3,
.run-summary-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #323130;
    margin-bottom: 16px;
}

.property-grid {
    display: grid;
    gap: 16px;
}

.property-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: center;
}

.property-item label {
    font-size: 14px;
    color: #605e5c;
    font-weight: 500;
}

.property-item span,
.property-item a {
    font-size: 14px;
    color: #323130;
}

.status-with-icon {
    display: flex;
    align-items: center;
    gap: 6px;
}

.link-button {
    color: #0078d4;
    text-decoration: none;
    font-size: 14px;
}

.link-button:hover {
    text-decoration: underline;
}

.input-item {
    border: 1px solid #edebe9;
    border-radius: 6px;
    padding: 16px;
    background: #faf9f8;
}

.input-header {
    margin-bottom: 8px;
}

.input-label {
    font-weight: 500;
    color: #323130;
}

.input-details {
    margin-bottom: 12px;
    font-size: 14px;
}

.input-type {
    color: #605e5c;
}

/* Output Styles (matching Input styles) */
.output-item {
    border: 1px solid #edebe9;
    border-radius: 6px;
    padding: 16px;
    background: #faf9f8;
}

.output-header {
    margin-bottom: 8px;
}

.output-label {
    font-weight: 500;
    color: #323130;
}

.output-details {
    margin-bottom: 12px;
    font-size: 14px;
}

.output-type {
    color: #605e5c;
}

.input-uri label {
    display: block;
    font-size: 13px;
    color: #605e5c;
    margin-bottom: 6px;
}

.uri-input {
    display: flex;
    gap: 8px;
}

.uri-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d2d0ce;
    border-radius: 4px;
    font-size: 13px;
    background: white;
}

.copy-button {
    background: #f3f2f1;
    border: 1px solid #d2d0ce;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
}

.copy-button:hover {
    background: #edebe9;
}

.no-data-message {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #605e5c;
    font-size: 14px;
    padding: 16px;
    background: #f8f6f4;
    border-radius: 4px;
}

.no-data-icon {
    color: #0078d4;
}

.summary-grid {
    display: grid;
    gap: 16px;
}

.summary-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: center;
}

.summary-item label {
    font-size: 14px;
    color: #605e5c;
    font-weight: 500;
}

.task-type-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.config-link {
    color: #0078d4;
    text-decoration: none;
    font-size: 13px;
}

.config-link:hover {
    text-decoration: underline;
}

.tab-content-placeholder {
    text-align: center;
    padding: 48px 24px;
    color: #605e5c;
}

.tab-content-placeholder h4 {
    margin-bottom: 8px;
    color: #323130;
}

/* Best Model Display */
.best-model-display {
    border: 1px solid #edebe9;
    border-radius: 6px;
    padding: 16px;
    background: #faf9f8;
}

.best-model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.best-model-name {
    font-weight: 600;
    color: #155724;
    font-size: 16px;
}

.best-model-badge {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.best-model-score {
    font-size: 24px;
    font-weight: 700;
    color: #155724;
}

.best-model-metric {
    font-size: 14px;
    color: #605e5c;
    margin-top: 4px;
}

/* Job Models Results */
#job-model-results .model-result {
    margin-bottom: 16px;
    border: 1px solid #edebe9;
    border-radius: 6px;
    padding: 16px;
    background: white;
}

#job-model-results .model-result.best-model {
    border-color: #28a745;
    background: #f8fff9;
}

#job-model-results .model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

#job-model-results .model-name {
    font-weight: 600;
    color: #323130;
}

#job-model-results .model-score {
    font-weight: 700;
    color: #0078d4;
    font-size: 18px;
}

#job-model-results .model-info {
    font-size: 14px;
    color: #605e5c;
}

/* Models Table Styles */
.models-table-container {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.models-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.models-table thead {
    background-color: #f8f9fa;
}

.models-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #323130;
    border-bottom: 1px solid #edebe9;
}

.models-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f3f2f1;
    vertical-align: middle;
}

.models-table tbody tr:last-child td {
    border-bottom: none;
}

.models-table tbody tr:hover {
    background-color: #f8f9fa;
}

.best-model-row {
    background-color: #f8fff9 !important;
}

.best-model-row:hover {
    background-color: #f0fff0 !important;
}

.algorithm-cell {
    font-weight: 500;
    color: #323130;
}

.algorithm-name {
    display: block;
    margin-bottom: 4px;
}

.best-model-badge {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.metric-cell {
    font-weight: 600;
    color: #0078d4;
    font-size: 16px;
}

.created-cell {
    color: #605e5c;
    font-size: 13px;
}

/* Progress Updates in Job Details */
.training-progress-section {
    border: 1px solid #edebe9;
    border-radius: 6px;
    padding: 16px;
    background: white;
    margin-top: 16px;
}

.training-progress-section h4 {
    margin-bottom: 12px;
    color: #323130;
}

.progress-item {
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #f3f2f1;
}

.progress-item:last-child {
    border-bottom: none;
}

.progress-item.success {
    color: #155724;
}

.progress-item.error {
    color: #721c24;
}

.progress-item.info {
    color: #0c5460;
}

/* Responsive Design for Job Details */
@media (max-width: 1200px) {
    .job-overview-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .job-header-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .job-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .job-tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .property-item,
    .summary-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    
    .job-tab-content {
        padding: 16px;
    }
}

/* ML App Page Styles */
.ml-app-content {
    padding: 24px;
    height: 100%;
}

.ml-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.welcome-heading {
    font-size: 32px;
    font-weight: 600;
    color: #323130;
    margin: 0;
}

.workspaces-section {
    margin-bottom: 32px;
}

.workspaces-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 16px;
}

.workspaces-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #323130;
    margin: 0;
}

.workspaces-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.workspace-button {
    background-color: white;
    color: #323130;
    border: 1px solid #323130;
    padding: 24px 40px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.workspace-button:hover {
    background-color: #f3f2f1;
    border-color: #201f1e;
}

/* Home Page Styles */
.home-content {
    padding: 24px;
}

.workspace-title {
    font-size: 28px;
    font-weight: 600;
    color: #323130;
    margin: 0 0 24px 0;
}

/* Home Cards Styles */
.home-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 24px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    min-height: 200px;
}

.home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 8px;
}

.data-icon {
    background-color: #e3f2fd;
}

.model-icon {
    background-color: #f3e5f5;
}

.ai-icon {
    background-color: #e8f5e8;
}

.database-symbol {
    position: relative;
    width: 40px;
    height: 30px;
}

.db-disk {
    width: 40px;
    height: 8px;
    background-color: #1976d2;
    border-radius: 50%;
    position: absolute;
    border: 2px solid #1976d2;
}

.db-disk:nth-child(1) { top: 0; }
.db-disk:nth-child(2) { top: 10px; }
.db-disk:nth-child(3) { top: 20px; }

.training-symbol {
    position: relative;
    width: 40px;
    height: 30px;
}

.training-line {
    position: absolute;
    width: 35px;
    height: 2px;
    background-color: #7b1fa2;
    top: 50%;
    left: 2px;
    transform: translateY(-50%) rotate(-15deg);
}

.training-points {
    position: relative;
    width: 100%;
    height: 100%;
}

.point {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #7b1fa2;
    border-radius: 50%;
}

.point:nth-child(1) { top: 5px; left: 5px; }
.point:nth-child(2) { top: 12px; left: 15px; }
.point:nth-child(3) { top: 18px; left: 25px; }
.point:nth-child(4) { top: 8px; left: 35px; }

.ai-symbol {
    position: relative;
    width: 40px;
    height: 35px;
}

.brain-outline {
    width: 35px;
    height: 30px;
    border: 3px solid #388e3c;
    border-radius: 50% 50% 45% 45%;
    position: relative;
}

.neural-node {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #388e3c;
    border-radius: 50%;
}

.neural-node:nth-child(1) { top: 8px; left: 8px; }
.neural-node:nth-child(2) { top: 12px; right: 8px; }
.neural-node:nth-child(3) { bottom: 8px; left: 50%; transform: translateX(-50%); }

.neural-connection {
    position: absolute;
    width: 12px;
    height: 1px;
    background-color: #388e3c;
}

.neural-connection:nth-child(4) { top: 10px; left: 12px; transform: rotate(25deg); }
.neural-connection:nth-child(5) { top: 14px; right: 12px; transform: rotate(-25deg); }

.card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #323130;
    margin: 0;
}

.card-description {
    font-size: 14px;
    color: #605e5c;
    margin: 0;
    line-height: 1.4;
}

/* New ML-Related Image Styles */
.ml-model .model-layers {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 20px;
}

.layer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.neuron {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0078d4, #106ebe);
    box-shadow: 0 2px 4px rgba(0, 120, 212, 0.3);
}

.prediction-chart {
    position: relative;
}

.prediction-line {
    position: relative;
    width: 100%;
    height: 100%;
}

.data-point {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.3);
}

.trend-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 15%;
    height: 2px;
    background: linear-gradient(45deg, #0078d4, #40e0d0);
    transform: rotate(-15deg);
    transform-origin: left center;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4px;
    padding: 16px;
    height: 100%;
}

.matrix-cell {
    border-radius: 2px;
}

.matrix-cell.high {
    background-color: #0078d4;
}

.matrix-cell.medium {
    background-color: #40e0d0;
}

.matrix-cell.low {
    background-color: #e1dfdd;
}

.clustering {
    position: relative;
    padding: 20px;
}

.cluster-group {
    position: absolute;
}

.cluster-group.group1 {
    top: 20px;
    left: 20px;
}

.cluster-group.group2 {
    top: 20px;
    right: 20px;
}

.cluster-group.group3 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.cluster-point {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #0078d4;
}

.cluster-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ff6b35;
    border: 2px solid #ffffff;
}

.cluster-group.group1 .cluster-point:nth-child(1) { top: -5px; left: 5px; }
.cluster-group.group1 .cluster-point:nth-child(2) { top: 10px; left: -8px; }
.cluster-group.group1 .cluster-point:nth-child(3) { top: 15px; left: 12px; }

.cluster-group.group2 .cluster-point:nth-child(1) { top: -8px; left: -5px; }
.cluster-group.group2 .cluster-point:nth-child(2) { top: 5px; left: 10px; }
.cluster-group.group2 .cluster-point:nth-child(3) { top: 18px; left: -10px; }

.cluster-group.group3 .cluster-point:nth-child(1) { top: -10px; left: -8px; }
.cluster-group.group3 .cluster-point:nth-child(2) { top: -5px; left: 8px; }
.cluster-group.group3 .cluster-point:nth-child(3) { top: 12px; left: 2px; }

.create-workspace-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: 0 3px 6px rgba(0, 102, 204, 0.3);
}

.create-workspace-btn:hover {
    background-color: #0052a3;
    box-shadow: 0 6px 12px rgba(0, 102, 204, 0.4);
}

.create-workspace-btn:active {
    background-color: #003d7a;
}

/* Create Workspace Flyout Panel Styles */
.flyout-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: white;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.flyout-panel.active {
    right: 0;
}

.flyout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    background-color: #f8f9fa;
}

.flyout-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #323130;
}

.flyout-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #605e5c;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.flyout-close-btn:hover {
    background-color: #e1dfdd;
}

.flyout-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #323130;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 1px #0078d4;
}

.flyout-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
    margin-top: auto;
}

.btn-secondary {
    background-color: transparent;
    color: #323130;
    border: 1px solid #d1d1d1;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #f3f2f1;
    border-color: #c8c6c4;
}

.btn-primary {
    background-color: #0078d4;
    color: white;
    border: 1px solid #0078d4;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #106ebe;
}

.btn-primary.disabled,
.btn-primary:disabled {
    background-color: #c8c6c4;
    border-color: #c8c6c4;
    color: #a19f9d;
    cursor: not-allowed;
}

.btn-primary.disabled:hover,
.btn-primary:disabled:hover {
    background-color: #c8c6c4;
}

/* Dataset List Styles */
.dataset-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e1dfdd;
    border-radius: 4px;
    background: white;
}

.dataset-item {
    border-bottom: 1px solid #edebe9;
}

.dataset-item:last-child {
    border-bottom: none;
}

.dataset-item:hover {
    background-color: #f3f2f1;
}

.dataset-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 16px;
    cursor: pointer;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.dataset-option:hover {
    background-color: #f3f2f1;
}

.dataset-option input[type="radio"] {
    margin: 0 12px 0 0;
    cursor: pointer;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.dataset-name {
    font-weight: 500;
    color: #323130;
    font-size: 14px;
    margin: 0;
    flex: 1;
    line-height: 1.2;
}

.no-datasets {
    padding: 20px 16px;
    text-align: center;
    color: #605e5c;
    font-style: italic;
}

.no-datasets p {
    margin: 0;
    font-size: 14px;
}

/* Error message styling */
.error-message {
    color: #d73a49;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.3;
}

/* Expandable section styles */
.expandable-section {
    margin-top: 24px;
    border: 1px solid #d1d1d1;
    border-radius: 6px;
    background: #ffffff;
}

.expandable-header {
    width: 100%;
    padding: 16px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #323130;
    transition: background-color 0.2s ease;
}

.expandable-header:hover {
    background-color: #f3f2f1;
}

.expandable-header:focus {
    outline: 2px solid #0078d4;
    outline-offset: -2px;
}

.expand-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
    color: #605e5c;
}

.expandable-header.expanded .expand-icon {
    transform: rotate(90deg);
}

.expandable-content {
    display: none;
    padding: 0 16px 16px 16px;
    border-top: 1px solid #edebe9;
}

.expandable-content.show {
    display: block;
}

.expandable-content .form-group {
    margin-bottom: 16px;
}

.expandable-content .form-group:last-child {
    margin-bottom: 0;
}

.expandable-content label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #323130;
    font-size: 14px;
}

.expandable-content input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    font-size: 14px;
    color: #323130;
    box-sizing: border-box;
}

.expandable-content input[type="number"]:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 1px #0078d4;
}

.expandable-content .form-help {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #605e5c;
    line-height: 1.3;
}

/* Training Logs Styles */
.logs-container {
    background-color: white;
    border: 1px solid #edebe9;
    border-radius: 8px;
    overflow: hidden;
    margin: 16px 0;
}

.logs-header {
    background-color: #f8f9fa;
    padding: 16px;
    border-bottom: 1px solid #edebe9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logs-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #323130;
}

.logs-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logs-count {
    background-color: #e1f5fe;
    color: #0277bd;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.logs-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 0;
}

.log-entry {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f2f1;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry:hover {
    background-color: #f8f9fa;
}

.log-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.log-timestamp {
    color: #605e5c;
    font-weight: 500;
    font-size: 12px;
}

.log-level {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.log-level.info {
    background-color: #0078d4;
}

.log-level.success {
    background-color: #107c10;
}

.log-level.warning {
    background-color: #ff8c00;
}

.log-level.error {
    background-color: #d13438;
}

.log-message {
    color: #323130;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.logs-placeholder {
    text-align: center;
    padding: 48px 24px;
    color: #605e5c;
}

.logs-placeholder-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.7;
}

.logs-placeholder-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #323130;
}

.logs-placeholder-subtext {
    font-size: 14px;
    color: #605e5c;
}

.error-content {
    padding: 0;
}

.log-entry.error {
    background-color: #fef7f7;
    border-left: 4px solid #d13438;
}

.error-title {
    color: #d13438;
    font-weight: 600;
    font-size: 14px;
}

/* Child Jobs Tab Styles */
.child-jobs-content {
    padding: 24px;
}

.child-jobs-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #323130;
}

.child-jobs-table-container {
    background-color: white;
    border: 1px solid #edebe9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.child-jobs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.child-jobs-table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #edebe9;
}

.child-jobs-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #323130;
    border-right: 1px solid #edebe9;
}

.child-jobs-table th:last-child {
    border-right: none;
}

.child-jobs-table tbody tr {
    border-bottom: 1px solid #f3f2f1;
    transition: background-color 0.2s ease;
}

.child-jobs-table tbody tr:hover {
    background-color: #f8f9fa;
}

.child-jobs-table tbody tr:last-child {
    border-bottom: none;
}

.child-jobs-table td {
    padding: 16px;
    vertical-align: middle;
    border-right: 1px solid #f3f2f1;
}

.child-jobs-table td:last-child {
    border-right: none;
}

.child-job-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.job-icon {
    font-size: 16px;
}

.compute-type-tag {
    display: inline-block;
    background-color: #e6f3ff;
    color: #0078d4;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.child-job-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.child-job-status .status-icon {
    font-size: 14px;
}

.status-running {
    color: #8a8886;
}

.status-completed {
    color: #107c10;
}

.status-failed {
    color: #d13438;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Data Guardrails Styles */
.data-guardrails-content {
    padding: 24px;
}

.data-guardrails-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #323130;
}

.guardrails-summary {
    margin-bottom: 24px;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #0078d4;
}

.guardrails-description {
    margin: 0;
    color: #605e5c;
    font-size: 14px;
    line-height: 1.5;
}

.guardrails-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guardrail-section {
    background-color: white;
    border: 1px solid #edebe9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.guardrail-section h5 {
    background-color: #f8f9fa;
    margin: 0;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #323130;
    border-bottom: 1px solid #edebe9;
}

.guardrail-content {
    padding: 20px;
}

.guardrail-item {
    margin-bottom: 16px;
}

.guardrail-item:last-child {
    margin-bottom: 0;
}

.guardrail-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 14px;
}

.guardrail-status.success {
    color: #107c10;
}

.guardrail-status.warning {
    color: #ff8c00;
}

.guardrail-status.error {
    color: #d13438;
}

.guardrail-status.info {
    color: #0078d4;
}

.status-icon {
    font-size: 16px;
}

.guardrail-details {
    padding-left: 24px;
    color: #605e5c;
    font-size: 14px;
    line-height: 1.5;
}

.missing-data-table {
    margin-top: 12px;
    overflow-x: auto;
}

.missing-data-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.missing-data-table th,
.missing-data-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #edebe9;
}

.missing-data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #323130;
}

.missing-data-table code {
    background-color: #f3f2f1;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
}

.missing-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.missing-status.success {
    background-color: #dff6dd;
    color: #107c10;
}

.missing-status.warning {
    background-color: #fff4ce;
    color: #ff8c00;
}

.missing-status.error {
    background-color: #fed9d7;
    color: #d13438;
}

.missing-status.info {
    background-color: #deecf9;
    color: #0078d4;
}

.data-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.summary-item {
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #edebe9;
}

.summary-item strong {
    color: #323130;
}

.summary-item code {
    background-color: #f3f2f1;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
}

.config-list {
    margin-top: 12px;
}

.config-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f2f1;
}

.config-item:last-child {
    border-bottom: none;
}

.config-value {
    font-weight: 500;
    color: #323130;
}

.config-recommendations {
    margin-top: 16px;
    padding: 12px;
    background-color: #fff4ce;
    border-radius: 6px;
    border: 1px solid #ffb900;
}

.config-recommendations h6 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #323130;
}

.config-recommendations ul {
    margin: 0;
    padding-left: 16px;
}

.config-recommendations li {
    margin-bottom: 4px;
    font-size: 13px;
    color: #605e5c;
}

/* Model Registration Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #edebe9;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #323130;
}

.modal-header .close {
    cursor: pointer;
    font-size: 24px;
    color: #605e5c;
    line-height: 1;
}

.modal-header .close:hover {
    color: #323130;
}

.modal-body {
    padding: 20px 24px;
}

.modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid #edebe9;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #323130;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d2d0ce;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 1px #0078d4;
}

/* Model Details Page */
.model-details-header {
    padding: 24px 40px;
    background-color: white;
    border-bottom: 1px solid #edebe9;
}

.model-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.model-details-header h1 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 600;
    color: #323130;
}

.model-type {
    color: #605e5c;
    font-size: 14px;
    margin-bottom: 16px;
}

.model-actions {
    display: flex;
    gap: 12px;
}

.action-button {
    padding: 8px 16px;
    border: 1px solid #d2d0ce;
    background-color: white;
    color: #323130;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-button:hover {
    background-color: #f3f2f1;
    border-color: #c8c6c4;
}

.action-button.primary {
    background-color: #0078d4;
    color: white;
    border-color: #0078d4;
}

.action-button.primary:hover {
    background-color: #106ebe;
    border-color: #106ebe;
}

.model-content {
    padding: 24px 40px;
    background-color: white;
}

.attributes-card {
    background-color: #faf9f8;
    border: 1px solid #edebe9;
    border-radius: 8px;
    padding: 24px;
    max-width: 600px;
}

.attributes-card h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #323130;
}

.attribute-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #edebe9;
}

.attribute-row:last-child {
    border-bottom: none;
}

.attribute-label {
    font-weight: 600;
    color: #605e5c;
    width: 180px;
    flex-shrink: 0;
}

.attribute-value {
    color: #323130;
    flex-grow: 1;
}

.job-link {
    color: #0078d4;
    text-decoration: none;
}

.job-link:hover {
    text-decoration: underline;
}

.model-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 24px 40px;
    background-color: white;
}

.info-card {
    background-color: #faf9f8;
    border: 1px solid #edebe9;
    border-radius: 8px;
    padding: 20px;
}

.info-card h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #323130;
}

.info-grid,
.metrics-grid {
    display: grid;
    gap: 12px;
}

.info-item,
.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-item label,
.metric-item label {
    font-weight: 600;
    color: #605e5c;
}

.info-item span,
.metric-item span {
    font-weight: 400;
    color: #323130;
}

.model-tabs {
    background-color: white;
    border-top: 1px solid #edebe9;
}

.tab-headers {
    display: flex;
    padding: 0 40px;
    border-bottom: 1px solid #edebe9;
}

.tab-header {
    padding: 16px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #605e5c;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-header:hover {
    color: #323130;
}

.tab-header.active {
    color: #0078d4;
    border-bottom-color: #0078d4;
}

/* Tab content now uses unified styles above */

.details-section,
.performance-section,
.artifacts-section {
    max-width: 800px;
}

.details-section h4,
.performance-section h4,
.artifacts-section h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #323130;
}

.properties-list {
    display: grid;
    gap: 12px;
}

.property-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #faf9f8;
    border-radius: 4px;
}

.property-item label {
    font-weight: 600;
    color: #605e5c;
}

.property-item span {
    font-weight: 400;
    color: #323130;
}

/* Models Grid */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.model-card {
    background-color: white;
    border: 1px solid #edebe9;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.model-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #d2d0ce;
}

.model-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.model-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #323130;
}

.model-status {
    padding: 4px 8px;
    background-color: #dff6dd;
    color: #107c10;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.model-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.model-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.model-info span {
    font-size: 14px;
    color: #605e5c;
}

.model-meta {
    padding-top: 8px;
    border-top: 1px solid #edebe9;
}

.model-meta span {
    font-size: 12px;
    color: #605e5c;
}

.link-button {
    background: none;
    border: none;
    color: #0078d4;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
}

.link-button:hover {
    color: #106ebe;
}

/* Endpoints Page Styles */
.endpoints-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.endpoints-table thead th {
    background-color: #f8f9fa;
    color: #323130;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e1e4e8;
}

.endpoints-table tbody tr {
    border-bottom: 1px solid #f3f2f1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.endpoints-table tbody tr:hover {
    background-color: #f8f9fa;
}

.endpoints-table tbody td {
    padding: 12px 16px;
    color: #323130;
}

.endpoint-name {
    font-weight: 500;
    color: #0078d4;
}

.endpoint-status {
    color: #107c10;
    font-weight: 500;
}

/* Endpoint Details Page Styles */
.endpoint-details-header {
    padding: 24px 0;
    border-bottom: 1px solid #e1e4e8;
    margin-bottom: 24px;
}

.endpoint-title-section h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 600;
    color: #323130;
}

.endpoint-status {
    display: inline-block;
    padding: 4px 12px;
    background-color: #dff6dd;
    color: #107c10;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.endpoint-actions-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

/* Endpoint Tabs */
.endpoint-tabs {
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Tab navigation now uses unified styles above */

/* Endpoint Details Tab */
.endpoint-details-section h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #323130;
}

.details-grid {
    display: grid;
    gap: 16px;
    max-width: 600px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f2f1;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item label {
    font-weight: 500;
    color: #605e5c;
    min-width: 120px;
}

.detail-item span {
    color: #323130;
    text-align: right;
    word-break: break-word;
}

/* Endpoint Test Tab */
.endpoint-test-section h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #323130;
}

.endpoint-test-section p {
    margin: 0 0 24px 0;
    color: #605e5c;
}

.test-input-section {
    margin-bottom: 24px;
}

.test-input-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #323130;
}

.test-input-section textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 12px;
}

.test-results-section {
    margin-top: 24px;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e1e4e8;
}

.test-results-section h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #323130;
}

.test-results-section pre {
    background-color: white;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #e1e4e8;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin: 0;
    overflow-x: auto;
}

/* Endpoint Consume Tab */
.endpoint-consume-section h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #323130;
}

.endpoint-consume-section p {
    margin: 0 0 24px 0;
    color: #605e5c;
}

.consume-details {
    display: grid;
    gap: 16px;
    max-width: 800px;
}

.consume-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e1e4e8;
}

.consume-item label {
    font-weight: 500;
    color: #323130;
    font-size: 14px;
}

.consume-item code {
    background-color: white;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #e1e4e8;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #323130;
    word-break: break-all;
}

.consume-download-section {
    margin: 24px 0;
}

.consume-download-section .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.consume-code-section {
    margin-top: 32px;
}

.consume-code-section h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #323130;
}

.consume-code-section pre {
    background-color: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    padding: 16px;
    overflow-x: auto;
    margin: 0;
}

.consume-code-section code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #323130;
    line-height: 1.5;
    white-space: pre;
}