body {
    font-family: monospace, sans-serif;
    background-color: #008080;
    color: white;
    margin: 0;
    overflow: hidden;
}

.window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #C0C0C0;
    border: 2px solid white;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
    width: max-content;
    z-index: 10; /* Обеспечиваем отображение поверх всего */
}

.title-bar {
    background-color: #000080;
    color: white;
    padding: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab; /* Меняем курсор */
}

.title-bar-text {
    font-weight: bold;
    margin-left: 0.5vw;
}

.title-bar-controls button {
    background-color: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.window-body {
    padding: 10px;
    overflow: auto; /* Добавляем прокрутку, если контент не помещается */
}

/* Desktop styles */
#desktop {
    width: 100%;
    height: 100vh;
    background-color: #008080;
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); /* Адаптивное расположение */
    grid-gap: 10px;
    padding: 10px;
}

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #C0C0C0;
    border-top: 2px solid white;
    padding: 5px;
    display: flex;
    align-items: center;
    z-index: 20; /* Над окнами */
}

.start-button {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    cursor: pointer;
}

.file-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center; /* Центрируем текст под иконкой */
    word-wrap: break-word; /* Переносим длинные названия */
    width: max-content;
}

.file-icon img {
    width: 32px;
    height: 32px;
    margin-bottom: 5px;
}

/* Window Styles */
.app-window {
    position: absolute;
    background-color: #C0C0C0;
    border: 2px solid white;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
    width: 400px;
    height: 300px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Важно для максимайза */
}

.app-window .title-bar {
    cursor: move;
}

.app-window .window-body {
    flex-grow: 1;
    overflow: auto;
}

.taskbar-button {
    background-color: #C0C0C0;
    border: 1px solid gray;
    padding: 3px 8px;
    margin-right: 5px;
    cursor: pointer;
}

.taskbar-button.active {
    font-weight: bold;
}

/* Добавляем стили для "растянутого" состояния */
.app-window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

#login-form .buttons {
    display: flex;
    justify-content: center;
    button {
        background-color: inherit;
        width: 8vw;
        margin-left: 2px;
        border-radius: 1px;
        border: 2px ridge #959595;
        cursor: pointer;
    }
}
.buttons button:hover {
    border: 2px groove #7C7C7C;
}
.buttons button:active {
    background: #a7a7a7;
    outline: 1px #656565 double;
    outline-offset: -4px;
}
    
#login-form input {
    outline: none;
    border-radius: 1px;
    border: 2px ridge #959595;
}
