﻿*, ::after, ::before {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Liberation Sans", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background-color: #000;
    background: linear-gradient(137deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%) no-repeat fixed;
    background-size: cover;
    color: #bd2e4c;
    min-height: 100vh;
}

@media(prefers-color-scheme:dark) {
    body {
        background: linear-gradient(137deg, rgba(30, 50, 50, 1) 0%, rgba(0, 0, 0, 1) 100%) no-repeat fixed;
    }
}

@media (max-width: 1250px) {
    body { background-color: #000; }
}

a { outline: 0 !important; text-decoration: none; }

.window {
    margin: 1px auto;
    border: 1px solid #767778;
    border-radius: 6px;
    background-color: #31363b;
    display: table;
    min-width: 320px;
    overflow: hidden;
    position: relative;
}
.button-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 4px;       
    margin-bottom: 10px;
}
.window .kwin-shadow {
    box-shadow: 0 0 25px rgba(0, 0, 0, .75);
}
.message-input-area {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
}

.message-input-area textarea {
    width: 100%;
    min-height: 100px;
    background: #2a2e32;
    color: white;
    border: 1px solid #64686b;
    padding: 8px;
}

.message-input-area .button {
    align-self: flex-end; 
}
.window .window-body {
    padding: 12px 20px; 
}

.window h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 5px 0 10px 0;
    color: #fff;
}
.window .title-bar {
    background-color: #31363b;
    color: #fff;
    padding: 0 12px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #64686b;
    position: relative;
}

.window .title-bar img {
    width: 22px;
    height: 22px;
    position: absolute;
    top: 4px;
    cursor: pointer;
}

.window img.window-close     { right: 4px; }
.window img.window-maximize  { right: 26px; }
.window img.window-minimize  { right: 48px; }

.window .window-body {
    padding: 20px;
    color: #fff;
    background-color: #31363b;
    text-align: left;
}

.window h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 15px 0 10px 0;
    color: #fff;
}
.button {
    display: inline-block;
    padding: 6px 14px;
    margin:1px;
    background-color: #31363b;
    color: #fff !important;
    border: 1px solid #64686b !important;
    border-radius: 4px;
    font-size: 14px;
    transition: all .1s ease-in-out;
    cursor: pointer;
    user-select: none;
}

.button:hover {
    border-color: #93cee9 !important;
    background-color: #454a4f !important;
}

.button:active {
    transform: translate(1px, 1px);
    background-color: #2a2e32;
}

.button.active {
    background-color: #3daee9;
    border-color: #93cee9 !important;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullwidth {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.header-image { width: 100%; max-width: 700px; height: auto; }
.distro-logo { max-height: 50px; max-width: 225px; }

.progress-bar {
    position: relative;
    width: 300px;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-bar-fill {
    height: 100%;
    background-color: #00ffff;
    width: var(--blazor-load-percentage, 0%);
    transition: width 0.3s ease;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
    color: #000;
    font-weight: bold;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
    color: #333;
}