/* Windows 95 стиль - полная реализация на основе примеров */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MS Sans Serif', 'MS Serif', 'Segoe UI', sans-serif;
    font-size: 11px;
    background: #008080;
    color: #000000;
    overflow: hidden;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.desktop {
    width: 100vw;
    height: 100vh;
    position: relative;
    background: #008080;
}

/* Taskbar (Панель задач) */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: #C0C0C0;
    border-top: 2px solid #FFFFFF;
    display: flex;
    align-items: center;
    padding: 0 2px;
    z-index: 10000;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.start-button {
    height: 24px;
    padding: 0 6px 0 4px;
    background: #C0C0C0;
    border: 2px outset #C0C0C0;
    border-style: outset;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #000000;
    white-space: nowrap;
    position: relative;
}

/* Логотип Windows будет добавлен через windows95-logo.css */

.start-button:hover {
    background: #D4D0C8;
    border-color: #D4D0C8;
}

.start-button:active {
    border: 2px inset #C0C0C0;
    background: #C0C0C0;
}

.start-button:active::before {
    border: 1px inset #000000;
}

.start-icon {
    display: none; /* Используем ::before для логотипа */
}

.taskbar-tasks {
    flex: 1;
    display: flex;
    gap: 2px;
    margin: 0 4px;
    align-items: center;
}

.taskbar-item {
    padding: 2px 12px;
    background: #C0C0C0;
    border: 1px outset #C0C0C0;
    text-decoration: none;
    color: #000000;
    font-size: 11px;
    display: flex;
    align-items: center;
    cursor: pointer;
    white-space: nowrap;
    height: 22px;
}

.taskbar-item:hover {
    background: #D4D0C8;
}

.taskbar-item.active {
    background: #C0C0C0;
    border: 1px inset #C0C0C0;
    border-bottom: 1px solid #C0C0C0;
}

.taskbar-clock {
    padding: 2px 6px;
    background: #C0C0C0;
    border: 1px inset #C0C0C0;
    font-size: 11px;
    min-width: 70px;
    text-align: center;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Start Menu */
.start-menu {
    position: fixed;
    bottom: 30px;
    left: 0;
    width: 200px;
    background: #C0C0C0;
    border: 2px outset #C0C0C0;
    display: none;
    z-index: 10001;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.start-menu.active {
    display: block;
}

.start-menu-header {
    background: #000080;
    color: #FFFFFF;
    padding: 6px 8px;
    font-weight: bold;
    font-size: 11px;
    border-bottom: 1px solid #000000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.start-menu-header::before {
    content: 'Windows 95';
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 10px;
    opacity: 0.8;
}

.start-menu-items {
    padding: 2px 0;
}

.start-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    color: #000000;
    text-decoration: none;
    cursor: pointer;
    font-size: 11px;
    position: relative;
}

.start-menu-item:hover {
    background: #000080;
    color: #FFFFFF;
}

.start-menu-item::after {
    content: '▶';
    margin-left: auto;
    font-size: 8px;
    opacity: 0.6;
}

.start-menu-separator {
    height: 2px;
    background: #808080;
    margin: 2px 4px;
    border-top: 1px solid #FFFFFF;
    border-bottom: 1px solid #000000;
}

.menu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Windows */
.window {
    background: #C0C0C0;
    border: 2px outset #C0C0C0;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
}

.window-titlebar {
    background: #000080;
    color: #FFFFFF;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    font-size: 11px;
    height: 20px;
    border-bottom: 1px solid #000000;
}

.window-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.window-controls {
    display: flex;
    gap: 2px;
    margin-left: 4px;
}

.window-control {
    width: 16px;
    height: 14px;
    background: #C0C0C0;
    border: 1px outset #C0C0C0;
    color: #000000;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    font-family: 'MS Sans Serif', sans-serif;
}

.window-control:hover {
    background: #D4D0C8;
}

.window-control:active {
    border: 1px inset #C0C0C0;
    background: #A0A0A0;
}

.window-control.close {
    font-size: 12px;
    font-weight: bold;
}

.window-content {
    padding: 8px;
    background: #C0C0C0;
    min-height: 200px;
    border: 1px inset #C0C0C0;
}

/* Content Area */
.content-area {
    padding: 0;
    padding-bottom: 50px;
    min-height: 100vh;
    overflow: hidden;
    background: #008080;
    position: relative;
}

/* Buttons */
button, .button {
    background: #C0C0C0;
    border: 2px outset #C0C0C0;
    padding: 4px 12px;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    cursor: pointer;
    color: #000000;
    font-weight: normal;
}

button:hover, .button:hover {
    background: #D4D0C8;
}

button:active, .button:active {
    border: 2px inset #C0C0C0;
    background: #A0A0A0;
}

button:focus, .button:focus {
    outline: 1px dotted #000000;
    outline-offset: -2px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
    border-bottom: 2px solid #808080;
    padding-bottom: 2px;
}

.tab-button {
    background: #C0C0C0;
    border: 1px outset #C0C0C0;
    border-bottom: none;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 11px;
    position: relative;
    top: 2px;
}

.tab-button:hover {
    background: #D4D0C8;
}

.tab-button.active {
    background: #C0C0C0;
    border: 1px inset #C0C0C0;
    border-bottom: 2px solid #C0C0C0;
    margin-bottom: -2px;
    z-index: 1;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Input fields */
input, textarea, select {
    background: #FFFFFF;
    border: 2px inset #C0C0C0;
    padding: 2px 4px;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    color: #000000;
}

input:focus, textarea:focus, select:focus {
    outline: 1px dotted #000000;
    outline-offset: -2px;
}

input:disabled, textarea:disabled, select:disabled {
    background: #C0C0C0;
    color: #808080;
}

/* Scrollbar - Windows 95 стиль */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: #C0C0C0;
    border: 1px inset #C0C0C0;
}

::-webkit-scrollbar-thumb {
    background: #C0C0C0;
    border: 2px outset #C0C0C0;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
}

::-webkit-scrollbar-thumb:hover {
    background: #D4D0C8;
}

::-webkit-scrollbar-button {
    background: #C0C0C0;
    border: 1px outset #C0C0C0;
    height: 16px;
    width: 16px;
}

::-webkit-scrollbar-button:vertical:start:decrement {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8"><polygon points="4,2 2,6 6,6" fill="black"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

::-webkit-scrollbar-button:vertical:end:increment {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8"><polygon points="2,2 6,2 4,6" fill="black"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

/* Дополнительные элементы Windows 95 */
hr {
    border: none;
    border-top: 1px solid #808080;
    border-bottom: 1px solid #FFFFFF;
    margin: 4px 0;
}

/* Выделение текста */
::selection {
    background: #000080;
    color: #FFFFFF;
}

::-moz-selection {
    background: #000080;
    color: #FFFFFF;
}
