/* Import IBM Plex Mono from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

:root {
    --primary: #ff914d;       /* Your brand Orange */
    --dark: #000000;          /* True Black */
    --light: #ffffff;         /* True White */
    --bg-gray: #1a1a1a;       /* Dark charcoal for dark mode card backgrounds */
    --border: #333333;        /* Subtle dark borders */
    --warning: #ff914d;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    background-color: var(--dark);
    color: var(--light);
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #0d0d0d;      /* Deep black container background */
    padding: 30px;
    border-radius: 0px;       /* Set to 0px for a more tech/industrial mono look */
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(255, 145, 77, 0.1); /* Subtle orange glow */
}

h1, h2, h3 { 
    margin-top: 0; 
    color: var(--primary);    /* Main headers stand out in orange */
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 0px;
    background: var(--bg-gray);
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--light);
}

select, input {
    width: 100%;
    padding: 10px;
    background-color: #000000;
    color: var(--light);
    border: 1px solid var(--border);
    border-radius: 0px;
    margin-bottom: 15px;
    box-sizing: border-box;
    font-family: 'IBM Plex Mono', monospace;
}

/* Make selected options visible and fit the theme */
select option {
    background: #1a1a1a;
    color: var(--light);
}

select:focus, input:focus {
    outline: none;
    border-color: var(--primary);
}

button {
    background: var(--primary);
    color: var(--dark);       /* Dark text on orange background for high contrast */
    font-weight: bold;
    border: none;
    padding: 12px 20px;
    border-radius: 0px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase; /* Industrial aesthetic */
}

button:hover { 
    background: #e07e3c;       /* Slightly darker orange on hover */
}

.results-box {
    margin-top: 20px;
    padding: 20px;
    border-radius: 0px;
    display: none;
}

.metric {
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0;
}

.p50 { color: #ffffff; }      /* White text for median */
.p75 { color: var(--primary); } /* Highlighting the 3rd quartile in signature Orange */

.drawer {
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
}

/* Style list bullet points orange */
ul#raw-data-list {
    list-style: none;
    padding-left: 0;
}
ul#raw-data-list li::before {
    content: "■ ";
    color: var(--primary);
    font-size: 10px;
    margin-right: 8px;
}

/* --- New Additions for Logo and Footer Layout --- */

.logo-container {
    display: flex;
    justify-content: flex-start; /* Aligns logo to the top left above title */
    margin-bottom: 15px;
}

.app-logo {
    width: 80px;
    height: auto;
    border: 1px solid var(--border);
    padding: 4px;
    background: #000;
}

footer {
    margin-top: 40px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
}

footer p {
    font-size: 11px;
    color: #555;
    margin: 0;
    text-transform: uppercase; /* Maintains the industrial design language */
    letter-spacing: 1px;
}