/* ============================================
   NON-TLOG LOAD TEST TABBED WIZARD STYLES
   Multi-step tabbed interface for Non-TLOG Load Test tab
   ============================================ */

/* Container - centered with max width */
.nt-tabbed-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header area */
.nt-tabbed-header {
    margin-bottom: 1.5rem;
}
.nt-tabbed-header h4 {
    margin-bottom: 0.5rem;
}

/* Instructions callout — prominent workflow guide */
.ntt-instructions-callout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(13, 110, 253, 0.06);
    border: 1px solid rgba(13, 110, 253, 0.25);
    border-left: 4px solid var(--bs-primary, #0d6efd);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--bs-body-color, #212529);
    line-height: 1.5;
}
.ntt-instructions-callout > i {
    font-size: 1.1rem;
    color: var(--bs-primary, #0d6efd);
    flex-shrink: 0;
}

/* ============================================
   Step Navigation
   ============================================ */
.nt-step-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
}
.nt-step-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-body-bg, #fff);
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.nt-step-item:first-child {
    border-radius: 6px 0 0 6px;
}
.nt-step-item:last-child {
    border-radius: 0 6px 6px 0;
}
.nt-step-item:not(:first-child) {
    border-left: none;
}
.nt-step-item:hover:not(.active) {
    background: var(--bs-tertiary-bg, #f8f9fa);
}
.nt-step-item.active {
    background: var(--bs-primary, #0d6efd);
    border-color: var(--bs-primary, #0d6efd);
    color: #fff;
}
.nt-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--bs-secondary-bg, #e9ecef);
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.75rem;
    font-weight: 700;
}
.nt-step-item.active .nt-step-number {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.nt-step-connector {
    width: 2rem;
    height: 2px;
    background: var(--bs-border-color, #dee2e6);
}

/* Step content panes */
.ntt-step-content {
    display: none;
}
.ntt-step-content.active {
    display: block;
}

/* ============================================
   File Drop Zone
   ============================================ */
.nt-drop-zone {
    border: 2px dashed var(--bs-border-color, #dee2e6);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bs-tertiary-bg, #f8f9fa);
}
.nt-drop-zone:hover {
    border-color: var(--bs-primary, #0d6efd);
    background: rgba(13, 110, 253, 0.05);
}
.nt-drop-zone.dragover {
    border-color: var(--bs-success, #198754);
    background: rgba(25, 135, 84, 0.1);
}
.nt-drop-zone.has-file {
    border-style: solid;
    border-color: var(--bs-success, #198754);
    background: rgba(25, 135, 84, 0.05);
}
.nt-drop-zone-icon {
    font-size: 2.5rem;
    color: var(--bs-secondary-color, #6c757d);
    margin-bottom: 0.75rem;
}
.nt-drop-zone.has-file .nt-drop-zone-icon {
    color: var(--bs-success, #198754);
}
.nt-drop-zone-text {
    font-size: 0.9rem;
    color: var(--bs-secondary-color, #6c757d);
}
.nt-drop-zone-text strong {
    color: var(--bs-primary, #0d6efd);
}

/* File status display */
.nt-file-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bs-success-bg-subtle, #d1e7dd);
    border: 1px solid var(--bs-success-border-subtle, #a3cfbb);
    border-radius: 6px;
    margin-top: 1rem;
}
.nt-file-status-icon {
    font-size: 1.5rem;
    color: var(--bs-success, #198754);
}
.nt-file-status-info {
    flex: 1;
}
.nt-file-status-name {
    font-weight: 600;
    font-size: 0.9rem;
}
.nt-file-status-details {
    font-size: 0.8rem;
    color: var(--bs-secondary-color, #6c757d);
}

/* ============================================
   Prominent Record Filter
   ============================================ */
.nt-record-filter-container {
    margin-top: 1.25rem;
    padding: 1rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 8px;
}
.nt-record-filter-container .form-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.nt-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.nt-filter-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
}
.nt-filter-buttons .btn .badge {
    font-size: 0.7rem;
    min-width: 1.5rem;
}
.nt-filter-buttons .btn-check:checked + .btn {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Record counts summary */
.nt-record-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bs-border-color-translucent);
    font-size: 0.8rem;
    color: var(--bs-secondary-color, #6c757d);
}
.nt-record-counts span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.nt-record-counts strong {
    color: var(--bs-body-color, #212529);
}

/* ============================================
   Tool Selection Buttons — spaced row
   ============================================ */
.ntt-tool-buttons-row {
    display: flex;
    align-items: stretch;
    gap: 1rem;
}
.ntt-tool-buttons-row .btn {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================
   Export Buttons Row — side by side with OR
   ============================================ */
.ntt-export-buttons-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.ntt-export-buttons-row .btn {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.ntt-or-separator {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bs-secondary-color, #6c757d);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Config Field Groups (collapsible, inside panel)
   ============================================ */
.ntt-field-group {
    border: 1px solid #9aa2ad;
    border-radius: 6px;
    margin-bottom: 0.625rem;
    overflow: hidden;
}
.ntt-field-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    user-select: none;
}
.ntt-field-group-header:hover {
    background: var(--bs-secondary-bg, #e9ecef);
}
.ntt-field-group-header .ntt-fg-chevron {
    transition: transform 0.2s;
    color: var(--bs-secondary-color);
}
.ntt-field-group.expanded .ntt-fg-chevron {
    transform: rotate(180deg);
}
.ntt-field-group-body {
    display: none;
    padding: 0.75rem;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
}
.ntt-field-group.expanded .ntt-field-group-body {
    display: block;
}
.ntt-field-group .form-label {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.ntt-field-group .form-control {
    font-size: 0.85rem;
}

/* ============================================
   Wizard Panels (collapsible sections)
   ============================================ */
.nontlog-wizard-panel {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.nontlog-wizard-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
    cursor: pointer;
    user-select: none;
}
.nontlog-wizard-panel-header:hover {
    background: var(--bs-secondary-bg, #e9ecef);
}
.nontlog-wizard-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}
.nontlog-wizard-panel-title {
    font-weight: 600;
    font-size: 0.95rem;
}
.nontlog-wizard-panel-summary {
    font-size: 0.8rem;
}
.nontlog-wizard-chevron {
    transition: transform 0.2s;
    color: var(--bs-secondary-color);
}
.nontlog-wizard-panel.expanded .nontlog-wizard-chevron {
    transform: rotate(180deg);
}
.nontlog-wizard-panel-body {
    display: none;
    padding: 1rem;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
}
.nontlog-wizard-panel.expanded .nontlog-wizard-panel-body {
    display: block;
}

/* Status badges */
.ntw-badge-ready {
    background: var(--bs-success-bg-subtle, #d1e7dd);
    color: var(--bs-success, #198754);
}
.ntw-badge-not-ready {
    background: var(--bs-secondary-bg, #e9ecef);
    color: var(--bs-secondary-color, #6c757d);
}
.ntw-badge-configured {
    background: var(--bs-info-bg-subtle, #cff4fc);
    color: var(--bs-info, #0dcaf0);
}

/* ============================================
   Step 2: Run Test Instructions
   ============================================ */
.ntt-run-panel {
    max-width: 700px;
    margin: 2rem auto;
    text-align: center;
}
.ntt-run-icon {
    font-size: 3rem;
    color: var(--bs-primary, #0d6efd);
    margin-bottom: 1rem;
}
.ntt-run-panel h4 {
    margin-bottom: 0.5rem;
}
.ntt-run-panel .ntt-run-desc {
    color: var(--bs-secondary-color);
    margin-bottom: 1.5rem;
}
.ntt-cmd-block {
    background: #1e1e2e;
    color: #a6e3a1;
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
    font-family: monospace;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}
.ntt-cmd-block .cmd-label {
    color: #89b4fa;
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}
.ntt-cmd-block code {
    color: #a6e3a1;
}
.ntt-run-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* ============================================
   Step 3: Analyze Results
   ============================================ */
.ntt-results-empty {
    text-align: center;
    padding: 3rem 1rem;
}
.ntt-results-empty-icon {
    font-size: 3rem;
    color: var(--bs-secondary-color, #6c757d);
    margin-bottom: 1rem;
}
.ntt-results-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* ============================================
   Dark mode support
   ============================================ */
[data-bs-theme="dark"] .nt-drop-zone {
    background: var(--bs-tertiary-bg);
    border-color: var(--bs-border-color);
}
[data-bs-theme="dark"] .nt-record-filter-container {
    background: var(--bs-tertiary-bg);
    border-color: var(--bs-border-color);
}
[data-bs-theme="dark"] .ntt-field-group {
    border-color: #4a5568;
}
[data-bs-theme="dark"] .ntt-instructions-callout {
    background: rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.3);
}
[data-bs-theme="dark"] .ntt-cmd-block {
    background: #11111b;
}
[data-bs-theme="dark"] .nontlog-wizard-panel {
    border-color: var(--bs-border-color);
}
[data-bs-theme="dark"] .nontlog-wizard-panel-header {
    background: var(--bs-tertiary-bg);
}
