/* Windows 95 Styles */
* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    overflow: hidden;
    user-select: none;
}

.desktop {
    background: linear-gradient(45deg, #008080, #40E0D0);
    cursor: default;
}

/* Window 95 Button Styling */
.win-button {
    background: #C0C0C0;
    border: 2px outset #C0C0C0;
    color: black;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    cursor: pointer;
    padding: 2px 6px;
}

.win-button:hover {
    background: #D0D0D0;
}

.win-button:active,
.win-button.pressed {
    border: 2px inset #C0C0C0;
    background: #A0A0A0;
}

/* Window Styling */
.window95 {
    border: 2px outset #C0C0C0;
    background: #C0C0C0;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.window95-titlebar {
    background: linear-gradient(90deg, #0000FF, #000080);
    border-bottom: 1px solid #808080;
    font-size: 11px;
    height: 20px;
    line-height: 1;
}

.window95-titlebar.bg-gray-500 {
    background: linear-gradient(90deg, #808080, #606060);
}

/* Calculator Styling */
.calculator {
    width: 200px;
}

.calculator-display {
    border: 2px inset #C0C0C0;
    height: 30px;
    display: flex;
    align-items: center;
}

.calc-button {
    background: #C0C0C0;
    border: 1px outset #C0C0C0;
    height: 25px;
    font-size: 11px;
    cursor: pointer;
}

.calc-button:active {
    border: 1px inset #C0C0C0;
}

/* Taskbar Styling */
.taskbar {
    background: #C0C0C0;
    border-top: 1px solid #DFDFDF;
}

.start-button {
    background: #C0C0C0;
    border: 1px outset #C0C0C0;
    font-weight: bold;
}

.start-button.pressed {
    border: 1px inset #C0C0C0;
}

/* Start Menu */
.start-menu {
    border: 2px outset #C0C0C0;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.start-menu-item {
    font-size: 11px;
    padding: 2px 8px;
}

.start-menu-item:hover {
    background: #316AC5;
    color: white;
}

/* Desktop Icons */
.desktop-icon {
    width: 64px;
    color: white;
    text-shadow: 1px 1px 1px black;
}

.desktop-icon:hover {
    background: rgba(0, 0, 255, 0.3);
}

/* Inset border effect */
.border-inset {
    border: 2px inset #C0C0C0;
}

/* System Tray */
.system-tray {
    background: #C0C0C0;
    border-left: 1px solid #808080;
    padding: 2px 6px;
    font-size: 11px;
}

/* Paint App */
.paint-app canvas {
    border: 2px inset #C0C0C0;
}

/* Scrollbars (WebKit) */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: #C0C0C0;
    border: 1px inset #C0C0C0;
}

::-webkit-scrollbar-thumb {
    background: #C0C0C0;
    border: 1px outset #C0C0C0;
}

::-webkit-scrollbar-thumb:hover {
    background: #D0D0D0;
}

::-webkit-scrollbar-corner {
    background: #C0C0C0;
}

/* Disable text selection on UI elements */
.taskbar, .start-menu, .window95-titlebar, .win-button {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection in text areas */
textarea, input[type="text"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Authentic Windows 95 form elements */
input, textarea, select {
    border: 2px inset #C0C0C0;
    background: white;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
}

/* Menu styling */
.menu-bar {
    background: #C0C0C0;
    border-bottom: 1px solid #808080;
    font-size: 11px;
}

.menu-item {
    padding: 4px 8px;
    cursor: pointer;
}

.menu-item:hover {
    background: #316AC5;
    color: white;
}

/* Authentic 3D effects */
.raised {
    border: 2px outset #C0C0C0;
}

.sunken {
    border: 2px inset #C0C0C0;
}

/* Window controls */
.window-controls button {
    width: 16px;
    height: 14px;
    font-size: 10px;
    font-weight: bold;
    border: 1px outset #C0C0C0;
    background: #C0C0C0;
    color: black;
    cursor: pointer;
}

.window-controls button:active {
    border: 1px inset #C0C0C0;
}

/* Classic hover effects */
button:not(:disabled):hover {
    filter: brightness(1.05);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Pixelated rendering for images */
img {
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}