body,html{
    margin:0;
    padding:0;
    overflow:hidden;
    font-family:Segoe UI, sans-serif;
}

/* =============== DESKTOP ================= */

#desktop{
    width:100vw;
    height:100vh;
    position:relative;
    background:#000;
}

#wallpaper{
    width:100%;
    height:100%;
    object-fit:cover;
    position:absolute;
    top:0;
    left:0;
    transition:opacity 0.6s ease-in-out;
}

/* Íconos de escritorio */
.desktop-icon{
    width:80px;
    text-align:center;
    color:white;
    position:absolute;
    top:40px;
    left:40px;
    cursor:pointer;
    user-select:none;
}

/* =============== TASKBAR ================= */

#taskbar{
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height:48px;
    background:rgba(20,20,20,0.85);
    display:flex;
    align-items:center;
    padding:0 8px;
    backdrop-filter:blur(8px);
}

#start-button{
    width:40px;
    height:40px;
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
}

/* =============== START MENU ================= */

#start-menu{
    position:absolute;
    bottom:48px;
    left:10px;
    width:260px;
    background:rgba(30,30,30,0.85);
    border-radius:6px;
    padding:10px;
    backdrop-filter:blur(10px);
}

.hidden{display:none;}

.start-item{
    padding:10px;
    color:white;
    background:#444;
    margin-bottom:6px;
    border-radius:4px;
    cursor:pointer;
}

/* =============== WINDOWS ================= */

.window{
    width:420px;
    height:320px;
    background:#fff;
    border-radius:6px;
    box-shadow:0 0 14px rgba(0,0,0,0.4);
    position:absolute;
    top:100px;
    left:120px;
    display:flex;
    flex-direction:column;
    resize:none;
}

.titlebar{
    background:#e5e5e5;
    padding:6px 10px;
    cursor:move;
    display:flex;
    justify-content:space-between;
    align-items:center;
    user-select:none;
}

.window-buttons button{
    margin-left:4px;
    border:none;
    background:#ddd;
    width:24px;
    height:22px;
    border-radius:3px;
    cursor:pointer;
}

.window-content{
    padding:15px;
    flex:1;
    overflow:auto;
}

/* Resizable */
.resizer{
    width:12px;
    height:12px;
    background:transparent;
    position:absolute;
    right:0;
    bottom:0;
    cursor:se-resize;
}

/* ============= SETTINGS APP ============= */

.settings-wrapper{
    display:flex;
    height:100%;
}

.settings-sidebar{
    width:160px;
    background:#f2f2f2;
    border-right:1px solid #ccc;
}

.side-item{
    padding:12px;
    cursor:pointer;
}

.side-item.active{
    background:#ddd;
}

.settings-content{
    flex:1;
    padding:18px;
    overflow:auto;
}

.wallpaper-grid{
    display:flex;
    gap:12px;
}

.wp-option{
    width:120px;
    height:70px;
    object-fit:cover;
    border-radius:4px;
    cursor:pointer;
    transition:opacity .25s;
}

.wp-option:hover{
    opacity:0.7;
}
