@font-face {
    font-family: 'Michroma';
    src: url('../fonts/Michroma.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Exo 2';
    src: url('../fonts/Exo2-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Exo 2';
    src: url('../fonts/Exo2-Italic-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

:root {
    --sc2-bg: #0b1019;
    --sc2-bg-light: #151b26;
    --sc2-blue-glow: #00a0ff;
    --sc2-blue-bright: #00d2ff;
    --sc2-text: #ffffff;
    --sc2-text-muted: #b0b8c4;
    --sc2-border: rgba(0, 160, 255, 0.4);
    --sc2-border-bright: rgba(0, 210, 255, 0.8);
    --sc2-red: #ff3b3b;
    --sc2-blue: #3b88ff;
    --sc2-scanline: rgba(0, 0, 0, 0.1);
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 15px rgba(0, 160, 255, 0.2); border-color: var(--sc2-border); }
    50% { box-shadow: 0 0 25px rgba(0, 160, 255, 0.4); border-color: var(--sc2-border-bright); }
    100% { box-shadow: 0 0 15px rgba(0, 160, 255, 0.2); border-color: var(--sc2-border); }
}

@keyframes text-pulse {
    0% { opacity: 0.4; text-shadow: 0 0 5px rgba(0, 160, 255, 0.2); }
    50% { opacity: 1; text-shadow: 0 0 15px rgba(0, 160, 255, 0.6); }
    100% { opacity: 0.4; text-shadow: 0 0 5px rgba(0, 160, 255, 0.2); }
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

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

html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Exo 2", sans-serif;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 100%;
    background-color: var(--sc2-bg);
    color: var(--sc2-text);
    position: relative;
    overflow-x: hidden;
}

body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
    pointer-events: none;
    z-index: 9998;
}


.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.2;
}

body.splash-page {
    background: 
        linear-gradient(rgba(11, 16, 25, 0.7), rgba(11, 16, 25, 0.9)),
        url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}


.profile-wrapper {
    display: flex;
    flex-direction: row;
    border: 1px solid var(--sc2-border);
    background-color: rgba(11, 16, 25, 0.85);
    padding: 2rem;
    position: relative;
    border-radius: 2px;
    animation: pulse-glow 8s infinite ease-in-out;
}

/* Corner Brackets */
.profile-wrapper::before,
.profile-wrapper::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid var(--sc2-blue-bright);
    pointer-events: none;
}

.profile-wrapper::before {
    top: -2px; left: -2px;
    border-right: none; border-bottom: none;
}

.profile-wrapper::after {
    bottom: -2px; right: -2px;
    border-left: none; border-top: none;
}

.hud-corner-tl { position: absolute; top: -2px; left: -2px; width: 20px; height: 20px; border-top: 2px solid var(--sc2-blue-bright); border-left: 2px solid var(--sc2-blue-bright); }
.hud-corner-tr { position: absolute; top: -2px; right: -2px; width: 20px; height: 20px; border-top: 2px solid var(--sc2-blue-bright); border-right: 2px solid var(--sc2-blue-bright); }
.hud-corner-bl { position: absolute; bottom: -2px; left: -2px; width: 20px; height: 20px; border-bottom: 2px solid var(--sc2-blue-bright); border-left: 2px solid var(--sc2-blue-bright); }
.hud-corner-br { position: absolute; bottom: -2px; right: -2px; width: 20px; height: 20px; border-bottom: 2px solid var(--sc2-blue-bright); border-right: 2px solid var(--sc2-blue-bright); }

.hex-decoration {
    position: absolute;
    top: 10%; right: -50px;
    width: 200px; height: 400px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='%2300a0ff' fill-opacity='0.15' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.91v12.68l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
    z-index: -1;
}

.tactical-label {
    font-family: "Michroma", sans-serif;
    font-size: 0.5rem;
    color: var(--sc2-blue-bright);
    opacity: 0.4;
    position: absolute;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
}

.profile-sidebar{
    padding-right: 2rem;
    margin-right: 2rem;
    border-right: 1px solid var(--sc2-border);
}


.profile-left-sidebar{
    width: 25%;
}

.profile-content {
    width: 75%;
}

.profile-sidebar h2 {
    color: var(--sc2-blue-bright);
    text-transform: uppercase;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px var(--sc2-blue-glow);
}

.profile-sidebar h3 {
    color: var(--sc2-text-muted);
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.sidebar-item {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem;
    border-left: 3px solid var(--sc2-blue-glow);
    position: relative;
}

.sidebar-item::before {
    top: 0; right: 0;
    width: 8px; height: 8px;
    border-top: 1px solid var(--sc2-blue-bright);
    border-right: 1px solid var(--sc2-blue-bright);
    opacity: 0.5;
}

.sidebar-key {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--sc2-text-muted);
    letter-spacing: 0.5px;
}

.sidebar-value {
    font-family: "Michroma", sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--sc2-text);
}

.barcode-item {
    background: rgba(0, 160, 255, 0.05);
    padding: 1rem;
    border: 1px solid var(--sc2-border);
    border-radius: 2px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.barcode-item::before {
    top: 0; left: 0;
    width: 6px; height: 6px;
    border-top: 1px solid var(--sc2-blue-bright);
    border-left: 1px solid var(--sc2-blue-bright);
    opacity: 0.8;
}

.barcode-item::after {
    content: "";
    position: absolute;
    bottom: 0; right: 0;
    width: 6px; height: 6px;
    border-bottom: 1px solid var(--sc2-blue-bright);
    border-right: 1px solid var(--sc2-blue-bright);
    opacity: 0.8;
}

.barcode-item.green-background {
    background: rgba(129, 199, 132, 0.1) !important;
    border-color: rgba(129, 199, 132, 0.4) !important;
    box-shadow: 0 0 10px rgba(129, 199, 132, 0.1) !important;
}

.barcode-item.green-background .barometer-value {
    color: #81c784 !important;
    text-shadow: 0 0 5px rgba(129, 199, 132, 0.5);
}

.barcode-item.yellow-background {
    background: rgba(255, 213, 79, 0.1) !important;
    border-color: rgba(255, 213, 79, 0.4) !important;
    box-shadow: 0 0 10px rgba(255, 213, 79, 0.1) !important;
}

.barcode-item.yellow-background .barometer-value {
    color: #ffd54f !important;
    text-shadow: 0 0 5px rgba(255, 213, 79, 0.5);
}

.barcode-item.red-background {
    background: rgba(255, 59, 59, 0.1) !important;
    border-color: rgba(255, 59, 59, 0.4) !important;
    box-shadow: 0 0 10px rgba(255, 59, 59, 0.1) !important;
}

.barcode-item.red-background .barometer-value {
    color: var(--sc2-red) !important;
    text-shadow: 0 0 5px rgba(255, 59, 59, 0.5);
}

.barcode-item.gray-background {
    background: rgba(176, 184, 196, 0.05) !important;
    border-color: var(--sc2-border) !important;
}

.barometer-key {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--sc2-text-muted);
    margin-top: 0.5rem;
}

.barometer-value {
    font-family: "Michroma", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sc2-blue-bright);
}

.barometer-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 0.5rem;
    color: var(--sc2-blue-glow);
    opacity: 0.8;
    filter: drop-shadow(0 0 2px var(--sc2-blue-glow));
    display: inline-block;
}

.barcode-item.green-background .barometer-icon {
    color: #81c784;
    filter: drop-shadow(0 0 2px rgba(129, 199, 132, 0.5));
}

.barcode-item.yellow-background .barometer-icon {
    color: #ffd54f;
    filter: drop-shadow(0 0 2px rgba(255, 213, 79, 0.5));
}

.barcode-item.red-background .barometer-icon {
    color: var(--sc2-red);
    filter: drop-shadow(0 0 2px rgba(255, 59, 59, 0.5));
}

.barcode-item.gray-background .barometer-icon {
    color: var(--sc2-text-muted);
    filter: none;
    opacity: 0.3;
}

.mmr-plot-title {
    text-align: center;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.back-link {
    color: var(--sc2-blue-bright);
    margin-right: 2rem;
    transition: all 0.2s;
}

.back-link:hover {
    color: #fff;
    transform: translateX(-5px);
    filter: drop-shadow(0 0 5px var(--sc2-blue-glow));
}

.header-titles {
    flex-grow: 1;
}

.header-titles h1 {
    font-family: "Michroma", sans-serif;
    margin: 0;
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--sc2-blue-glow);
}

.header-opponent h2 {
    font-family: "Michroma", sans-serif;
    margin: 0;
    font-size: 1.6rem;
    color: var(--sc2-blue-bright);
    letter-spacing: 2px;
    font-weight: 400;
    text-shadow: 0 0 5px var(--sc2-blue-glow);
}

.status-safe { color: #81c784 !important; text-shadow: 0 0 10px rgba(129, 199, 132, 0.4) !important; }
.status-warning { color: #ffd54f !important; text-shadow: 0 0 10px rgba(255, 213, 79, 0.4) !important; }
.status-danger { color: var(--sc2-red) !important; text-shadow: 0 0 10px rgba(255, 59, 59, 0.4) !important; }
.status-unknown { color: var(--sc2-blue-bright) !important; }

.header-race-inline {
    font-family: "Michroma", sans-serif;
    text-transform: uppercase;
    color: var(--sc2-blue-bright);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-top: 0.4rem;
    opacity: 1.0;
}

.header-opponent {
    margin-left: 2rem;
    text-align: right;
}

.section-title {
    font-family: "Michroma", sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--sc2-blue-bright);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    font-weight: 700;
    border-left: 4px solid var(--sc2-blue-bright);
    padding: 0.4rem 0.75rem;
    background: linear-gradient(90deg, rgba(0, 160, 255, 0.15), transparent);
}

.section-divider {
    height: 1px;
    background: var(--sc2-border);
    margin: 1.5rem 0;
}

.plot-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--sc2-border);
    padding: 1rem;
    border-radius: 4px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.mmr-plot {
    width: 100%;
    height: auto;
    display: block;
}

.profile-barometer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 1rem;
    gap: 1rem;
}

.barometer-item {
    width: auto;
}

.splash-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    margin-top: 7vh;
}

.splash-container h1 {
    font-family: "Michroma", sans-serif;
    font-size: 2.8rem;
    margin-bottom: 0rem;
    color: var(--sc2-blue-bright);
    text-shadow: 0 0 15px var(--sc2-blue-glow);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.splash-container p {
    font-size: 1.2rem;
    color: var(--sc2-text-muted);
    margin-top: 2rem;
    max-width: 600px;
}

.loader {
    border: 4px solid var(--sc2-border);
    border-top: 4px solid var(--sc2-blue-bright);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
    margin: 2rem auto;
    box-shadow: 0 0 15px rgba(0, 160, 255, 0.2);
}

.splash-container h2 {
    font-size: 1.5rem;
    color: var(--sc2-text-muted);
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-family: "Michroma", sans-serif;
    letter-spacing: 2px;
}

.splash-container h3 {
    font-weight: 300;
    color: var(--sc2-text-muted);
    margin-bottom: 3rem;
}

.options-box {
    position: relative;
    background-color: rgba(11, 16, 25, 0.9);
    border: 1px solid var(--sc2-border);
    padding: 3rem 4rem;
    min-width: 600px;
    max-width: 800px;
    margin: 2rem auto 0;
    border-radius: 2px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 160, 255, 0.05);
    animation: pulse-glow 8s infinite ease-in-out;
}

.options-header {
    font-family: "Michroma", sans-serif;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 2.5rem;
    position: relative;
}

.options-header::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sc2-blue-bright), transparent);
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pulsating-note {
    font-family: 'Exo 2', sans-serif;
    color: var(--sc2-blue-glow);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-top: 2.5rem;
    animation: text-pulse 2.5s infinite ease-in-out;
    text-align: center;
    font-weight: 500;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0.75rem 0;
}

.option-label {
    font-family: "Exo 2", sans-serif;
    color: var(--sc2-blue-bright);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-align: right;
    flex: 1;
}

.option-control {
    flex: 1.5;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.option-value {
    font-family: "Michroma", sans-serif;
    font-size: 1.1rem;
    color: #fff;
}

.sc2-button-beveled {
    font-family: "Michroma", sans-serif;
    background: linear-gradient(to bottom, rgba(0, 160, 255, 0.2), rgba(0, 160, 255, 0.1));
    border: 1px solid var(--sc2-blue-glow);
    color: var(--sc2-blue-bright);
    padding: 0.5rem 1.2rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
}

.sc2-button-beveled:hover {
    background: rgba(0, 160, 255, 0.3);
    color: #fff;
    box-shadow: 0 0 15px var(--sc2-blue-glow);
}

.sc2-button-beveled.orange {
    background: linear-gradient(to bottom, #8a5a00, #5c3c00);
    border-color: #ff9d00;
    color: #ffd27f;
}

.sc2-button-beveled.orange:hover {
    background: linear-gradient(to bottom, #b37500, #8a5a00);
    color: #fff;
    box-shadow: 0 0 15px #ff9d00;
}

.sc2-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--sc2-border);
    color: #fff;
    padding: 0.4rem 0.8rem;
    font-family: "Exo 2", sans-serif;
    font-size: 1rem;
    border-radius: 2px;
}

.sc2-input:focus {
    border-color: var(--sc2-blue-bright);
    outline: none;
    box-shadow: 0 0 5px var(--sc2-blue-glow);
}

.sc2-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(11, 16, 25, 0.8);
    border: 1px solid var(--sc2-border);
    color: #fff;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    font-family: "Exo 2", sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300a0ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    transition: all 0.2s;
    min-width: 160px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
}

.sc2-select:hover {
    border-color: var(--sc2-blue-bright);
    box-shadow: 0 0 10px var(--sc2-blue-glow);
    background-color: rgba(0, 160, 255, 0.1);
}

.sc2-select:focus {
    outline: none;
    border-color: var(--sc2-blue-bright);
}

.sc2-select option {
    background-color: var(--sc2-bg-light);
    color: #fff;
}

.splash-details {
    list-style: none;
    padding: 2rem;
    font-size: 1.25rem;
    background: rgba(0, 160, 255, 0.05);
    border: 1px solid var(--sc2-border);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.splash-details li {
    margin: 1rem 0;
    border-bottom: 1px solid rgba(0, 160, 255, 0.1);
    padding-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.splash-details li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.splash-details strong {
    font-weight: 500;
    color: var(--sc2-blue-bright);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-right: 0.5rem;
}

.splash-details li > span {
    font-family: "Michroma", sans-serif;
    font-size: 1.1rem;
    color: var(--sc2-text);
}

/* --- SC2-style Checkbox --- */
.sc2-checkbox-container {
    display: inline-block;
    position: relative;
    width: 20px;
    height: 20px;
    cursor: pointer;
    user-select: none;
}

.sc2-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.sc2-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--sc2-border);
    border-radius: 2px;
    transition: all 0.2s;
}

.sc2-checkbox-container:hover input ~ .sc2-checkmark {
    border-color: var(--sc2-blue-bright);
    box-shadow: 0 0 10px var(--sc2-blue-glow);
}

.sc2-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.sc2-checkbox-container input:checked ~ .sc2-checkmark:after {
    display: block;
}

.sc2-checkbox-container .sc2-checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--sc2-blue-bright);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    filter: drop-shadow(0 0 3px var(--sc2-blue-glow));
}

/* --- Pencil Button --- */
.pencil-btn {
    background: none;
    border: none;
    color: var(--sc2-blue-bright);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0.6;
    border-radius: 4px;
}

.pencil-btn:hover {
    opacity: 1;
    background: rgba(0, 160, 255, 0.1);
    filter: drop-shadow(0 0 5px var(--sc2-blue-glow));
}

.pencil-btn svg {
    width: 18px;
    height: 18px;
}

.edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--sc2-blue-bright);
    padding: 0;
    margin-left: 1rem;
    vertical-align: middle;
    transition: all 0.2s;
}

.edit-btn:hover {
    color: #fff;
    filter: drop-shadow(0 0 5px var(--sc2-blue-glow));
}

.edit-form {
    display: inline-flex;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.edit-form input {
    font-size: 1rem;
    padding: 0.25rem;
    border: 1px solid var(--sc2-border);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--sc2-text);
}

.edit-form button {
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    border: 1px solid var(--sc2-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--sc2-text);
    border-radius: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.edit-form button[type="submit"] {
    background: rgba(0, 160, 255, 0.2);
    border-color: var(--sc2-blue-glow);
}

.settings-link {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.settings-link:hover {
    color: #000;
}


.error-message {
    background-color: rgba(255, 59, 59, 0.1);
    color: var(--sc2-red);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 59, 59, 0.5);
    font-size: 1.1rem;
    text-transform: uppercase;
    text-align: center;
}

.onboarding-banner {
    background-color: rgba(255, 213, 79, 0.1);
    color: var(--sc2-text);
    padding: 1rem 1.5rem;
    border: 1px solid #ffd54f;
    border-radius: 2px;
    margin-bottom: 2rem;
    box-shadow: 0 0 15px rgba(255, 213, 79, 0.2);
    text-align: center;
    font-family: "Exo 2", sans-serif;
}

.onboarding-banner p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.onboarding-banner a {
    color: var(--sc2-blue-bright);
    text-decoration: underline;
    font-weight: 500;
}

.help-tooltip {
    text-decoration: none;
    color: var(--sc2-blue-bright);
    font-size: 0.9rem;
    margin-left: 4px;
    cursor: help;
    display: inline-block;
    vertical-align: middle;
}

.help-tooltip:hover {
    color: #fff;
    text-shadow: 0 0 5px var(--sc2-blue-glow);
}

.content {
    flex: 1 0 auto;
    padding: 2rem 2rem 4rem 2rem;
}

.app-footer {
    flex-shrink: 0;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--sc2-border);
    text-align: center;
    background: rgba(11, 16, 25, 0.9);
    backdrop-filter: blur(8px);
    position: sticky;
    bottom: 0;
    z-index: 100;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
}

.app-footer nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.app-footer a {
    font-family: "Michroma", sans-serif;
    color: var(--sc2-text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.app-footer a:hover {
    color: var(--sc2-blue-bright);
    text-shadow: 0 0 5px var(--sc2-blue-glow);
}

/* Static Page Styles */
.static-page {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.static-page h1 {
    font-family: "Michroma", sans-serif;
    color: var(--sc2-blue-bright);
    margin-bottom: 2rem;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--sc2-blue-glow);
}

.static-page h3 {
    margin-top: 2rem;
    color: var(--sc2-blue-bright);
    text-transform: uppercase;
}

.static-page ul {
    margin-bottom: 2rem;
}

.static-page .version {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--sc2-border);
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--sc2-bg-light);
    color: var(--sc2-text);
    padding: 30px;
    border-radius: 4px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 30px rgba(0, 160, 255, 0.3);
    border: 2px solid var(--sc2-blue-glow);
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-content h3 {
    margin-top: 0;
    color: var(--sc2-blue-bright);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
    text-transform: uppercase;
}

.modal-content p {
    color: var(--sc2-text-muted);
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.modal-actions {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

/* Scrollable result lists */
#profile-list,
#folder-list {
    overflow-y: auto;
    max-height: 60vh;
    margin: 0;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--sc2-blue-glow) transparent;
}

/* Optional: nicer scrollbars for Chromium/WebKit */
#profile-list::-webkit-scrollbar,
#folder-list::-webkit-scrollbar {
    width: 6px;
}
#profile-list::-webkit-scrollbar-thumb,
#folder-list::-webkit-scrollbar-thumb {
    background: var(--sc2-blue-glow);
    border-radius: 3px;
}
#profile-list::-webkit-scrollbar-thumb:hover,
#folder-list::-webkit-scrollbar-thumb:hover {
    background: var(--sc2-blue-bright);
}

.modal-actions button {
    font-family: "Michroma", sans-serif;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    border: 1px solid var(--sc2-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--sc2-text);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-transform: uppercase;
    font-weight: 500;
}

.modal-actions button:hover {
    background: rgba(0, 160, 255, 0.2);
    border-color: var(--sc2-blue-bright);
}

.modal-actions button[type="submit"] {
    background: rgba(0, 160, 255, 0.3);
    color: white;
    border-color: var(--sc2-blue-bright);
}

.modal-actions button[type="submit"]:hover {
    background: rgba(0, 160, 255, 0.5);
    box-shadow: 0 0 10px var(--sc2-blue-glow);
}

.folder-option {
    margin: 10px 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid var(--sc2-border);
    transition: background 0.2s;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.02);
}

.folder-option:hover {
    background-color: rgba(0, 160, 255, 0.1);
    border-color: var(--sc2-blue-glow);
}

.folder-option input {
    margin-right: 12px;
    transform: scale(1.2);
}

.watch-dir-path {
    font-size: 0.85rem;
    color: var(--sc2-text-muted);
    margin-top: 0.25rem;
    word-break: break-all;
    width: 100%;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.input-group input {
    flex-grow: 1;
    padding: 0.6rem;
    border: 1px solid var(--sc2-border);
    border-radius: 4px;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.3);
    color: var(--sc2-text);
}

.input-group button {
    font-family: "Michroma", sans-serif;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    border: 1px solid var(--sc2-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--sc2-text);
    border-radius: 4px;
    white-space: nowrap;
    transition: all 0.2s;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.input-group button:hover {
    background: rgba(0, 160, 255, 0.2);
    border-color: var(--sc2-blue-bright);
}
