:root {
    --main-bg: #2c3139;
    --main-text: #d3d3d3;
    --btn-bg: #f0b93a;
    --btn-hover: #dba832;
    --secondary-bg: #3a3f47;
    --accent: #4a4f57;
    --success: #4caf50;
    --danger: #ff5722;
    --white: #fff;
    --black: #000;

    --border-color: #3d434e;
    --border-dark: #2e3440;
    --border-yellow: #e6a822;

    --gray-dark: #495057;
    --gray-text: #6c757d;
    --gray-text-light: #d3d3d3;
    --gray-text-dark: #333;

    --shadow-main: 0 2px 4px rgba(0, 0, 0, 0.1);

    --font-main: Arial, sans-serif;
    --font-size-base: 14px;
    --font-size-h1: 2rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.2rem;
    --chat-input-bg: #252830;
    --chat-input-radius: 0px;
    --chat-input-padding: 7px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: var(--font-main);
    background-color: var(--main-bg);
    color: var(--main-text);
    font-size: 14px;
    line-height: 1.2;
    height: 100%;
    width: 100%;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5em;
}

h1 {
    font-size: var(--font-size-h1);
}
h2 {
    font-size: var(--font-size-h2);
}
h3 {
    font-size: var(--font-size-h3);
}

button,
.control-button {
    background: var(--btn-bg);
    color: var(--black);
    border: none;
    border-radius: 4px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: var(--font-size-base);
    transition: background 0.2s;
    position: relative;
    z-index: 100 !important; /* Увеличиваем z-index, чтобы точно не перекрывались аватаром */
}

button:hover,
.control-button:hover {
    background: var(--btn-hover);
}

input,
textarea,
select {
    background: var(--secondary-bg);
    color: var(--white);
    border: 1px solid var(--transparent-white-10) !important;
    border-radius: 8px !important;
    padding: 8px;
    font-size: var(--font-size-base);
}

a {
    color: var(--btn-hover);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.control-button:disabled {
    background: var(--gray-text-light);
    color: var(--gray-dark);
    opacity: 0.7;
    cursor: not-allowed;
}

#tech-output {
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto 10px auto !important;
    background: linear-gradient(135deg, #23272f 80%, #2c313a 100%) !important;
    color: #fff !important;
    padding: 18px 22px !important;
    min-height: 40px !important;
    max-height: 300px !important;
    overflow: auto !important;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace !important;
    font-size: 15px !important;
    border: 2px solid rgba(180, 200, 255, 0.25) !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    box-shadow:
        0 4px 24px 0 rgba(60, 80, 120, 0.13),
        0 1.5px 6px 0 rgba(0, 0, 0, 0.1) !important;
    display: block;
    transition: box-shadow 0.2s !important;
    scrollbar-width: thin !important;
    scrollbar-color: #6c8cff #23272f !important;
}

@media (max-width: 900px) {
    #tech-output {
        max-width: 100% !important;
        padding: 12px 8px !important;
        font-size: 13px !important;
        border-radius: 10px !important;
    }
}
@media (max-width: 600px) {
    #tech-output {
        max-width: 100% !important;
        padding: 8px 2vw !important;
        font-size: 12px !important;
        border-radius: 8px !important;
        min-height: 30px !important;
        max-height: 180px !important;
    }
}
#tech-output::-webkit-scrollbar {
    width: 8px !important;
    background: #23272f !important;
}
#tech-output::-webkit-scrollbar-thumb {
    background: #6c8cff !important;
    border-radius: 6px !important;
}
#tech-output span.prompt {
    color: #7ed6ff !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    display: block !important;
    margin-bottom: 10px !important;
}
#tech-output span.aisettings {
    color: #ffe082 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    display: block !important;
    margin-top: 8px !important;
}
