:root {
    --bg-color: #2e3440;
    --taskbar-bg: #1c1c1c;
    --window-bg: #3b4252;
    --window-header: #2e3440;
    --text-main: #eceff4;
    --text-light: #eceff4;
    --highlight: #88c0d0;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    background-image: url('https://images.unsplash.com/photo-1550684848-fac1c5b4e853?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    height: 100vh;
    display: flex;
    flex-direction: column;
    user-select: none;
}

#desktop {
    flex: 1;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 20px;
}

.desktop-icon {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

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

.icon-img {
    font-size: 40px;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.desktop-icon span {
    font-size: 13px;
    text-shadow: 1px 1px 2px #000;
    word-break: break-word;
}

#taskbar {
    height: 40px;
    background-color: var(--taskbar-bg);
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.5);
    z-index: 10000;
}

#start-menu {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 300px;
    background-color: var(--window-bg);
    border: 1px solid #2e3440;
    border-bottom: none;
    border-radius: 0 8px 0 0;
    box-shadow: 2px -2px 10px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    z-index: 10001;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.2s;
    transform-origin: bottom left;
}

.start-menu-hidden {
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
}

.start-menu-visible {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.start-menu-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #2e3440;
    border-bottom: 1px solid #4c566a;
}

.start-menu-items {
    padding: 10px 0;
    flex: 1;
}

.start-menu-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.start-menu-item:hover {
    background-color: #4c566a;
}

#start-button {
    padding: 5px 15px;
    background-color: var(--window-header);
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

#start-button:hover {
    background-color: var(--highlight);
    color: var(--taskbar-bg);
}

#taskbar-windows {
    flex: 1;
    display: flex;
    gap: 10px;
    margin-left: 20px;
    overflow-x: auto;
}

.taskbar-item {
    padding: 5px 15px;
    background-color: #4c566a;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 8px;
}

.taskbar-item.active {
    background-color: var(--highlight);
    color: var(--taskbar-bg);
}

#clock {
    margin-left: auto;
    font-size: 14px;
    padding-right: 10px;
}

#windows-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 40px);
    pointer-events: none;
    z-index: 10;
}

/* Notification Styles */
.notification {
    position: absolute;
    bottom: 60px;
    right: 20px;
    background-color: var(--window-bg);
    color: var(--text-main);
    border: 1px solid #4c566a;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10005;
    font-size: 13px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
    pointer-events: auto;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification i.fa-info-circle {
    color: var(--highlight);
    font-size: 18px;
}

.close-notification-btn {
    background: transparent;
    border: none;
    color: #d8dee9;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
    padding: 2px;
}

.close-notification-btn:hover {
    color: #bf616a;
}

.window {
    position: absolute;
    background-color: var(--window-bg);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    overflow: hidden;
    color: var(--text-main);
    min-width: 300px;
    min-height: 200px;
    border: 1px solid #2e3440;
}

.window.active {
    box-shadow: 0 8px 25px rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.2);
}

.window-header {
    background-color: var(--window-header);
    color: var(--text-light);
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.window-title {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.control-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.close-btn { background-color: #bf616a; }
.close-btn:hover { background-color: #d08770; }

.maximize-btn { background-color: #ebcb8b; }
.maximize-btn:hover { background-color: #f6c144; }

.window-content {
    flex: 1;
    position: relative;
    overflow: auto;
    background-color: var(--window-bg);
    display: flex;
    flex-direction: column;
}

.window iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
    background-color: #fff;
}

/* Terminal Styles */
.terminal-window {
    background-color: #222730;
    color: #d8dee9;
    font-family: 'Consolas', 'Courier New', monospace;
    padding: 10px;
    user-select: text;
}
.terminal-output {
    white-space: pre-wrap;
    word-wrap: break-word;
}
.terminal-input-line {
    display: flex;
    margin-top: 5px;
}
.terminal-prompt {
    color: #a3be8c;
    margin-right: 8px;
    font-weight: bold;
}
.terminal-input {
    background: transparent;
    border: none;
    color: #d8dee9;
    flex: 1;
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* Folder Styles */
.folder-content {
    padding: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-content: flex-start;
}

/* Text Editor */
.text-editor {
    padding: 20px;
    font-family: 'Consolas', 'Courier New', monospace;
    background: #2e3440;
    color: #eceff4;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.5;
    user-select: text;
}