*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Segoe UI",sans-serif;
}

body{
    overflow:hidden;
    background:linear-gradient(135deg,#141428,#1c2945,#23395d);
    color:white;
}

#desktop{
    width:100vw;
    height:100vh;
    position:relative;
    display:flex;
    flex-direction:column;
    flex-wrap:wrap;
    align-content:flex-start;
    padding:10px;
    padding-bottom:60px;
}

.icon{
    width:90px;
    margin:10px;
    text-align:center;
    cursor:pointer;
    user-select:none;
}

.icon-box{
    width:60px;
    height:60px;
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    border-radius:14px;
    background:rgba(255,255,255,.12);
    backdrop-filter:blur(12px);
    transition:.2s;
}

.icon-box:hover{
    transform:scale(1.08);
}

.icon-label{
    margin-top:6px;
    font-size:13px;
}

.window{
    position:absolute;
    width:420px;
    height:320px;
    top:120px;
    left:120px;
    display:none;
    border-radius:16px;
    background:rgba(255,255,255,.10);
    backdrop-filter:blur(18px);
    border:1px solid rgba(255,255,255,.08);
    overflow:hidden;
    resize:both;
    box-shadow:0 15px 35px rgba(0,0,0,.35);
}

.titlebar{
    height:42px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 12px;
    background:rgba(0,0,0,.25);
    cursor:move;
    font-size:14px;
}

.controls{
    display:flex;
    gap:10px;
}

.controls span{
    cursor:pointer;
    transition:.2s;
}

.controls span:hover{
    color:#6ca6ff;
}

.app-content{
    padding:16px;
    height:calc(100% - 42px);
    overflow:auto;
}

#calc{
    width:350px;
    height:460px;
}

#display{
    width:100%;
    height:70px;
    border:none;
    outline:none;
    background:rgba(0,0,0,.25);
    color:white;
    font-size:28px;
    text-align:right;
    padding:10px;
}

.grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:8px;
    padding:10px;
}

.grid button{
    height:55px;
    border:none;
    border-radius:12px;
    background:rgba(255,255,255,.12);
    color:white;
    font-size:18px;
    cursor:pointer;
    transition:.15s;
}

.grid button:hover{
    background:rgba(255,255,255,.22);
}

.grid button:last-child{
    grid-column:span 4;
    background:#d34848;
}

#paint{
    width:700px;
    height:500px;
    display:flex;
    flex-direction:column;
}

.paint-tools{
    display:flex;
    gap:8px;
    padding:10px;
}

.paint-tools button{
    padding:8px 12px;
}

#canvas{
    flex:1;
    width:100%;
    height:100%;
    display:block;
    background:transparent;
    cursor:crosshair;
}

#browser{
    width:600px;
    height:420px;
}

.browser-top{
    display:flex;
    gap:8px;
    padding:10px;
}

.browser-top input{
    flex:1;
    border:none;
    outline:none;
    padding:10px;
    border-radius:10px;
    background:white;
    color:black;
}

.browser-top button{
    width:80px;
}

.clock-body{
    height:calc(100% - 42px);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

#time{
    font-size:52px;
    font-weight:600;
}

#date{
    margin-top:10px;
    opacity:.8;
}

#terminal{
    width:520px;
    height:360px;
}

.terminal{
    padding:10px;
    height:calc(100% - 80px);
    overflow:auto;
    font-size:13px;
    background:rgba(0,0,0,.25);
}

#terminalInput{
    width:100%;
    padding:10px;
    border:none;
    outline:none;
    background:black;
    color:lime;
    font-family:monospace;
}

#files{
    width:420px;
    height:360px;
}

#calendar{
    width:420px;
    height:380px;
}

.calendar{
    padding:12px;
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:6px;
}

.calendar div{
    padding:10px;
    background:rgba(255,255,255,.08);
    text-align:center;
    border-radius:8px;
    cursor:pointer;
    transition:.2s;
}

.calendar div:hover{
    background:rgba(255,255,255,.2);
}

#settings{
    width:380px;
    height:300px;
}

#startMenu{
    position:fixed;
    bottom:70px;
    left:50%;
    transform:translateX(-50%);
    width:500px;
    height:400px;
    background:rgba(20,20,30,.95);
    border-radius:20px;
    display:none;
    padding:12px;
    z-index:9999;
}

#startMenu input{
    width:100%;
    padding:10px;
    border:none;
    outline:none;
    border-radius:10px;
    margin-bottom:10px;
}

.pinned{
    overflow:auto;
    height:330px;
}

.pinned div{
    padding:10px;
    margin:6px 0;
    background:rgba(255,255,255,.08);
    border-radius:10px;
    cursor:pointer;
    transition:.2s;
}

.pinned div:hover{
    background:rgba(255,255,255,.16);
}

#taskbar{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    height:52px;
    background:rgba(10,10,20,.85);
    backdrop-filter:blur(18px);
    display:flex;
    align-items:center;
    padding:0 14px;
    gap:12px;
}

#taskbar button{
    width:40px;
    height:40px;
    border-radius:10px;
    border:none;
    background:rgba(255,255,255,.12);
    color:white;
    cursor:pointer;
}

#taskbarApps{
    display:flex;
    gap:8px;
    flex:1;
    overflow-x:auto;
    overflow-y:hidden;
}

.taskbar-app{
    min-width:100px;
    height:40px;
    border:none;
    border-radius:10px;
    background:rgba(255,255,255,.12);
    color:white;
    cursor:pointer;
    padding:0 12px;
    flex-shrink:0;
}

.taskbar-app.active{
    background:rgba(108,166,255,.35);
}

#taskTime{
    font-size:13px;
    opacity:.8;
    white-space:nowrap;
}