/* Mechanic Tycoon - Sleek Enterprise CRM Style Sheet */

:root {
    /* Muted Slate/Charcoal CRM Theme */
    --bg-dark: #0f131a;
    --card-bg: #161e2b;
    --card-border: #232d3d;
    --text-primary: #e2e8f0;
    --text-secondary: #64748b;
    
    /* Professional Muted Accents */
    --color-steel-blue: #3b608a;
    --color-steel-blue-hover: #4a75a3;
    
    --color-emerald: #2a6f44;
    --color-emerald-hover: #368f58;
    
    --color-bronze: #9c5c2d;
    --color-bronze-hover: #bd733a;
    
    --color-crimson: #8a3131;
    --color-crimson-hover: #ab4141;

    --border-radius: 4px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #27354a;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #394d69;
}

/* Desktop OS Environment */
#desktop {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Motherboard/Terminal grid wallpaper style */
    background: radial-gradient(circle, rgba(16, 24, 48, 0.45) 0%, rgba(10, 15, 28, 1) 100%),
                linear-gradient(0deg, transparent 24%, rgba(59, 96, 138, 0.04) 25%, rgba(59, 96, 138, 0.04) 26%, transparent 27%, transparent 74%, rgba(59, 96, 138, 0.04) 75%, rgba(59, 96, 138, 0.04) 76%, transparent 77%, transparent),
                linear-gradient(90deg, transparent 24%, rgba(59, 96, 138, 0.04) 25%, rgba(59, 96, 138, 0.04) 26%, transparent 27%, transparent 74%, rgba(59, 96, 138, 0.04) 75%, rgba(59, 96, 138, 0.04) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    padding-bottom: 40px; /* Space for taskbar */
}

/* Desktop Shortcuts */
.desktop-shortcuts {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.desktop-icon {
    width: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}

.desktop-icon:hover .desktop-icon-symbol {
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.7);
}

.desktop-icon-symbol {
    font-size: 32px;
    margin-bottom: 6px;
    transition: transform 0.15s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.desktop-icon-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    font-family: var(--font-heading);
    letter-spacing: 0.3px;
    line-height: 1.2;
}

/* Floating Window System */
.window {
    position: absolute;
    background: var(--card-bg);
    border: 2px solid #27354a;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    min-width: 250px;
    min-height: 150px;
    max-height: 85vh;
    overflow: hidden;
    resize: both;
    z-index: 100;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.window.active-focus {
    border-color: var(--color-steel-blue);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
}

.window-header {
    background: linear-gradient(to right, #1b2535, #131a26);
    border-bottom: 1px solid #232d3d;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}

.window-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.3px;
}

.window.active-focus .window-title {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.window-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.window-min-btn,
.window-max-btn,
.window-full-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.15s ease;
}

.window-min-btn:hover,
.window-max-btn:hover,
.window-full-btn:hover {
    color: var(--color-steel-blue-hover);
}

.window-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.15s ease;
}

.window-close-btn:hover {
    color: #ef4444;
}

.window-content {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Bottom Taskbar Layout */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #0f131a;
    border-top: 1px solid #232d3d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    z-index: 9999;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4);
}

.taskbar-left {
    display: flex;
    align-items: center;
}

.start-btn {
    background: var(--color-steel-blue);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.start-btn:hover {
    background-color: var(--color-steel-blue-hover);
}

.taskbar-tabs {
    flex: 1;
    margin-left: 16px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
}

.taskbar-tab {
    background: #18212f;
    border: 1px solid #27354a;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 3px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.taskbar-tab:hover {
    color: var(--text-primary);
    background: #232f42;
}

.taskbar-tab.active {
    background: var(--color-steel-blue);
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.taskbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.taskbar-cash {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #4ade80;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.taskbar-clock {
    font-family: 'Consolas', 'Courier New', monospace;
    color: var(--text-secondary);
    font-size: 11px;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid #1e2836;
}

/* Panel Contents */
.dashboard {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.card-header .icon {
    font-size: 18px;
}

.card h2 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.description {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 12px;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

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

.btn:disabled {
    background-color: #1e2530 !important;
    color: #4b5563 !important;
    border-color: transparent !important;
    cursor: not-allowed;
    box-shadow: none;
}

/* Button Variants */
.btn-salvage {
    background-color: #27354a;
}
.btn-salvage:hover:not(:disabled) {
    background-color: #32445e;
}

.btn-order {
    background-color: var(--color-steel-blue);
}
.btn-order:hover:not(:disabled) {
    background-color: var(--color-steel-blue-hover);
}

.btn-fix {
    background-color: var(--color-bronze);
}
.btn-fix:hover:not(:disabled) {
    background-color: var(--color-bronze-hover);
}

.btn-hire {
    background-color: var(--color-emerald);
}
.btn-hire:hover:not(:disabled) {
    background-color: var(--color-emerald-hover);
}

/* UI Compact Buttons */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Shipments & Bays List */
.shipments-container {
    margin-top: 14px;
    background: rgba(15, 23, 42, 0.2);
    border-radius: var(--border-radius);
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

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

.shipment-slot {
    background: rgba(22, 30, 43, 0.5);
    border: 1px dashed #2d3b50;
    border-radius: var(--border-radius);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s ease;
}

.shipment-slot.empty {
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    border-color: #1e2836;
}

.shipment-slot.empty .slot-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.shipment-slot.empty .slot-status {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    padding: 2px 6px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    text-transform: uppercase;
}

.shipment-slot.shipping {
    border: 1px solid rgba(59, 96, 138, 0.3);
    background: rgba(59, 96, 138, 0.03);
}

.shipment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
}

.shipment-title {
    color: var(--text-primary);
}

.shipment-time {
    color: #60a5fa;
}

/* Progress Bars */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: #0d1117;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.05s linear;
}

/* Garage Stats */
.inventory-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(156, 92, 45, 0.04);
    border: 1px solid rgba(156, 92, 45, 0.15);
    padding: 10px 14px;
    border-radius: var(--border-radius);
    margin-bottom: 12px;
}

.inventory-status .label {
    font-size: 13px;
    font-weight: 600;
}

.inventory-count {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--color-bronze-hover);
}

/* Staffing active UI */
#apprentice-active-state {
    background: rgba(42, 111, 68, 0.03);
    border: 1px solid rgba(42, 111, 68, 0.15);
    border-radius: var(--border-radius);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.apprentice-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.apprentice-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.status-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-working {
    background-color: rgba(42, 111, 68, 0.2);
    color: #4ade80;
    border: 1px solid rgba(42, 111, 68, 0.3);
}

.status-idle {
    background-color: rgba(100, 116, 139, 0.2);
    color: var(--text-secondary);
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.status-paused {
    background-color: rgba(138, 49, 49, 0.2);
    color: #f87171;
    border: 1px solid rgba(138, 49, 49, 0.3);
}

#apprentice-active-state .progress-bar {
    background: var(--color-emerald);
}

.apprentice-info {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
}

/* Operations Center */
.ops-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ops-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
}

.ops-card:hover {
    border-color: #27354a;
}

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

/* Customer Item Row */
.customer-row {
    background: rgba(15, 23, 42, 0.25);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.customer-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.customer-model {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.customer-parts {
    font-size: 10px;
    background: rgba(59, 96, 138, 0.15);
    color: #60a5fa;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 600;
}

.customer-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
}

.customer-patience-label {
    color: var(--text-secondary);
}

.customer-patience-val {
    font-family: monospace;
    font-weight: 700;
}

/* Patience Bar Colors - Muted */
.patience-high {
    background: #2563eb !important; /* Steel-blue/blue */
}
.patience-medium {
    background: var(--color-bronze) !important;
}
.patience-low {
    background: var(--color-crimson) !important;
}

/* Terminal display */
.terminal-display {
    background-color: #0b0f16;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding-bottom: 6px;
}

.metric-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.metric-label {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.metric-val {
    font-size: 13px;
    font-weight: 700;
}

.mono-val {
    font-family: 'Consolas', 'Courier New', monospace;
    color: #60a5fa;
}

.status-badge.status-ok {
    background-color: rgba(42, 111, 68, 0.15);
    color: #4ade80;
    border: 1px solid rgba(42, 111, 68, 0.25);
}

.status-badge.status-caution {
    background-color: rgba(156, 92, 45, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(156, 92, 45, 0.25);
}

.status-badge.status-danger {
    background-color: rgba(138, 49, 49, 0.15);
    color: #f87171;
    border: 1px solid rgba(138, 49, 49, 0.25);
}

/* Dealership CRM Grid Layout */
.dealership-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.kpi-row {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.kpi-card {
    flex: 1;
    padding: 12px;
    text-align: center;
    background-color: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
}

.kpi-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    display: block;
}

.kpi-value {
    font-size: 15px;
    font-weight: 800;
    display: block;
    margin-top: 2px;
}

.chart-card {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    margin-top: 8px;
}

/* SOFTPHONE WIDGET (Fixed, Bottom-Right Floating Overlay) */
.softphone-widget {
    position: fixed;
    bottom: 50px; /* Float nicely above bottom taskbar */
    right: 20px;
    width: 320px;
    z-index: 10005; /* Sit on top of taskbar (9999) and windows */
    background: #161e2b;
    border: 1px solid var(--card-border);
    border-top: 3px solid var(--color-steel-blue);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    
    /* Sliding animation values */
    transform: translateY(150%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Shown state triggered dynamically in JS */
.softphone-widget.ringing {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.phone-view {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phone-incoming-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone-ring-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    flex: 1;
    padding: 6px 10px;
    font-size: 12px;
}

.incoming-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.phone-active-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 8px;
}

.call-active-status {
    font-size: 9px;
    font-weight: 800;
    color: #4ade80;
    letter-spacing: 0.5px;
}

.active-caller-name {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
}

.phone-message-bubble {
    background: #090d16;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 10px 12px;
    display: flex;
    gap: 6px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    color: #38bdf8; /* terminal blue for CRM feel */
    min-height: 80px;
    max-height: 120px;
    overflow-y: auto;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
}

.phone-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.haggle-result {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    padding: 8px;
    border-radius: 2px;
}

.haggle-success {
    background: rgba(42, 111, 68, 0.15);
    color: #4ade80;
    border: 1px solid rgba(42, 111, 68, 0.3);
}

.haggle-fail {
    background: rgba(138, 49, 49, 0.15);
    color: #f87171;
    border: 1px solid rgba(138, 49, 49, 0.3);
}

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

/* Keyframe Animations */
@keyframes wrench-wiggle {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-10deg); }
    20% { transform: rotate(12deg); }
    30% { transform: rotate(-10deg); }
    40% { transform: rotate(8deg); }
    50% { transform: rotate(0deg); }
}

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

@keyframes slide-down {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes phone-shake {
    0%, 100% { transform: rotate(0deg) scale(1); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-12deg) scale(1.05); }
    20%, 40%, 60%, 80% { transform: rotate(12deg) scale(1.05); }
}

/* Bulk Order Form Styling */
.bulk-order-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(15, 23, 42, 0.25);
    border-radius: var(--border-radius);
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    background-color: #0b0f16;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 8px 12px;
    color: var(--text-primary);
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-steel-blue);
}

.cost-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    background: #090d14;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.bulk-shipping-container {
    margin-top: 14px;
}

/* App Store Styling */
.app-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.app-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    background: rgba(15, 23, 42, 0.25);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 10px 12px;
}

.app-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-icon {
    font-size: 24px;
}

.app-details {
    display: flex;
    flex-direction: column;
}

.app-name {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Bank App Styling */
.bank-loan-control {
    display: flex;
    flex-direction: column;
}

/* ScrapNet Exchange Styling */
.ticker-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.ticker-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #090d16;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.ticker-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticker-icon {
    font-size: 20px;
}

.ticker-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
}

.ticker-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.ticker-price {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 16px;
    font-weight: 800;
    color: #38bdf8;
}

.ticker-trend {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 11px;
    font-weight: 700;
}

.ticker-trend.up {
    color: #4ade80;
}

.ticker-trend.down {
    color: #f87171;
}

.market-alert {
    margin-top: 14px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border: 1px dashed rgba(251, 191, 36, 0.3);
    padding: 10px;
    border-radius: 2px;
    text-align: center;
    animation: fade-in 0.2s ease-out;
}

/* Store Tabs styling */
.store-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.store-tab-btn {
    flex: 1;
    background: #18212f;
    border: 1px solid #27354a;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 8px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.store-tab-btn:hover {
    color: var(--text-primary);
    background: #232f42;
}

.store-tab-btn.active {
    background: var(--color-steel-blue);
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* Store Items List styling */
.store-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

.store-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.2);
    border: 1px solid var(--card-border);
    padding: 8px 12px;
    border-radius: var(--border-radius);
}

.store-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.store-item-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.store-item-price-delay {
    font-size: 10px;
    color: var(--text-secondary);
}

.store-item-buy-btn {
    padding: 4px 10px;
    font-size: 11px;
    width: auto;
}

/* Inventory Grid styling */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.inventory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.2);
    border: 1px solid var(--card-border);
    padding: 6px 10px;
    border-radius: var(--border-radius);
    font-size: 11px;
}

.inventory-item-name {
    font-weight: 600;
    color: var(--text-secondary);
}

.inventory-item-qty {
    font-family: monospace;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 2px 6px;
    border-radius: 2px;
}

/* Checklist styling */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0;
    background: rgba(15, 23, 42, 0.15);
    padding: 8px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-secondary);
}

.checklist-item.in-stock {
    color: #4ade80;
}

.checklist-item.out-of-stock {
    color: #f87171;
}

.checklist-item .checkbox {
    font-family: monospace;
    font-weight: bold;
}

/* Safety Inspections Vehicle Bay */
.car-diagram-container {
    display: grid;
    grid-template-areas: 
        "cooling cooling"
        "engine engine"
        "electrical transmission"
        "suspension suspension"
        "brakes brakes"
        "exhaust exhaust";
    gap: 6px;
    width: 220px;
    margin: 0 auto;
    padding: 16px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 40px 40px 10px 10px; /* Looks like a car chassis */
    border: 2px solid var(--card-border);
}

.zone-area-cooling { grid-area: cooling; }
.zone-area-engine { grid-area: engine; }
.zone-area-transmission { grid-area: transmission; }
.zone-area-electrical { grid-area: electrical; }
.zone-area-suspension { grid-area: suspension; }
.zone-area-brakes { grid-area: brakes; }
.zone-area-exhaust { grid-area: exhaust; }


.car-zone {
    text-align: center;
    padding: 16px 8px;
    border-radius: 8px;
    border: 2px solid #334155;
    background: rgba(30, 41, 59, 0.5);
    font-weight: 700;
    font-size: 12px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.car-zone:hover {
    border-color: #475569;
    background: rgba(51, 65, 85, 0.8);
}

.car-zone.active-zone {
    box-shadow: 0 0 0 2px var(--accent-blue);
    border-color: var(--accent-blue);
}

.system-ok {
    border-color: #0f0;
    color: #0f0;
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.system-fault {
    border-color: #f00;
    color: #f00;
    background: rgba(255, 0, 0, 0.1);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 8px rgba(255, 0, 0, 0.4); }
    50% { box-shadow: 0 0 16px rgba(255, 0, 0, 0.8); }
    100% { box-shadow: 0 0 8px rgba(255, 0, 0, 0.4); }
}

/* Mobile Transitions */
@media (max-width: 768px) {
    .window {
        width: 100% !important;
        height: calc(100vh - 40px) !important;
        top: 0 !important;
        left: 0 !important;
        max-height: none !important;
        border-radius: 0;
        border-width: 0;
    }
    
    .desktop-shortcuts {
        display: none;
    }
    
    #taskbar {
        height: 50px;
        padding: 0 8px;
    }
    .taskbar-tabs {
        margin-left: 8px;
        gap: 4px;
    }
    .taskbar-tab {
        font-size: 10px;
        padding: 6px 8px;
    }
    .taskbar-right {
        display: none;
    }
    .start-btn {
        display: none;
    }
}

.os-watermark {
    position: absolute;
    bottom: 50px;
    right: 24px;
    font-family: monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}