﻿html {
    height: 100%;
    overflow: hidden; /* РЈР±РёСЂР°РµРј РѕР±С‰РёР№ СЃРєСЂРѕР»Р» СЃ html */
}
:root {
    --header-height: 60px; /* РџСЂРёРјРµСЂРЅР°СЏ РІС‹СЃРѕС‚Р° С…РµРґРµСЂР° */
    --info-block-height: 220px; /* РЈРІРµР»РёС‡РµРЅР° РІС‹СЃРѕС‚Р° info-block */
    --game-layout-max-width: 1400px;
    --gap-between-sections: 20px;
    --terminal-width: 400px;
    --page-padding: 20px;
}
*, *::before, *::after {
    box-sizing: border-box;
}
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* Р§РµСЂРЅС‹Р№ С„РѕРЅ, РєР°Рє Сѓ С‚РµСЂРјРёРЅР°Р»Р° */
    display: flex;
    flex-direction: column; /* Р­Р»РµРјРµРЅС‚С‹ Р»РѕР°РґРµСЂР° Р±СѓРґСѓС‚ СЂР°СЃРїРѕР»Р°РіР°С‚СЊСЃСЏ РїРѕ РІРµСЂС‚РёРєР°Р»Рё */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* РџРѕРІРµСЂС… РІСЃРµС… РѕСЃС‚Р°Р»СЊРЅС‹С… СЌР»РµРјРµРЅС‚РѕРІ */
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out; /* РђРЅРёРјР°С†РёСЏ СЃРєСЂС‹С‚РёСЏ */
}

#page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-icon {
    width: 100px; /* Р Р°Р·РјРµСЂ РёРєРѕРЅРєРё */
    height: 100px;
    margin-bottom: 20px; /* РћС‚СЃС‚СѓРї РѕС‚ С‚РµРєСЃС‚Р° */
    object-fit: contain;
    /* РњРѕР¶РЅРѕ РґРѕР±Р°РІРёС‚СЊ Р°РЅРёРјР°С†РёСЋ РїСѓР»СЊСЃР°С†РёРё, РµСЃР»Рё С…РѕС‡РµС‚СЃСЏ */
    animation: pulse 1.5s infinite alternate; /* РђРЅРёРјР°С†РёСЏ РїСѓР»СЊСЃР°С†РёРё */
}

.loader-text {
    color: #0f0; /* РђРєС†РµРЅС‚РЅС‹Р№ Р·РµР»РµРЅС‹Р№ С†РІРµС‚ */
    font-size: clamp(1.5em, 5vw, 2.2em); /* РђРґР°РїС‚РёРІРЅС‹Р№ СЂР°Р·РјРµСЂ С€СЂРёС„С‚Р° */
    font-weight: bold;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.6); /* РќРµР±РѕР»СЊС€Р°СЏ РЅРµРѕРЅРѕРІР°СЏ С‚РµРЅСЊ */
    animation: pulse 1.5s infinite alternate; /* РђРЅРёРјР°С†РёСЏ РїСѓР»СЊСЃР°С†РёРё */
    text-align: center; /* Р¦РµРЅС‚СЂРёСЂСѓРµРј С‚РµРєСЃС‚ */
    display: block; /* Р”РµР»Р°РµРј Р±Р»РѕС‡РЅС‹Рј СЌР»РµРјРµРЅС‚РѕРј РґР»СЏ РїСЂР°РІРёР»СЊРЅРѕРіРѕ СЂРµРЅРґРµСЂРёРЅРіР° С€РёСЂРёРЅС‹ Рё РїРµСЂРµРЅРѕСЃРѕРІ */
    max-width: 80%; /* РћРіСЂР°РЅРёС‡РёРІР°РµРј РјР°РєСЃРёРјР°Р»СЊРЅСѓСЋ С€РёСЂРёРЅСѓ РґР»СЏ РїСЂРёРЅСѓРґРёС‚РµР»СЊРЅРѕРіРѕ РїРµСЂРµРЅРѕСЃР° */
    margin: 0 auto; /* Р¦РµРЅС‚СЂРёСЂСѓРµРј СЃР°Рј Р±Р»РѕС‡РЅС‹Р№ СЌР»РµРјРµРЅС‚ */
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.05); opacity: 0.8; }
}

body {
    margin: 0;
    font-family: 'Consolas', 'Courier New', monospace;
    background-color: #282c34;
    color: #abb2bf;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
#global-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    padding: 10px var(--page-padding);
    box-shadow: 0 2px 10px rgba(0, 255, 0, 0.3);
    z-index: 1001;
    box-sizing: border-box;
    height: var(--header-height);
    display: flex;
    justify-content: center; /* Р’РѕР·РІСЂР°С‰Р°РµРј С†РµРЅС‚СЂРёСЂРѕРІР°РЅРёРµ РґР»СЏ game-panel-wrapper */
    align-items: center;
}
/* РЈРґР°Р»СЏРµРј СЌС‚Рё СЃС‚РёР»Рё, С‚Р°Рє РєР°Рє h1 С‚РµРїРµСЂСЊ РІРЅСѓС‚СЂРё .game-panel-wrapper */
/* #global-header h1 { */
/*     color: #0f0; */
/*     margin: 0; */
/*     font-size: 1.8em; */
/*     font-weight: bold; */
/*     flex-shrink: 0; */
/* } */
/* РџРµСЂРµРјРµС‰Р°РµРј СЃС‚РёР»Рё h1 РёР· global-header РІРЅСѓС‚СЂСЊ .game-panel-wrapper */
.game-panel-wrapper h1 {
    color: #0f0;
    margin: 0;
    font-size: 1.8em;
    font-weight: bold;
    flex-shrink: 0;
}

.header-icon {
    height: 40px; /* Р Р°Р·РјРµСЂ РёРєРѕРЅРєРё */
    width: 40px;  /* РЈСЃС‚Р°РЅР°РІР»РёРІР°РµРј СЂР°РІРЅСѓСЋ С€РёСЂРёРЅСѓ РґР»СЏ РєСЂСѓРіР»РѕР№ С„РѕСЂРјС‹ */
    object-fit: contain; /* Р§С‚РѕР±С‹ РёР·РѕР±СЂР°Р¶РµРЅРёРµ РЅРµ РѕР±СЂРµР·Р°Р»РѕСЃСЊ, РµСЃР»Рё РѕРЅРѕ РЅРµ РєРІР°РґСЂР°С‚РЅРѕРµ */
    margin-right: 10px; /* РћС‚СЃС‚СѓРї СЃРїСЂР°РІР° РѕС‚ РёРєРѕРЅРєРё */
    flex-shrink: 0; /* Р—Р°РїСЂРµС‰Р°РµРј СЃР¶РёРјР°С‚СЊСЃСЏ */
    border: 1px solid #0f0; /* РђРєС†РµРЅС‚РЅР°СЏ РѕР±РІРѕРґРєР° */
    border-radius: 50%; /* Р”РµР»Р°РµРј РёРєРѕРЅРєСѓ РєСЂСѓРіР»РѕР№ */
    padding: 2px; /* РќРµР±РѕР»СЊС€РѕР№ РѕС‚СЃС‚СѓРї РІРЅСѓС‚СЂРё РѕР±РІРѕРґРєРё */
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.4); /* РќРµР±РѕР»СЊС€Р°СЏ С‚РµРЅСЊ РґР»СЏ Р°РєС†РµРЅС‚Р° */
}

.header-title-group {
    display: flex;
    align-items: center;
    gap: 10px; /* РћС‚СЃС‚СѓРї РјРµР¶РґСѓ РёРєРѕРЅРєРѕР№ Рё С‚РµРєСЃС‚РѕРј */
    flex-shrink: 0;
}

.game-panel-wrapper {
    width: 100%;
    max-width: var(--game-layout-max-width);
    display: flex;
    justify-content: space-between; /* РРєРѕРЅРєР°+Р·Р°РіРѕР»РѕРІРѕРє СЃР»РµРІР°, РєРЅРѕРїРєРё СЃРїСЂР°РІР° */
    align-items: center;
    gap: 10px;
    height: 100%;
    margin: 0 auto; /* Р¦РµРЅС‚СЂРёСЂСѓРµРј wrapper */
}
#global-header .game-panel {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.info-block-wrapper {
    position: fixed;
    top: calc(var(--header-height) + var(--gap-between-sections));
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #282c34;
    padding: 0 var(--page-padding);
    box-sizing: border-box;
    height: var(--info-block-height);
    display: flex;
    justify-content: center;
    align-items: stretch;
}
.info-block {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--gap-between-sections);
    width: 100%;
    max-width: var(--game-layout-max-width); /* РћРіСЂР°РЅРёС‡РёРІР°РµРј РѕР±С‰СѓСЋ С€РёСЂРёРЅСѓ */
    height: 100%; /* Р—Р°РЅРёРјР°РµС‚ РІСЃСЋ РІС‹СЃРѕС‚Сѓ СЃРІРѕРµРіРѕ РІСЂР°РїРїРµСЂР° */
    align-items: stretch; /* РЈР±РµР¶РґР°РµРјСЃСЏ, С‡С‚Рѕ СЌР»РµРјРµРЅС‚С‹ РіСЂРёРґР° СЂР°СЃС‚СЏРіРёРІР°СЋС‚СЃСЏ РїРѕ РІС‹СЃРѕС‚Рµ */
}
.info-block .game-panel {
    height: 100%;
    min-height: 0;
}
.game-layout-wrapper {
    position: fixed;
    left: 0;
    top: calc(var(--header-height) + var(--info-block-height) + var(--gap-between-sections) * 2);
    width: 100%;
    height: calc(100vh - var(--header-height) - var(--info-block-height) - var(--gap-between-sections) * 3);
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 0 var(--page-padding) var(--gap-between-sections);
    box-sizing: border-box;
}
.game-layout {
    display: grid; /* Р’РѕР·РІСЂР°С‰Р°РµРј grid РґР»СЏ С‚СЂРµС…РєРѕР»РѕРЅРѕС‡РЅРѕРіРѕ РјР°РєРµС‚Р° */
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--gap-between-sections);
    width: 100%;
    max-width: var(--game-layout-max-width); /* РћРіСЂР°РЅРёС‡РёРІР°РµРј РѕР±С‰СѓСЋ С€РёСЂРёРЅСѓ */
    height: 100%;
    box-sizing: border-box;
}
#terminal-container {
    flex: none;
    display: flex;
    flex-direction: column;
    background-color: #000;
    border: 1px solid #333;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
    height: 100%;
    overflow: hidden;
}
#main-content-area {
    /* Р­С‚РѕС‚ Р±Р»РѕРє Р±РѕР»СЊС€Рµ РЅРµ РЅСѓР¶РµРЅ РєР°Рє РѕС‚РґРµР»СЊРЅС‹Р№ flex-РєРѕРЅС‚РµР№РЅРµСЂ РґР»СЏ РїСЂР°РІС‹С… РїР°РЅРµР»РµР№ */
    /* Р•РіРѕ СЃРѕРґРµСЂР¶РёРјРѕРµ С‚РµРїРµСЂСЊ Р±СѓРґРµС‚ РїСЂСЏРјС‹РјРё РґРѕС‡РµСЂРЅРёРјРё СЌР»РµРјРµРЅС‚Р°РјРё .game-layout */
    display: none; /* РЎРєСЂС‹РІР°РµРј РµРіРѕ */
}
#hire-fire-scroll-area {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
    flex-basis: 0;
    min-height: 0;
    overflow: hidden;
}
#projects-scroll-area {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
    flex-basis: 0;
    min-height: 0;
    overflow: hidden;
}
/* РџРµСЂРµРѕРїСЂРµРґРµР»СЏРµРј СЃС‚РёР»Рё РґР»СЏ РїР°РЅРµР»РµР№ РІРЅСѓС‚СЂРё info-block, С‡С‚РѕР±С‹ СѓР±СЂР°С‚СЊ Р»РёС€РЅРёРµ СЂР°РјРєРё */
/* Р­С‚Рѕ РїСЂР°РІРёР»Рѕ С‚РµРїРµСЂСЊ РЅРµ РЅСѓР¶РЅРѕ, С‚Р°Рє РєР°Рє СЂР°РјРєРё РґРѕР±Р°РІР»СЏСЋС‚СЃСЏ Рє .info-block .game-panel */
/* .info-block .game-panel { */
/*     border: none; */
/*     box-shadow: none; */
/* } */
/* РџР°РЅРµР»Рё, РєРѕС‚РѕСЂС‹Рµ РґРѕР»Р¶РЅС‹ Р±С‹С‚СЊ РІСЃРµРіРґР° РІРёРґРЅС‹ Рё РЅРµ СЃР¶РёРјР°С‚СЊСЃСЏ */
/* #game-stats, */
/* #active-projects-panel, */
/* #hired-employees-panel { */
/*     flex-shrink: 0; */
/* } */
/* #game-stats { */
/*     // Р”Р»СЏ game-stats РЅРµ РЅСѓР¶РЅРѕ min-height, С‚.Рє. РµРµ РІС‹СЃРѕС‚Р° Р±СѓРґРµС‚ РѕРїСЂРµРґРµР»СЏС‚СЊСЃСЏ РіСЂРёРґРѕРј */
/*     // min-height: fit-content; */
/* } */
/* #active-projects-panel, */
/* #hired-employees-panel { */
/*     // max-height: 120px; */ /* РЈРґР°Р»СЏРµРј, С‡С‚РѕР±С‹ РІС‹СЃРѕС‚Р° РѕРїСЂРµРґРµР»СЏР»Р°СЃСЊ РіСЂРёРґРѕРј */
/*     // overflow-y: auto; */ /* РЈРґР°Р»СЏРµРј, СЃРєСЂРѕР»Р» Р±СѓРґРµС‚ РІРЅСѓС‚СЂРё СЃРїРёСЃРєРѕРІ */
/* } */
/* РќРѕРІС‹Рµ РїСЂРѕРєСЂСѓС‡РёРІР°РµРјС‹Рµ СЃРµРєС†РёРё */
.scrollable-section {
    flex-grow: 1; /* Р—Р°РЅРёРјР°РµС‚ РѕСЃС‚Р°РІС€РµРµСЃСЏ РїСЂРѕСЃС‚СЂР°РЅСЃС‚РІРѕ */
    flex-basis: 0; /* РџРѕР·РІРѕР»СЏРµС‚ СЂР°РІРЅРѕРјРµСЂРЅРѕ СЂР°СЃРїСЂРµРґРµР»СЏС‚СЊ РѕСЃС‚Р°РІС€РµРµСЃСЏ РїСЂРѕСЃС‚СЂР°РЅСЃС‚РІРѕ */
    overflow-y: auto;
    min-height: 0; /* Р’Р°Р¶РЅРѕ: РїРѕР·РІРѕР»СЏРµС‚ СЌР»РµРјРµРЅС‚Сѓ flex СЃР¶РёРјР°С‚СЊСЃСЏ РЅРёР¶Рµ РµРіРѕ СЂР°Р·РјРµСЂР° СЃРѕРґРµСЂР¶РёРјРѕРіРѕ */
    padding-right: 5px; /* Р”Р»СЏ СЃРєСЂРѕР»Р»Р±Р°СЂР° */
    display: flex;
    flex-direction: column;
    gap: 15px;
}
/* РћР±С‰РёРµ СЃС‚РёР»Рё РґР»СЏ game-panel */
.game-panel {
    background-color: #000;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.game-panel h2 {
    color: #0f0;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    text-align: center;
    flex-shrink: 0; /* Р—Р°РїСЂРµС‰Р°РµРј Р·Р°РіРѕР»РѕРІРєСѓ СЃР¶РёРјР°С‚СЊСЃСЏ */
}

.stats-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    position: relative;
}

.win-info-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 0, 0.6);
    color: #0f0;
    border-radius: 50%;
    width: 29px;
    height: 28px;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.win-info-btn:focus,
.win-info-btn:hover {
    background: rgba(0, 255, 0, 0.15);
    outline: none;
}

.win-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translate(-50%, 0) scale(0.95);
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid rgba(0, 255, 0, 0.4);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    color: #b0ffb0;
    width: 240px;
    font-size: 0.9rem;
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    transform-origin: top;
    z-index: 10;
}

.win-tooltip.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
}
/* .terminal-output С‚РµРїРµСЂСЊ РІРЅСѓС‚СЂРё С‚РµСЂРјРёРЅР°Р»-РєРѕРЅС‚РµР№РЅРµСЂР° */
.terminal-output {
    flex-grow: 1;
    min-height: 0;
    padding: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.9em;
    color: #0f0;
    overflow-y: auto;
}
.terminal-input-container {
    display: flex;
    padding: 10px 15px;
    border-top: 1px solid #333;
    background-color: #1a1a1a;
    flex-shrink: 0; /* Р—Р°РїСЂРµС‰Р°РµРј СЃР¶РёРјР°С‚СЊСЃСЏ */
}
.prompt {
    color: #0f0;
    margin-right: 8px;
    font-weight: bold;
}
.terminal-input {
    background-color: transparent;
    border: none;
    color: #0f0;
    flex-grow: 1;
    outline: none;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9em;
}
.terminal-input::selection {
    background-color: #008000; /* Р¦РІРµС‚ РІС‹РґРµР»РµРЅРёСЏ */
}
/* РЎС‚РёР»Рё РґР»СЏ РЅРѕРІРѕРіРѕ РєР»Р°СЃСЃР° РїСЂРѕРєСЂСѓС‡РёРІР°РµРјРѕРіРѕ СЃРѕРґРµСЂР¶РёРјРѕРіРѕ РїР°РЅРµР»РµР№ */
.panel-content-scroll {
    flex-grow: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* РЎС‚РёР»Рё РґР»СЏ РЅРѕРІС‹С… Р±Р»РѕРєРѕРІ */
#game-stats p {
    margin: 5px 0;
    font-size: 1em;
    color: #abb2bf;
}
#game-stats span {
    color: #0f0;
    font-weight: bold;
}
#hired-employees-list,
#active-projects-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
    min-height: 0;
    overflow-y: auto;
}

.employee-item,
.active-project-item {
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.employee-item {
    align-items: flex-start;
}

.active-project-item {
    flex-direction: column;
    align-items: flex-start;
}

.employee-item .emoji {
    font-size: 1.8em;
    margin-right: 2px;
    white-space: nowrap;
}

.fire-employee-trigger {
    position: static;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #dc3545;
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    font-size: 1.1em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.fire-employee-trigger:hover {
    background: rgba(220, 53, 69, 0.4);
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
}

.employee-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
}

.employee-name {
    font-weight: 600;
    color: #fff;
}

.employee-role {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8bf18b;
}

.employee-salary {
    font-size: 0.9em;
    color: #0f0;
}

.employee-skills {
    font-size: 0.8em;
    color: #96a09f;
}

.employee-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.employee-stats-btn {
    border: 1px solid #0f0;
    background: transparent;
    color: #0f0;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.employee-stats-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.employee-stats-btn.small {
    padding: 4px 10px;
    font-size: 0.75em;
}

.project-name {
    font-weight: 600;
    color: #fff;
}

.project-progress,
.project-eta,
.project-reward {
    font-size: 0.9em;
    color: #0f0;
}

.empty-placeholder {
    text-align: center;
    color: #7c848a;
    font-size: 0.9em;
    padding: 20px 0;
}


.employee-card {
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.employee-card:hover {
    background-color: #2a2a2a;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
    transform: translateY(-2px);
}
.employee-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none; /* РћС‚РєР»СЋС‡Р°РµРј СЃРѕР±С‹С‚РёСЏ РјС‹С€Рё */
}
.employee-card h3 {
    color: #0f0;
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.employee-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.employee-type-tag {
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0f0;
    border: 1px solid #0f0;
    border-radius: 4px;
    padding: 2px 6px;
}
.employee-card p {
    margin: 0;
    font-size: 0.85em;
}
.employee-card .skills {
    font-weight: bold;
    color: #0c0;
}
/* РЎС‚РёР»Рё РґР»СЏ РєР°СЂС‚РѕС‡РµРє РїСЂРѕРµРєС‚РѕРІ */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 100%;
    overflow-y: auto;
    flex-grow: 1;
}
.project-card {
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.project-card:hover {
    background-color: #2a2a2a;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
    transform: translateY(-2px);
}
.project-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.project-card .project-icon {
    font-size: 2em;
    margin-bottom: 5px;
}
.project-card h3 {
    color: #0f0;
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.1em;
}
.project-card p {
    margin: 0;
    font-size: 0.8em;
    color: #bbb;
    overflow: hidden; /* РЎРєСЂС‹РІР°РµРј РёР·Р»РёС€РєРё */
    word-wrap: break-word; /* РџРµСЂРµРЅРѕСЃРёРј РґР»РёРЅРЅС‹Рµ СЃР»РѕРІР° */
}
.project-card .skills-req {
    font-weight: bold;
    color: #0c0;
    margin-top: 5px;
}
/* Р Р°Р·РјРµСЂС‹ РїСЂРѕРµРєС‚РѕРІ */
/* .project-card.small-project {
    min-height: 120px;
}
.project-card.medium-project {
    min-height: 150px;
}
.project-card.large-project {
    min-height: 180px;
} */
/* Р”РѕРїРѕР»РЅРёС‚РµР»СЊРЅС‹Рµ СЃС‚РёР»Рё РґР»СЏ output СЃРѕРѕР±С‰РµРЅРёР№ */
.success {
    color: #28a745; /* Р—РµР»РµРЅС‹Р№ */
}
.error {
    color: #dc3545; /* РљСЂР°СЃРЅС‹Р№ */
}
.warning {
    color: #ffc107; /* Р–РµР»С‚С‹Р№ */
}
.hidden {
    display: none !important;
}
/* РљР°СЃС‚РѕРјРёР·Р°С†РёСЏ СЃРєСЂРѕР»Р»Р±Р°СЂР° */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #282c34; /* Р¦РІРµС‚ С„РѕРЅР° С‚СЂРµРєР° */
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #0f0; /* Р¦РІРµС‚ РїРѕР»Р·СѓРЅРєР° */
    border-radius: 10px;
    border: 2px solid #282c34; /* РћС‚СЃС‚СѓРї РѕС‚ РєСЂР°СЏ С‚СЂРµРєР° */
}
::-webkit-scrollbar-thumb:hover {
    background: #0c0; /* Р¦РІРµС‚ РїРѕР»Р·СѓРЅРєР° РїСЂРё РЅР°РІРµРґРµРЅРёРё */
}
/* РЎС‚РёР»Рё РґР»СЏ РєРЅРѕРїРѕРє СѓРїСЂР°РІР»РµРЅРёСЏ */
#game-controls {
    display: flex;
    flex-direction: row; /* РљРЅРѕРїРєРё РІ СЂСЏРґ */
    gap: 10px;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
    margin-left: 0;
}
.control-btn {
    background-color: #0f0;
    color: #000;
    border: 1px solid #0a0;
    padding: 8px 12px;
    border-radius: 3px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.control-btn:hover {
    background-color: #0c0;
    transform: translateY(-1px);
}
.control-btn:active {
    background-color: #0a0;
    transform: translateY(0);
}

.control-btn.stats-modal-btn {
    background-color: #043d1c;
    border-color: #1b8c4c;
    color: #9fffbf;
}

.control-btn.stats-modal-btn:hover {
    background-color: #095a2a;
    color: #eaffe6;
}

.control-btn.next-week-btn {
    background-color: #1bd743;
    border-color: #0d912f;
    color: #031b08;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-left: auto;
    padding: 10px 18px;
    box-shadow: 0 0 12px rgba(27, 215, 67, 0.5);
}

.control-btn.next-week-btn:hover {
    background-color: #17c23c;
    border-color: #0c7f2a;
    box-shadow: 0 0 16px rgba(27, 215, 67, 0.7);
    transform: translateY(-2px);
}

.control-btn.next-week-btn:active {
    background-color: #129633;
    border-color: #0b5f21;
    transform: translateY(1px);
}
@media (max-width: 768px) {
    html,
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    body {
        align-items: stretch;
    }

    #global-header,
    .info-block-wrapper,
    .game-layout-wrapper {
        position: static;
        width: 100%;
        max-width: none;
        height: auto;
    }

    #global-header {
        padding: 10px;
    }

    .game-panel-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    #game-controls {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 8px;
    }

    .control-btn {
        flex: 1 1 calc(50% - 10px);
        min-width: 140px;
        font-size: 0.8em;
        padding: 6px 10px;
    }

    .info-block-wrapper {
        padding: var(--gap-between-sections) var(--page-padding);
    }

    .info-block {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .game-layout-wrapper {
        padding: 0 var(--page-padding) var(--gap-between-sections);
        margin-top: var(--gap-between-sections);
    }

    .game-layout {
        grid-template-columns: 1fr;
    }

    #terminal-container,
    #hire-fire-scroll-area,
    #projects-scroll-area {
        min-height: 280px;
    }

    .game-panel {
        max-height: none;
    }

}



.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

.modal-overlay.visible {
    display: flex;
}

#employee-stats-modal {
    z-index: 5000;
}

#global-stats-modal {
    z-index: 4500;
}

.modal-content {
    background-color: #0d0d0d;
    border: 1px solid #0f0;
    border-radius: 8px;
    padding: 20px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.2);
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0f0;
}

.modal-content p {
    margin-top: 0;
    margin-bottom: 20px;
    color: #d7d7d7;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-btn {
    border: 1px solid #0f0;
    background: transparent;
    color: #0f0;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-btn:hover {
    background-color: rgba(0, 255, 0, 0.1);
}

.modal-btn.danger {
    border-color: #dc3545;
    color: #ff6b6b;
}

.modal-btn.danger:hover {
    background-color: rgba(220, 53, 69, 0.15);
}

.modal-btn.secondary {
    border-color: #66ff99;
    color: #66ff99;
}

.modal-btn.secondary:hover {
    background-color: rgba(102, 255, 153, 0.12);
}

.employee-modal {
    max-width: 600px;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    color: #aaa;
    font-size: 1.4em;
    cursor: pointer;
}

.employee-modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.employee-summary-name {
    font-size: 1.4em;
    color: #fff;
    font-weight: 600;
}

.employee-summary-role {
    font-size: 0.9em;
    text-transform: uppercase;
    color: #63ff88;
    letter-spacing: 0.08em;
}

.employee-summary-salary {
    display: flex;
    gap: 12px;
    font-size: 0.9em;
    color: #9cc69c;
    flex-wrap: wrap;
    margin-top: 8px;
}

.employee-skills-line {
    margin-top: 6px;
    font-size: 0.95em;
    color: #b0ffb7;
}

.employee-mood {
    margin-top: 8px;
    font-size: 0.95em;
    color: #e3ffe0;
}

.employee-warning-line {
    margin-top: 4px;
    font-size: 0.85em;
    color: #ffd98e;
}

.employee-warning-line.warning-active {
    color: #ff9a9a;
}

.global-modal {
    max-width: 680px;
    position: relative;
}

.global-stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 60vh;
    overflow-y: auto;
}

.global-stats-item {
    border: 1px solid #2a2a2a;
    padding: 12px;
    border-radius: 6px;
    background-color: #111;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.global-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.mood-chip {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    text-transform: uppercase;
}

.mood-good {
    background-color: rgba(0, 255, 0, 0.1);
    color: #8fffa0;
}

.mood-neutral {
    background-color: rgba(255, 255, 0, 0.1);
    color: #ffe066;
}

.mood-bad {
    background-color: rgba(255, 120, 120, 0.12);
    color: #ff9a9a;
}

.global-stats-footer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.85em;
    color: #c3c3c3;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-warning {
    border-color: #ff9a9a;
    color: #ff9a9a;
}

.status-pending {
    border-color: #ffd98e;
    color: #ffd98e;
}

.status-promo {
    border-color: #8ec5ff;
    color: #8ec5ff;
}

#notifications-container {
    position: fixed;
    top: 90px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 4000;
    max-width: 320px;
}

.notification-card {
    background-color: #121212;
    border: 1px solid #2c2c2c;
    border-left: 4px solid #0f0;
    padding: 12px 14px;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    animation: slide-in 0.3s ease-out;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.notification-card h4 {
    margin: 0 0 6px;
    font-size: 0.95em;
    color: #fff;
}

.notification-card p {
    margin: 0;
    color: #d3d3d3;
    font-size: 0.85em;
}

.notification-card.success {
    border-left-color: #3ddc84;
}

.notification-card.warning {
    border-left-color: #ffc107;
}

.notification-card.error {
    border-left-color: #ff6b6b;
}

.notification-card.hide {
    opacity: 0;
    transform: translateX(20px);
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.salary-editor {
    margin-top: 10px;
}

.salary-editor-control {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 6px 0;
}

#employee-salary-input {
    width: 120px;
    padding: 6px;
    background: #111;
    border: 1px solid #0f0;
    color: #0f0;
    border-radius: 4px;
}

.salary-editor-hint {
    margin: 0;
    font-size: 0.8em;
    color: #909090;
}

.salary-error {
    margin: 0;
    color: #ff9a9a;
    font-size: 0.8em;
    min-height: 1.2em;
}

.promotion-section {
    margin-top: 10px;
    display: none;
    flex-direction: column;
    gap: 6px;
}

.promotion-section.visible {
    display: flex;
}

.employee-events h4 {
    margin: 0 0 10px;
    color: #fff;
}

.employee-events-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.employee-event-item {
    border: 1px solid #444;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.9em;
}

.employee-event-item span {
    display: inline-block;
    margin-right: 6px;
}

.employee-event-item .event-week {
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.employee-event-item .event-details {
    font-size: 0.8em;
    color: #9fb5a9;
    margin-top: 4px;
}

.employee-event-item.positive {
    border-color: #1baa63;
    color: #8df5b8;
}

.employee-event-item.negative {
    border-color: #cc4949;
    color: #ff9595;
}

.employee-event-item.neutral {
    border-color: #6c6c6c;
    color: #d0d0d0;
}

.employee-event-item.system {
    border-color: #4aa0ff;
    color: #add6ff;
}
.stats-modal-btn {
    border-color: #66ff66;
    color: #66ff66;
}

.stats-modal-btn:hover {
    background-color: rgba(102, 255, 102, 0.1);
}

