﻿:root {
    --xp-blue: #0058e6;
    --xp-blue-dark: #003c95;
    --xp-blue-light: #245edb;
    --xp-beige: #fdfae8;
    --xp-green: #3c793c;
    --xp-start-green: #3c793c;
    --xp-taskbar: #245edb;
    --xp-window-bg: #ece9d8;
    --xp-border-light: #ffffff;
    --xp-border-dark: #808080;
    --text-color: #000;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: "Tahoma", "Arimo", "Arial", sans-serif;
    background: #3a6ea5 url('https://images.pexels.com/photos/775201/pexels-photo-775201.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
}

/* Desktop */
#desktop {
    flex: 1;
    position: relative;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, 100px);
    grid-template-rows: repeat(auto-fill, 100px);
    grid-auto-flow: column;
    gap: 10px;
    z-index: 1;
}

.desktop-icon {
    width: 80px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 2px black;
    border: 1px solid transparent;
}

.desktop-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.desktop-icon span {
    font-size: 11px;
}

/* Taskbar */
#taskbar {
    height: 30px;
    background: linear-gradient(to bottom, #245edb 0%, #3f8cf3 9%, #245edb 18%, #245edb 92%, #1941a5 100%);
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
}

#start-button {
    height: 100%;
    background: linear-gradient(to bottom, #388e3c 0%, #4caf50 50%, #388e3c 100%);
    border: none;
    border-radius: 0 10px 10px 0;
    padding: 0 15px;
    color: white;
    font-weight: bold;
    font-style: italic;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
}

#start-button:hover {
    filter: brightness(1.1);
}

#taskbar-apps {
    flex: 1;
    display: flex;
    padding: 0 10px;
    gap: 5px;
    overflow: hidden;
}

.taskbar-item {
    background: #3c81f3;
    border: 1px solid #1c469a;
    border-radius: 3px;
    color: white;
    padding: 2px 10px;
    font-size: 12px;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.taskbar-item.active {
    background: #1c469a;
}

#system-tray {
    padding: 0 10px;
    color: white;
    font-size: 12px;
    border-left: 1px solid #1c469a;
    height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, #0997ff 0%, #0053ee 100%);
}

/* Windows */
.window {
    position: absolute;
    min-width: 300px;
    min-height: 200px;
    background-color: var(--xp-window-bg);
    border: 3px solid var(--xp-blue);
    border-radius: 8px 8px 0 0;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    z-index: 10;
    animation: window-open 0.2s ease-out;
}

@keyframes window-open {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.window.hidden {
    display: none;
}

.title-bar {
    height: 30px;
    background: linear-gradient(to bottom, #0058e6 0%, #3f8cf3 9%, #0058e6 18%, #0058e6 92%, #003c95 100%);
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
    cursor: default;
}

.title-bar-text {
    font-size: 13px;
    text-shadow: 1px 1px 1px #000;
    pointer-events: none;
}

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

.control-btn {
    width: 21px;
    height: 21px;
    border: 1px solid white;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: inset 1px 1px 1px rgba(255,255,255,0.5);
}

.control-btn.minimize { background: linear-gradient(to bottom, #3f8cf3, #0058e6); }
.control-btn.maximize { background: linear-gradient(to bottom, #3f8cf3, #0058e6); }
.control-btn.close { 
    background: linear-gradient(to bottom, #f27251, #eb4d2d);
    font-size: 14px;
}

.window-content {
    flex: 1;
    overflow: auto;
    background-color: var(--xp-window-bg);
    padding: 10px;
    color: var(--text-color);
}

/* Explorer Style */
.explorer-layout {
    display: flex;
    height: 100%;
}

.explorer-sidebar {
    width: 180px;
    background: linear-gradient(to bottom, #7ba2e7, #6375d6);
    padding: 10px;
    color: white;
    font-size: 12px;
}

.sidebar-group {
    background: white;
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
}

.sidebar-header {
    background: linear-gradient(to right, #ffffff, #c6d3f7);
    color: #2151b6;
    padding: 5px 10px;
    font-weight: bold;
}

.sidebar-content {
    padding: 5px 10px;
    color: #2151b6;
}

.explorer-main {
    flex: 1;
    background: white;
    padding: 10px;
}

.breadcrumb {
    background: #f1f1f1;
    border-bottom: 1px solid #ccc;
    padding: 5px 10px;
    font-size: 12px;
    margin-bottom: 10px;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 20px;
}

.file-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 11px;
    cursor: pointer;
}

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

/* Tabbed Dialog */
.tabs {
    display: flex;
    gap: 2px;
    padding: 5px 5px 0 5px;
    background: #ece9d8;
}

.tab {
    padding: 5px 15px;
    background: #ece9d8;
    border: 1px solid #919b9c;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    font-size: 12px;
    cursor: pointer;
}

.tab.active {
    background: white;
    padding-bottom: 6px;
    margin-bottom: -1px;
    z-index: 1;
}

.tab-content {
    background: white;
    border: 1px solid #919b9c;
    padding: 15px;
    height: 300px;
    overflow: auto;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* XP Style Buttons */
.xp-button {
    background: linear-gradient(to bottom, #ffffff 0%, #ece9d8 100%);
    border: 1px solid #003c95;
    border-radius: 3px;
    padding: 5px 15px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.xp-button:hover {
    background: linear-gradient(to bottom, #fff 0%, #fdfae8 100%);
}

.xp-button:active {
    background: #ece9d8;
    box-shadow: inset 1px 1px 1px rgba(0,0,0,0.3);
}


/* Start Menu */
#start-menu {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 250px;
    background: white;
    border: 2px solid var(--xp-blue);
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    z-index: 2000;
}

#start-menu.hidden {
    display: none;
}

.start-menu-header {
    background: linear-gradient(to bottom, #1e90ff 0%, #0058e6 100%);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: bold;
}

.start-menu-header img {
    width: 32px;
    height: 32px;
    border: 2px solid white;
    border-radius: 3px;
}

.start-menu-content {
    padding: 5px;
}

.start-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 12px;
    color: #333;
}

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

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

.start-menu-footer {
    border-top: 1px solid #ccc;
    background: #eef2fb;
    padding: 5px;
}

/* General Layouts */
.project-detail {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project-hero {
    width: 100%;
    height: 200px;
    background: #ccc;
    object-fit: cover;
    border: 1px solid #808080;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    background: #e1e1e1;
    border: 1px solid #808080;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

/* Typography */
h1, h2, h3 { margin-top: 0; }
h2 { font-size: 18px; color: #003c95; }
h3 { font-size: 14px; }
p { font-size: 12px; line-height: 1.5; }

/* Responsive adjustments */
@media (max-width: 600px) {
    .window {
        width: 95% !important;
        height: 80% !important;
        left: 2.5% !important;
        top: 10% !important;
    }
    .explorer-sidebar {
        display: none;
    }
}