* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Tahoma, 'Segoe UI', sans-serif;
    user-select: none; 
}

body {
    overflow: hidden; 
    background: url('https://upload.wikimedia.org/wikipedia/en/thumb/7/7d/Bliss.png/800px-Bliss.png') no-repeat center center fixed;
    background-size: cover;
    background-color: #008080; 
}

#desktop {
    width: 100vw;
    height: calc(100vh - 40px); 
    position: relative;
}

.icon {
    position: absolute;
    width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 5px;
}

.icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.icon-img {
    font-size: 32px;
    margin-bottom: 5px;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
}

.icon span {
    color: white;
    text-shadow: 1px 1px 2px black;
    font-size: 11px;
    text-align: center;
}

/* Janelas */
.window {
    position: absolute;
    width: 400px;
    height: 300px;
    background-color: #ece9d8;
    border: 3px solid #0053e0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.title-bar {
    background: linear-gradient(to right, #0058e6 0%, #3a93ff 100%);
    color: white;
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    cursor: default;
}

.close-btn {
    background-color: #e04343;
    color: white;
    border: 1px solid white;
    border-radius: 3px;
    width: 20px;
    height: 20px;
    font-weight: bold;
    cursor: pointer;
    line-height: 16px;
    text-align: center;
}

.window-content {
    padding: 10px;
    flex-grow: 1;
    background-color: white;
    border: 2px solid #ece9d8;
}

/* Barra de Tarefas */
#taskbar {
    position: absolute;
    bottom: 0;
    width: 100vw;
    height: 40px;
    background: linear-gradient(to bottom, #245edb 0%, #063aba 100%);
    border-top: 1px solid #1042af;
    display: flex;
    align-items: center;
    padding: 0 5px;
}

#start-btn {
    background: linear-gradient(to bottom, #3db745 0%, #298d30 100%);
    color: white;
    border: 1px solid #1c6622;
    border-radius: 0 15px 15px 0;
    padding: 5px 15px 5px 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    box-shadow: inset 1px 1px 1px rgba(255,255,255,0.5);
}

#start-btn::before {
    content: '⊞';
    position: absolute;
    left: 8px;
    font-size: 18px;
    font-style: normal;
}

#taskbar-apps {
    display: flex;
    flex-grow: 1;
    margin-left: 10px;
    gap: 5px;
}

.taskbar-app {
    background-color: #3b7ced;
    color: white;
    border: 1px solid #1042af;
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    min-width: 100px;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: inset 1px 1px 2px rgba(255,255,255,0.4);
}

.taskbar-app.active {
    background-color: #1e52b8;
    box-shadow: inset 1px 1px 4px rgba(0,0,0,0.4);
}

#clock {
    color: white;
    font-size: 12px;
    padding: 0 15px;
    border-left: 1px solid rgba(255,255,255,0.2);
}
/* INFO  */
#context-menu {
    position: absolute;
    background-color: #ffffff;
    border: 1px solid #aca899;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.4);
    width: 200px;
    z-index: 9999; /* Fica acima de tudo */
    display: none; /* Escondido por padrão */
    flex-direction: column;
    padding: 2px;
}

#context-menu.visible {
    display: flex;
}

.menu-item {
    padding: 5px 20px;
    font-size: 11px;
    color: black;
    cursor: pointer;
}

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

.menu-separator {
    height: 1px;
    background-color: #aca899;
    margin: 3px 2px;
}

/* --- Barra de Tarefas --- */
#quick-launch {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 5px;
    padding-left: 5px;
    padding-right: 5px;
    border-left: 1px solid rgba(255,255,255,0.2);
    border-right: 1px solid rgba(0,0,0,0.2);
}

.quick-icon {
    font-size: 16px;
    cursor: pointer;
    padding: 2px;
}

.quick-icon:hover {
    background-color: rgba(255,255,255,0.2);
    border-radius: 2px;
}
/* --- Menu Iniciar --- */
#start-menu {
    position: absolute;
    bottom: 40px; 
    left: 0;
    width: 300px;
    background-color: #ffffff;
    border: 2px solid #245edb;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: none;
    flex-direction: column;
    z-index: 10000;
    box-shadow: 2px -2px 10px rgba(0,0,0,0.3);
}

#start-menu.visible { display: flex; }

.start-header {
    background: linear-gradient(to bottom, #185adb 0%, #3a93ff 100%);
    padding: 10px;
    display: flex;
    align-items: center;
    color: white;
    font-weight: bold;
}

.user-icon {
    width: 35px;
    height: 35px;
    background: #fff;
    border: 2px solid #fff;
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.start-content {
    display: flex;
    height: 300px;
}

.start-left {
    width: 50%;
    background-color: #fff;
    padding: 5px;
}

.start-right {
    width: 50%;
    background-color: #dbeafe;
    border-left: 1px solid #95b3e5;
    padding: 5px;
}

.menu-item-right {
    padding: 8px;
    font-size: 11px;
    cursor: pointer;
    color: #00156e;
}

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

.start-footer {
    background: linear-gradient(to bottom, #185adb 0%, #3a93ff 100%);
    padding: 5px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.start-footer button {
    background: orange;
    border: 1px solid white;
    color: white;
    padding: 2px 5px;
    cursor: pointer;
    font-size: 11px;
}
.resize-handle {
    position: absolute;
    background: transparent;
}

.resize-handle.right {
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    cursor: ew-resize;
}

.resize-handle.bottom {
    bottom: 0;
    left: 0;
    height: 5px;
    width: 100%;
    cursor: ns-resize;
}

.resize-handle.corner {
    right: 0;
    bottom: 0;
    width: 10px;
    height: 10px;
    cursor: nwse-resize;
}
.connect-btn-left {
    background: #1976d2 !important; /* azul */
    color: white !important;
}

.connect-btn-right {
    background: #d32f2f !important; /* vermelho */
    color: white !important;
}

.connect-btn-storage {
    background: #7b1fa2 !important; /* roxo */
    color: white !important;
}
#cables {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none; 
    z-index: 999;
}
#system-stats {
    font-size: 12px;
    padding: 5px;
    color: black;
}

.xp-bar {
    display: flex;
    gap: 2px;
    margin: 3px 0 8px;
}

.xp-block {
    width: 10px;
    height: 10px;
    background: #c0c0c0;
    border: 1px solid #808080;
}

.xp-block.active {
    background: linear-gradient(#4caf50, #2e7d32);
    border: 1px solid #1b5e20;
}
.win-buttons {
    display: flex;
    gap: 2px;
}

.win-btn {
    width: 22px;
    height: 20px;
    background: #d4d0c8;
    border: 2px solid #fff;
    border-right-color: #808080;
    border-bottom-color: #808080;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.win-btn:active {
    border: 2px solid #808080;
    border-right-color: #fff;
    border-bottom-color: #fff;
}

.toolbar {
    background: #d4d0c8;
    padding: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notepad-area {
    width: 100%;
    height: calc(100% - 70px);
    resize: none;
    box-sizing: border-box;
    padding: 6px;
    font-size: 14px;
    font-family: monospace;
}

.style-btn {
    width: 26px;
    height: 24px;
    border: 2px solid #fff;
    border-right-color: #808080;
    border-bottom-color: #808080;
    background: #d4d0c8;
    cursor: pointer;
}

.style-btn.active {
    border: 2px solid #808080;
    border-right-color: #fff;
    border-bottom-color: #fff;
}