﻿*, ::after, ::before {
    box-sizing: border-box;
}

html {
    min-height: 100vh;
    background-color: #000; 
}

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;
    color: #bd2e4c;
    min-height: 100vh;
    position: relative; 
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(137deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%) no-repeat;
    background-size: cover;
}

@media (prefers-color-scheme: dark) {
    body::before {
        background: linear-gradient(137deg, rgba(30, 50, 50, 1) 0%, rgba(0, 0, 0, 1) 100%) no-repeat;
        background-size: cover;
    }

    .astro-code,
    .astro-code span {
        color: var(--shiki-dark) !important;
        background-color: var(--shiki-dark-bg) !important;
        font-style: var(--shiki-dark-font-style) !important;
        font-weight: var(--shiki-dark-font-weight) !important;
        text-decoration: var(--shiki-dark-text-decoration) !important;
    }
}
@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 .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;
    cursor: pointer;
}

.title-bar-controls {
    position: absolute;
    right: 4px;
    top: 4px;
    display: flex;
    gap: 4px;
}

.title-bar-controls button {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.title-bar-controls button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.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;
}

.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;
}


@media (prefers-color-scheme: light) {
    .window .window-body {
        background-color:#eff0f1;
        color:#000;
    }
    .button {
        background-image: linear-gradient(to bottom, #f2f2f3, #e8e9ea);
        box-shadow: 0.5px 0.5px 0.5px 0.5px rgba(35,38,39,0.1);
        color: #232627 !important;
    }
    .button.active {
        background-color: #8ccbe8 !important;
    }
}