/* Windows 95 Portfolio - Authentic Styling */

/* Color Palette */
:root {
    --win95-gray: #c0c0c0;
    --win95-dark-gray: #808080;
    --win95-darker-gray: #404040;
    --win95-light-gray: #dfdfdf;
    --win95-white: #ffffff;
    --win95-black: #000000;
    --win95-teal: #008080;
    --win95-navy: #000080;
    --win95-blue: #0000ff;
    --win95-highlight: #000080;
    --win95-highlight-text: #ffffff;
    --win95-title-gradient-start: #000080;
    --win95-title-gradient-end: #1084d0;
    --win95-desktop-bg: #008080;
}

/* Fonts */
@font-face {
    font-family: 'MS Sans Serif';
    src: local('Microsoft Sans Serif'), local('Tahoma'), local('Arial');
}

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

body {
    font-family: 'MS Sans Serif', 'Tahoma', Arial, sans-serif;
    font-size: 11px;
    overflow: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M0 0L0 13L4 9L6 14L8 13L6 8L11 8z" fill="white" stroke="black" stroke-width="0.5"/></svg>') 0 0, auto;
}

/* Boot Screen */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    font-family: 'Courier New', monospace;
}

.boot-content {
    text-align: center;
    width: 500px;
}

.boot-logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 40px;
    text-shadow: 2px 2px 0px #333;
}

.boot-messages {
    text-align: left;
    min-height: 100px;
    margin-bottom: 30px;
    font-size: 12px;
    line-height: 1.6;
}

.boot-progress-container {
    width: 100%;
    height: 20px;
    background: #000;
    border: 2px solid #444;
    margin-bottom: 20px;
    position: relative;
}

.boot-progress-bar {
    height: 100%;
    background: #0000aa;
    width: 0;
    transition: width 0.3s ease;
    box-shadow: inset 0 0 10px rgba(0, 0, 255, 0.5);
}

.boot-skip {
    font-size: 10px;
    color: #888;
    margin-top: 20px;
}

/* Desktop */
.desktop {
    width: 100vw;
    height: 100vh;
    background: var(--win95-teal);
    background-image:
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
    position: relative;
    overflow: hidden;
}

/* Desktop with clouds wallpaper option */
.desktop.clouds {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"%3E%3Cdefs%3E%3ClinearGradient id="sky" x1="0%25" y1="0%25" x2="0%25" y2="100%25"%3E%3Cstop offset="0%25" style="stop-color:%2358b8d8;stop-opacity:1" /%3E%3Cstop offset="100%25" style="stop-color:%230f8ec9;stop-opacity:1" /%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width="800" height="600" fill="url(%23sky)"/%3E%3C/svg%3E');
    background-size: cover;
}

.desktop-icons {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, 80px);
    grid-auto-rows: 90px;
    gap: 20px;
    height: calc(100vh - 48px);
    overflow-y: auto;
}

/* Desktop Icon */
.desktop-icon {
    width: 80px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    cursor: pointer;
    padding: 5px;
    user-select: none;
}

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

.desktop-icon.selected {
    background: rgba(0, 0, 128, 0.5);
}

.desktop-icon img {
    width: 32px;
    height: 32px;
    margin-bottom: 5px;
    image-rendering: pixelated;
}

.desktop-icon span {
    color: #fff;
    font-size: 11px;
    text-shadow: 1px 1px 2px #000;
    line-height: 1.2;
    word-wrap: break-word;
}

.desktop-icon.selected span {
    background: var(--win95-navy);
    color: var(--win95-white);
    padding: 0 2px;
}

/* Window Styling */
.window {
    position: absolute;
    min-width: 200px;
    min-height: 150px;
    background: var(--win95-gray);
    border-top: 2px solid var(--win95-white);
    border-left: 2px solid var(--win95-white);
    border-right: 2px solid var(--win95-black);
    border-bottom: 2px solid var(--win95-black);
    box-shadow: 1px 1px 0 var(--win95-darker-gray);
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 48px) !important;
}

.window.active {
    z-index: 100;
}

.window-title-bar {
    background: linear-gradient(to right, var(--win95-title-gradient-start), var(--win95-title-gradient-end));
    color: var(--win95-white);
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
    height: 24px;
}

.window-title-bar.inactive {
    background: var(--win95-dark-gray);
}

.window-title {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    font-size: 11px;
}

.window-title img {
    width: 16px;
    height: 16px;
}

.window-controls {
    display: flex;
    gap: 2px;
}

.window-button {
    width: 16px;
    height: 14px;
    background: var(--win95-gray);
    border-top: 1px solid var(--win95-white);
    border-left: 1px solid var(--win95-white);
    border-right: 1px solid var(--win95-black);
    border-bottom: 1px solid var(--win95-black);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
    padding: 0;
}

.window-button:active {
    border-top: 1px solid var(--win95-black);
    border-left: 1px solid var(--win95-black);
    border-right: 1px solid var(--win95-white);
    border-bottom: 1px solid var(--win95-white);
    padding-top: 1px;
    padding-left: 1px;
}

.window-button:hover {
    background: var(--win95-light-gray);
}

.window-menu-bar {
    background: var(--win95-gray);
    border-bottom: 1px solid var(--win95-white);
    display: flex;
    padding: 2px 5px;
    gap: 10px;
}

.window-menu-item {
    padding: 2px 8px;
    cursor: pointer;
    user-select: none;
}

.window-menu-item:hover {
    background: var(--win95-navy);
    color: var(--win95-white);
}

.window-content {
    flex: 1;
    overflow: auto;
    background: var(--win95-white);
    padding: 5px;
}

.window-status-bar {
    background: var(--win95-gray);
    border-top: 2px solid var(--win95-white);
    padding: 3px 5px;
    font-size: 10px;
    display: flex;
    gap: 10px;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: var(--win95-gray);
    border-top: 2px solid var(--win95-white);
    display: flex;
    align-items: center;
    padding: 2px;
    gap: 2px;
    z-index: 1000;
}

.start-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: var(--win95-gray);
    border-top: 2px solid var(--win95-white);
    border-left: 2px solid var(--win95-white);
    border-right: 2px solid var(--win95-black);
    border-bottom: 2px solid var(--win95-black);
    font-weight: bold;
    cursor: pointer;
    height: 32px;
    font-size: 13px;
}

.start-button:active,
.start-button.active {
    border-top: 2px solid var(--win95-black);
    border-left: 2px solid var(--win95-black);
    border-right: 2px solid var(--win95-white);
    border-bottom: 2px solid var(--win95-white);
    padding-top: 6px;
    padding-left: 10px;
}

.start-logo {
    width: 20px;
    height: 20px;
}

.taskbar-separator {
    width: 2px;
    height: 32px;
    background: linear-gradient(to right, var(--win95-dark-gray), var(--win95-white));
    margin: 0 2px;
}

.taskbar-windows {
    flex: 1;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    height: 32px;
}

.taskbar-window-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: var(--win95-gray);
    border-top: 2px solid var(--win95-white);
    border-left: 2px solid var(--win95-white);
    border-right: 2px solid var(--win95-black);
    border-bottom: 2px solid var(--win95-black);
    cursor: pointer;
    max-width: 160px;
    overflow: hidden;
    white-space: nowrap;
}

.taskbar-window-button.active {
    border-top: 2px solid var(--win95-black);
    border-left: 2px solid var(--win95-black);
    border-right: 2px solid var(--win95-white);
    border-bottom: 2px solid var(--win95-white);
}

.taskbar-window-button img {
    width: 16px;
    height: 16px;
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    border-top: 1px solid var(--win95-dark-gray);
    border-left: 1px solid var(--win95-dark-gray);
    border-right: 1px solid var(--win95-white);
    border-bottom: 1px solid var(--win95-white);
    height: 32px;
}

.tray-icon {
    cursor: pointer;
    font-size: 14px;
    padding: 2px;
}

.tray-icon:hover {
    background: rgba(0, 0, 0, 0.1);
}

.system-clock {
    font-size: 11px;
    padding: 2px 4px;
    min-width: 60px;
    text-align: center;
}

/* Start Menu */
.start-menu {
    position: fixed;
    bottom: 48px;
    left: 2px;
    width: 250px;
    background: var(--win95-gray);
    border-top: 2px solid var(--win95-white);
    border-left: 2px solid var(--win95-white);
    border-right: 2px solid var(--win95-black);
    border-bottom: 2px solid var(--win95-black);
    z-index: 2000;
}

.start-menu-banner {
    background: linear-gradient(to bottom, var(--win95-dark-gray), var(--win95-darker-gray));
    color: var(--win95-white);
    padding: 5px;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    float: left;
    height: 100%;
    width: 30px;
}

.start-banner-text {
    font-size: 24px;
    letter-spacing: 2px;
}

.start-menu-items {
    margin-left: 30px;
    padding: 2px;
}

.start-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.start-menu-item:hover {
    background: var(--win95-navy);
    color: var(--win95-white);
}

.start-menu-item img {
    width: 16px;
    height: 16px;
}

.start-menu-item .arrow {
    margin-left: auto;
}

.start-menu-separator {
    height: 1px;
    background: var(--win95-dark-gray);
    margin: 2px 8px;
}

.start-submenu {
    position: fixed;
    width: 200px;
    background: var(--win95-gray);
    border-top: 2px solid var(--win95-white);
    border-left: 2px solid var(--win95-white);
    border-right: 2px solid var(--win95-black);
    border-bottom: 2px solid var(--win95-black);
    padding: 2px;
    z-index: 2001;
}

/* Button Component */
.win95-button {
    background: var(--win95-gray);
    border-top: 2px solid var(--win95-white);
    border-left: 2px solid var(--win95-white);
    border-right: 2px solid var(--win95-black);
    border-bottom: 2px solid var(--win95-black);
    padding: 4px 12px;
    cursor: pointer;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    min-width: 75px;
}

.win95-button:active,
.win95-button.pressed {
    border-top: 2px solid var(--win95-black);
    border-left: 2px solid var(--win95-black);
    border-right: 2px solid var(--win95-white);
    border-bottom: 2px solid var(--win95-white);
    padding-top: 6px;
    padding-left: 14px;
}

.win95-button:disabled {
    color: var(--win95-dark-gray);
    cursor: default;
}

/* Input Fields */
.win95-input {
    background: var(--win95-white);
    border-top: 2px solid var(--win95-dark-gray);
    border-left: 2px solid var(--win95-dark-gray);
    border-right: 2px solid var(--win95-white);
    border-bottom: 2px solid var(--win95-white);
    padding: 4px;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
}

.win95-input:focus {
    outline: 1px dotted var(--win95-black);
    outline-offset: -3px;
}

/* Textarea */
.win95-textarea {
    background: var(--win95-white);
    border-top: 2px solid var(--win95-dark-gray);
    border-left: 2px solid var(--win95-dark-gray);
    border-right: 2px solid var(--win95-white);
    border-bottom: 2px solid var(--win95-white);
    padding: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    resize: none;
}

.win95-textarea:focus {
    outline: none;
}

/* Context Menu */
.context-menu {
    position: fixed;
    background: var(--win95-gray);
    border-top: 2px solid var(--win95-white);
    border-left: 2px solid var(--win95-white);
    border-right: 2px solid var(--win95-black);
    border-bottom: 2px solid var(--win95-black);
    min-width: 150px;
    padding: 2px;
    z-index: 3000;
}

.context-menu-item {
    padding: 4px 20px 4px 8px;
    cursor: pointer;
    user-select: none;
}

.context-menu-item:hover {
    background: var(--win95-navy);
    color: var(--win95-white);
}

.context-menu-separator {
    height: 1px;
    background: var(--win95-dark-gray);
    margin: 2px 4px;
}

/* Dialog Box */
.dialog-box {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dialog-icon-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.dialog-icon {
    font-size: 32px;
    min-width: 32px;
}

.dialog-message {
    flex: 1;
    padding: 5px 0;
}

.dialog-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

/* Folder View */
.folder-view {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.folder-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    cursor: pointer;
}

.folder-item:hover {
    background: var(--win95-navy);
    color: var(--win95-white);
}

.folder-item img {
    width: 16px;
    height: 16px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: var(--win95-white);
}

::-webkit-scrollbar-thumb {
    background: var(--win95-gray);
    border-top: 2px solid var(--win95-white);
    border-left: 2px solid var(--win95-white);
    border-right: 2px solid var(--win95-black);
    border-bottom: 2px solid var(--win95-black);
}

::-webkit-scrollbar-button {
    background: var(--win95-gray);
    border-top: 2px solid var(--win95-white);
    border-left: 2px solid var(--win95-white);
    border-right: 2px solid var(--win95-black);
    border-bottom: 2px solid var(--win95-black);
}

/* Selection */
::selection {
    background: var(--win95-navy);
    color: var(--win95-white);
}

/* Animations */
@keyframes windowAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.window {
    animation: windowAppear 0.15s ease-out;
}

/* Loading cursor */
body.loading,
body.loading * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6z" fill="%23000"/><path d="M8 2v4l3 3" stroke="%23000" stroke-width="1" fill="none"/></svg>') 8 8, wait !important;
}

/* Responsive - Mobile (warning removed as requested) */
@media (max-width: 768px) {
    /* Portfolio works on all devices - no warning needed */
}
