/* style.css - Premium Modern Light CSS Design System */

/* Root Variables */
:root {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f1f5f9;
    --border-color: #e2e8f0;
    --border-active: #2563eb;
    
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-secondary: #4f46e5;
    --color-success: #059669;
    --color-danger: #dc2626;
    --color-warning: #d97706;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-speed: 0.25s;
    --shadow-premium: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 16px;
    --border-radius-sm: 8px;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* App Container */
.app-container {
    width: 100%;
    max-width: 640px; /* Constrained width for mobile-first layout */
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    padding: 0 16px;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: var(--color-primary);
    font-size: 20px;
    font-weight: 800;
    transform: rotate(0deg);
    animation: pulseLogo 3s infinite ease-in-out;
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(to right, var(--text-primary), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-badge {
    font-size: 10px;
    font-weight: 600;
    background-color: var(--bg-surface-elevated);
    color: var(--color-primary);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    height: 48px; /* Safe thumb target size */
    padding: 0 20px;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.btn-sm {
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: var(--border-radius-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-primary:disabled {
    background: var(--bg-surface-elevated);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--border-color);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: rgba(14, 165, 233, 0.05);
}

.btn-danger {
    background-color: var(--color-danger);
    color: var(--text-primary);
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-text {
    background: none;
    border: none;
    color: var(--color-danger);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color var(--transition-speed);
}

.btn-text:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

/* User status banner */
.user-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 10px 14px;
    margin-top: 12px;
    font-size: 14px;
}

.user-phone-display {
    color: var(--text-primary);
}

.user-phone-display strong {
    color: var(--color-success);
}

/* Tabs */
.input-tabs {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    background-color: var(--bg-surface);
    padding: 6px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 10px 4px;
    border-radius: 14px;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 11px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.tab-btn svg {
    stroke: var(--text-secondary);
    transition: stroke var(--transition-speed) ease;
}

.tab-btn.active {
    background-color: var(--bg-surface-elevated);
    color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.tab-btn.active svg {
    stroke: var(--color-primary);
}

/* Panels */
.panel-container {
    background-color: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: var(--shadow-premium);
    margin-bottom: 24px;
}

.input-panel {
    display: none;
}

.input-panel.active {
    display: block;
    animation: fadeIn var(--transition-speed) ease-in-out;
}

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

/* Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* Custom Select Dropdowns */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper::after {
    content: "▼";
    font-size: 10px;
    color: var(--text-secondary);
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

select {
    width: 100%;
    height: 52px; /* Large safe target */
    background-color: var(--bg-surface-elevated);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0 40px 0 16px;
    font-family: var(--font-family);
    font-size: 16px;
    appearance: none;
    cursor: pointer;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
    outline: none;
}

select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--bg-surface);
}

/* Custom Text Inputs */
.input-wrapper {
    position: relative;
    width: 100%;
}

input[type="text"], input[type="tel"] {
    width: 100%;
    height: 52px;
    background-color: var(--bg-surface-elevated);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0 70px 0 16px;
    font-family: var(--font-family);
    font-size: 16px;
    transition: all var(--transition-speed);
    letter-spacing: 0.5px;
}

input[type="text"]::placeholder, input[type="tel"]::placeholder {
    color: var(--text-muted);
}

input[type="text"]:focus, input[type="tel"]:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
    outline: none;
}

.vin-counter {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.form-help {
    font-size: 12px;
    color: var(--text-muted);
}

.text-success {
    color: var(--color-success) !important;
}

/* VIN Tips List */
.vin-tips {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

.vin-tips h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.vin-tips ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vin-tips li {
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vin-tips code {
    background-color: var(--bg-surface-elevated);
    color: var(--color-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.vin-tips code:hover {
    background-color: var(--border-color);
}

.vin-tips span {
    color: var(--text-muted);
}

/* QR Scanner Box */
.scanner-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scanner-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.scanner-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.qr-reader-container {
    width: 100%;
    min-height: 250px;
    background-color: #000;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    position: relative;
    border: 2px solid var(--border-color);
}

/* Styling internal elements of html5-qrcode library */
#qr-reader video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.scanner-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    margin: 10px 0;
}

.scanner-divider::before, .scanner-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.scanner-divider span {
    padding: 0 10px;
}

.simulated-scanner-box {
    background-color: var(--bg-surface-elevated);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.simulated-scanner-box label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.select-sm select {
    height: 42px;
    font-size: 14px;
}

/* Loader style */
.loader-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 30px;
    background-color: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(14, 165, 233, 0.2);
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Error Card */
.error-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1.5px solid var(--color-danger);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 24px;
    animation: slideIn var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.error-icon {
    font-size: 24px;
    color: var(--color-danger);
}

.error-content {
    flex: 1;
}

.error-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-danger);
    margin-bottom: 4px;
}

.error-content p {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Results Display section */
.results-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    animation: slideIn var(--transition-speed) ease;
}

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

.results-header-card {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: var(--shadow-premium);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.results-vehicle-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vehicle-make-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    text-transform: uppercase;
}

.results-vehicle-title h2 {
    font-size: 18px;
    font-weight: 700;
}

.results-engine-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.details-pill {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pill-label {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.pill-value {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Fluid Cards Grid - Forced 2 Columns on All Viewports */
.fluid-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.fluid-card {
    background-color: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 10px;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease;
    min-height: 135px;
}

.fluid-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-active);
}

.fluid-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fluid-icon-box {
    width: 24px;
    height: 24px;
    background-color: var(--bg-surface-elevated);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.fluid-icon-box svg {
    width: 13px;
    height: 13px;
    color: var(--color-primary);
}

.fluid-card-header h3 {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-secondary);
}

.fluid-capacity-box {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.fluid-capacity {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}

.fluid-unit {
    font-size: 11px;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
}

.fluid-specs-box {
    border-top: 1px solid rgba(55, 65, 81, 0.4);
    padding-top: 4px;
    margin-top: 2px;
}

.spec-label {
    font-size: 8px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.fluid-spec-detail {
    font-size: 15px;
    color: #ffffff;
    line-height: 1.35;
    font-weight: 700;
    word-break: break-word;
}

.fluid-notice {
    text-align: center;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 8px;
    margin-top: 2px;
}

.fluid-notice p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}


/* History Section */
.history-section {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-premium);
}

.section-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title-wrapper h3 {
    font-size: 16px;
    font-weight: 600;
}

.badge {
    font-size: 10px;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--color-secondary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.history-item:hover {
    border-color: var(--color-primary);
    transform: translateX(2px);
}

.history-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-car {
    font-size: 14px;
    font-weight: 600;
}

.history-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}

.history-method {
    text-transform: uppercase;
    font-size: 10px;
    font-weight: bold;
    color: var(--color-primary);
}

.history-go {
    color: var(--text-secondary);
    font-weight: bold;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 16px;
}

.modal-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    position: relative;
    padding: 24px;
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-header {
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.modal-header p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

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

.modal-actions-inline .btn {
    flex: 1;
}

/* Footer styling */
.app-footer {
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.app-footer p {
    font-size: 11px;
    color: var(--text-muted);
}

/* Helpers */
.hidden {
    display: none !important;
}

/* Fullscreen Results Focus Mode CSS Override */
body.fullscreen-results-active {
    overflow: hidden; /* Lock scroll */
    background-color: #f8fafc;
}

.fullscreen-results-active .app-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
    height: 100vh;
    box-shadow: none;
    background-color: #f8fafc;
}

.fullscreen-results-active .app-main {
    padding: 0;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.fullscreen-results-active .results-section {
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Hide other SPA interface components */
.fullscreen-results-active .app-header,
.fullscreen-results-active #user-banner,
.fullscreen-results-active .input-tabs,
.fullscreen-results-active .panel-container,
.fullscreen-results-active .history-section,
.fullscreen-results-active .app-footer,
.fullscreen-results-active .fluid-notice {
    display: none !important;
}

/* Header bar inside fullscreen dashboard */
.fullscreen-results-active .results-header-card {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background-color: #ffffff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.fullscreen-results-active .results-header-bar {
    height: 52px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.fullscreen-results-active .header-logo-compact {
    display: flex;
    align-items: center;
    gap: 5px;
}

.fullscreen-results-active .header-logo-compact .logo-icon {
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 800;
}

.fullscreen-results-active .header-logo-compact .logo-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}

.fullscreen-results-active .results-subheader-band {
    background-color: #f8fafc;
    padding: 6px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.fullscreen-results-active .results-subheader-band span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 2x2 Grid stretching to fill remaining viewport height */
.fullscreen-results-active .fluid-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    flex: 1;
    gap: 0;
    height: calc(100vh - 84px); /* 52px header-bar + 32px subheader-band */
    background-color: #f8fafc;
}

.fullscreen-results-active .fluid-card {
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around; /* Distributes Title, Capacity, and Specs evenly */
    text-align: center;
    min-height: unset;
    height: 100%;
    transition: background-color var(--transition-speed);
}

/* Checkerboard pattern for grid blocks */
.fullscreen-results-active .fluid-card:nth-child(1),
.fullscreen-results-active .fluid-card:nth-child(4) {
    background-color: #ffffff;
}

.fullscreen-results-active .fluid-card:nth-child(2),
.fullscreen-results-active .fluid-card:nth-child(3) {
    background-color: #f8fafc;
}

/* Draw thin, soft divider lines between cells */
.fullscreen-results-active .fluid-card:nth-child(1) {
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.fullscreen-results-active .fluid-card:nth-child(2) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.fullscreen-results-active .fluid-card:nth-child(3) {
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.fullscreen-results-active .fluid-card-header {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0;
}

.fullscreen-results-active .fluid-icon-box {
    width: 32px;
    height: 32px;
    background-color: #f1f5f9;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.fullscreen-results-active .fluid-icon-box svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.fullscreen-results-active .fluid-card-header h3 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Massive font sizes for fullscreen dashboard outputs */
.fullscreen-results-active .fluid-capacity-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.fullscreen-results-active .fluid-capacity {
    font-size: 56px;
    font-weight: 800;
    color: #1e40af; /* Rich Indigo/Blue for high contrast and readability */
    line-height: 1;
}

.fullscreen-results-active .fluid-unit {
    font-size: 11px;
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.fullscreen-results-active .fluid-specs-box {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
    width: 100%;
    max-width: 320px; /* Expanded for multi-standard list view */
}

.fullscreen-results-active .spec-label {
    display: none; /* Hide label in fullscreen to keep it clean */
}

.fullscreen-results-active .fluid-spec-detail {
    font-size: 15px;
    color: #0f172a; /* Slate Black for crisp readability */
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: -0.2px;
    width: 100%;
}

/* Premium Technical Standards Specifications Styling */
.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    line-height: 1.5;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    text-align: left;
    width: 100%;
}

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

.spec-row-label {
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.spec-row-value {
    color: #1e293b;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.spec-row-plain {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 6px;
    text-align: center;
}



