/* --- Global & Body Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100vw;
    height: 100vh;
    background-image: url("Media/F1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden; /* Prevents unwanted scrollbars */
    font-family: sans-serif;
}

/* --- Welcome Box (Centered at Top) --- */
#welcome-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    
    width: 300px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.5);
    
    /* Flexbox perfectly centers text inside this box */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#welcome-containerheader{
    display: flex;
    justify-content: center;
    align-items: center;
    color: antiquewhite;
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 5px;
}

#welcome {
    color: #fff;
    font-size: 20px;
    font-family: cursive;
}

/* --- Foundation Box (Left Side) --- */
.foundation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    pointer-events: none; /* Allows clicking through empty space */
}

.foundation {
    pointer-events: auto; /* Restores clicks on the box itself */
    margin-top: 150px;
    margin-left: 20px;
    
    width: 220px;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centers clock text vertically */
}

.foundation h1 {
    font-size: 25px;
    margin-bottom: 5px;
    font-family: cursive;
}

.foundation p {
    font-size: 20px;
}

.foundation .clock-box {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

/* Force the text to position absolutely inside the center of the wheel */
/* --- Force Clock Text strictly onto One Line --- */
.foundation #clock {
    position: absolute;
    left: 8px;
    right: 0;
    width: 100%;        /* Forces the exact mathematical center of the 120px ring */
    font-size: 14px;            
    font-weight: bold;
    color: #fff;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;        
}

.clock-ring {
    transform: rotate(-90deg); /* Rotates the circle so the indicator fills up starting from the exact top */
}

.ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.ring-fill {
    fill: none;
    stroke: antiquewhite; /* Matches your accent button color theme */
    stroke-width: 8;
    stroke-linecap: round; /* Gives the speed meter needle point edge a rounded finish */
    
    /* Circumference calculation: 2 * Math.PI * radius(50) = 314.15 */
    stroke-dasharray: 314.15;
    stroke-dashoffset: 314.15; 
    transition: stroke-dashoffset 0.2s linear; /* Keeps gauge changes looking dynamic */
}

/* --- Taskbar (Centered at Bottom) --- */
/* --- Optimized Taskbar Container --- */
.taskbar {
    height: 70px; /* Increased from 50px/60px to give the larger icons breathing room */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Slightly wider spacing so they don't crowd each other */
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 9999;
}

/* --- Larger Taskbar Shortcuts --- */
.desktop-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

/* Target the images inside your taskbar shortcuts directly */
.desktop-app img {
    width: 48px;  /* Bumped up from the standard 32px */
    height: 48px; /* Bumped up from the standard 32px */
    object-fit: contain;
    border-radius: 8px; /* Gives a smooth look if your icons have backgrounds */
}

/* Hover effect to make them pop when you mouse over them */
.desktop-app:hover {
    transform: scale(1.15); /* Gives a nice premium dock magnification swell */
}

.desktop-app.selected img {
    border-bottom: 3px solid antiquewhite; /* Clear indicator for active windows */
    padding-bottom: 2px;
}

/* --- Cool OS Tooltip Popup (Shows text on hover) --- */
.desktop-app .tooltip {
    display: none;
    position: absolute;
    bottom: 55px;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.desktop-app:hover .tooltip {
    display: block; 
}

/* --- Main Window Container --- */
#notes {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 450px; 
    display: flex;
    flex-direction: column; /* Stacks header -> toolbar -> body vertically */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    overflow: hidden; 
}

/* --- Window Header --- */
#notes #notesheader {
    width: 100%;
    height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Toolbar Container --- */
#notes .notes-toolbar {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    display: flex;
    justify-content: flex-start;
    gap: 15px;
}

/* --- Buttons --- */
.notes-button {
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: antiquewhite;
    color: #000;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.notes-button:hover {
    background-color: rgb(200, 170, 135);
}

/* --- Clean Text Body Workspace --- */
#notes #notesbody {
    width: 100%;
    flex-grow: 1;               /* Automatically stretches to fill the rest of the window */
    padding: 15px;
    color: #fff;
    font-size: 14px;
    display: block;             /* Standard block layout for natural text flow */
    text-align: left;           /* Text starts at top-left */
    overflow-y: auto;           /* Scrollbar appears if text gets long */
    outline: none;              /* Removes focus ring */
}

#notes #notesheader h4{
    color: #fff;
}

/* --- Contact Form Window --- */
#contact-form-window {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 360px;
    height: 460px; 
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    overflow: hidden; 
}

#contact-form-window #contact-form-windowheader {
    width: 100%;
    height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: antiquewhite;
    font-weight: bold;
}

#contact-form-window #contact-form-body {
    width: 100%;
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* --- Form Elements --- */
#os-contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.form-group label {
    color: antiquewhite;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input, 
.form-group textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
    color: #fff;
    outline: none;
    font-family: sans-serif;
    font-size: 13px;
    transition: border 0.2s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: antiquewhite;
}

#btn-submit-form {
    background-color: antiquewhite;
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    margin-top: 5px;
    transition: background 0.2s;
}

#btn-submit-form:hover {
    background-color: rgb(200, 170, 135);
}

#form-status {
    margin-top: 15px;
    font-size: 13px;
    text-align: center;
    font-weight: bold;
}
.status-success { color: #4edf7c; }
.status-error { color: #ff4d4d; }

/* --- Projects Window Framework --- */
#projects-window {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px; 
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    overflow: hidden; 
}

#projects-window #projects-windowheader {
    width: 100%;
    height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: antiquewhite;
    font-weight: bold;
}

#projects-window #projects-body {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: row; /* Horizontal split pane layout */
    overflow: hidden;
}

/* --- Left Sidebar Menu --- */
#projects-window .projects-sidebar {
    width: 180px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

#projects-window .projects-sidebar h5 {
    color: antiquewhite;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    padding-left: 5px;
}

#projects-window #project-list-menu {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#projects-window .project-list-item {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    cursor: grab;
    transition: all 0.2s ease;
}

#projects-window .project-list-item:hover, 
#projects-window .project-list-item.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: antiquewhite;
}

/* Dragging style states */
#projects-window .project-list-item.dragging {
    opacity: 0.4;
    cursor: grabbing;
}

/* --- Right Side Content Viewer --- */
#projects-window .projects-viewer {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    color: #fff;
    text-align: left;
    display: flex;
    flex-direction: column;
}

#projects-window .viewer-placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    text-align: center;
    margin-top: 30%;
}

/* --- Fixed Project Layout Details Container --- */
#projects-window .project-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

#projects-window .project-details h3 {
    color: antiquewhite;
    font-size: 20px;
    margin: 0;
}

/* --- Banner Block Area --- */
#projects-window .project-banner-wrapper {
    width: 100%;
    margin: 4px 0;
}

#projects-window .project-view-img {
    display: block !important;    /* Overrides parent icon scaling properties */
    width: 100% !important;       /* Forces full viewport row width expansion */
    height: 140px !important;     /* Locks into clean dashboard landscape window height */
    object-fit: cover !important;  /* Crops asset preview cleanly without distortion */
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.4);
}

#projects-window .project-details p {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* --- Badges & Links Alignment --- */
#projects-window .tech-badge-container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

#projects-window .tech-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: antiquewhite;
}

#projects-window .project-links {
    margin-top: 10px;
    padding-top: 5px;
}

#projects-window .btn-project-link {
    display: inline-block;
    background-color: antiquewhite;
    color: #000;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.2s ease;
}

#projects-window .btn-project-link:hover {
    background-color: rgb(200, 170, 135);
}

/* --- Weather Window Base Matrix --- */
#weather-window {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 680px;
    height: 440px; 
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    overflow: hidden; 
}

#weather-window #weather-windowheader {
    width: 100%;
    height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: antiquewhite;
    font-weight: bold;
}

#weather-window #weather-body {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

/* --- Left Sidebar UI --- */
.weather-sidebar {
    width: 220px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.weather-sidebar h5 {
    color: antiquewhite;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.weather-search-box {
    display: flex;
    gap: 6px;
}

.weather-search-box input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 10px;
    color: #fff;
    font-size: 12px;
    outline: none;
    width: 120px;
}

.weather-search-box button, #btn-weather-search {
    background: antiquewhite;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.weather-divider {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

.weather-mode-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.weather-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.weather-toggle-btn.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: antiquewhite;
    color: antiquewhite;
}

.date-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.date-input-group label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    text-transform: uppercase;
}

.date-input-group input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px;
    color: #fff;
    font-size: 11px;
    outline: none;
}

/* --- Right Side Viewer Panel --- */
.weather-viewer {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.weather-viewer .viewer-placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    text-align: center;
    margin-top: 25%;
}

.current-weather-hero {
    text-align: left;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.current-weather-hero h2 {
    color: antiquewhite;
    font-size: 24px;
    margin-bottom: 4px;
}

.hero-temp-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

#hero-current-temp {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
}

#hero-weather-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

#results-section-heading {
    text-align: left;
    color: antiquewhite;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* --- Dynamic Data Output Grid Row Rows --- */
#weather-results-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.weather-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
}

.weather-row-date {
    font-weight: bold;
    min-width: 90px;
    text-align: left;
}

.weather-row-condition {
    color: rgba(255, 255, 255, 0.7);
    flex-grow: 1;
    text-align: left;
    padding-left: 20px;
}

.weather-row-temps {
    font-variant-numeric: tabular-nums;
    font-weight: bold;
}

/* --- Main Window Styling --- */
#music-window {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
    height: 380px; 
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    overflow: hidden; 
}

#music-window #music-windowheader {
    width: 100%;
    height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: antiquewhite;
    font-weight: bold;
}

#music-window #music-body {
    width: 100%;
    flex-grow: 1;
    background-color: #000;
}

/* --- Fixed Position Mini Music App Window Layout --- */
/* --- Fixed Position Mini Music App Window Layout (Right Side Alignment) --- */
/* --- Fixed Position Mini Music App Window Layout (Right Side) --- */
.mini-music-widget {
    pointer-events: auto;
    position: absolute;
    top: 370px;               /* Pushes it right below the 200px height clock box */
    right: 20px;              /* Standardized spacing from the right edge */
    
    width: 220px;             /* Perfectly matches the clock box width */
    height: 130px;            /* Slightly increased height to accommodate the player controls */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.mini-widget-header {
    width: 100%;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: antiquewhite;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-widget-body {
    width: 100%;
    flex-grow: 1;
    padding: 6px;
    background: transparent;
}

/* --- Native Audio Component Layout --- */
.native-player-layout {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 4px;
}

.track-meta {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 8px;
}

#mini-track-title {
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#mini-track-artist {
    font-size: 10px;
    color: antiquewhite;
    opacity: 0.8;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: antiquewhite;
}

/* --- Expanded Deck Window Visuals --- */
.expanded-deck-wrapper {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    background: linear-gradient(180deg, rgba(20,20,20,0.8) 0%, rgba(5,5,5,0.9) 100%);
    color: #fff;
}

.deck-hero {
    text-align: center;
    padding: 10px;
}

.vinyl-disc {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #222;
    border: 4px dashed antiquewhite;
    margin: 0 auto 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.vinyl-disc.spinning {
    animation: spin 3s linear infinite;
}

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

.station-tracklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.track-select-row {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 12px;
}

.track-select-row:hover, .track-select-row.active {
    background: rgba(250, 235, 215, 0.15);
    border-color: antiquewhite;
}

/* --- AI Chatbot Window Container --- */
#ai-chat-window {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 520px;
    height: 480px; 
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    overflow: hidden; 
}

#ai-chat-window #ai-chat-windowheader {
    width: 100%;
    height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: antiquewhite;
    font-weight: bold;
}

#ai-chat-window #ai-chat-body {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: transparent;
}

/* --- Model Configuration Strip --- */
.chat-config-bar {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: antiquewhite;
}

.chat-config-bar input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 3px 8px;
    color: #fff;
    outline: none;
    font-family: monospace;
}

/* --- Dialogue Log Feed Matrix --- */
#chat-messages-display {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 85%;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    word-break: break-word;
}

.chat-bubble.user-msg {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-bubble.ai-msg {
    background: rgba(250, 235, 215, 0.08);
    border: 1px solid rgba(250, 235, 215, 0.2);
    color: antiquewhite;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

/* --- Input Bar UI Layout --- */
.chat-input-row {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
}

#chat-user-textarea {
    flex-grow: 1;
    height: 38px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 13px;
    outline: none;
    resize: none;
    font-family: inherit;
}

#btn-chat-send {
    background: antiquewhite;
    color: #121212;
    border: none;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
    transition: opacity 0.2s;
}

#btn-chat-send:hover {
    opacity: 0.9;
}

/* --- Calculator Window Base Matrix --- */
#calc-window {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 380px; 
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    overflow: hidden; 
}

#calc-window #calc-windowheader {
    width: 100%;
    height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: antiquewhite;
    font-weight: bold;
    font-size: 13px;
}

#calc-window #calc-body {
    width: 100%;
    flex-grow: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

/* --- Input Screen Area --- */
#calc-screen {
    width: 100%;
    height: 45px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0 12px;
    color: #fff;
    font-size: 20px;
    text-align: right;
    outline: none;
    box-sizing: border-box;
    font-family: monospace;
}

/* --- Controls Button Grid --- */
.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-grow: 1;
}

.calc-btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.15s;
    background: rgba(255, 255, 255, 0.05);
}

.calc-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.calc-btn.utility {
    background: rgba(255, 255, 255, 0.12);
    color: antiquewhite;
}

.calc-btn.operator {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.2);
    color: #ff6b6b;
}

.calc-btn.operator:hover {
    background: rgba(255, 100, 100, 0.2);
}

.calc-btn.action {
    background: antiquewhite;
    color: #121212;
    border: none;
}

.calc-btn.action:hover {
    opacity: 0.9;
}

.calc-btn.double {
    grid-column: span 2;
}

/* --- F1 Ignition Splash Layout --- */
#f1-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0b0b0b;
    z-index: 10000; /* Forces overlay cleanly ahead of your taskbar layers */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s;
}

#f1-loader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.f1-racing-logo {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #e10600; /* Official Racing Red line designation */
    letter-spacing: 4px;
    text-shadow: 0 0 15px rgba(225, 6, 0, 0.4);
    animation: pulseGlow 1.5s infinite ease-in-out;
}

/* --- Telemetry Tachometer SVG Mechanics --- */
.telemetry-gauge-container {
    position: relative;
    width: 240px;
}

.rpm-gauge {
    width: 100%;
    height: auto;
}

.gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 6;
    stroke-linecap: round;
}

.gauge-fill {
    fill: none;
    stroke: url(#gauge-gradient); /* Optional gradient, fallbacks directly onto standard solid color */
    stroke: #e10600;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 126; /* Total arc scale measurement circumference footprint */
    stroke-dashoffset: 126; /* Starts fully hidden empty state loop */
    transition: stroke-dashoffset 0.05s linear;
}

.speedometer-digits {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: monospace;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
}

.speedometer-digits small {
    font-size: 11px;
    color: antiquewhite;
    opacity: 0.6;
}

.status-indicator {
    font-size: 11px;
    font-family: monospace;
    letter-spacing: 2px;
    color: antiquewhite;
    opacity: 0.7;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.98); opacity: 0.85; }
}

.hidden {
    display: none !important;
}
/* --- Window Close Button --- */
.win-close-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 60, 60, 0.7);
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    line-height: 22px;
    text-align: center;
    padding: 0;
    z-index: 10;
}
.win-close-btn:hover {
    background: rgba(255, 60, 60, 1);
}