*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    user-select: none;
}
body{
    height: 100vh;
    background: url('AMAR-OS.png');
    color: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
}
.state-toggle{
    display: none;
}
#desktop{
    flex: 1;
    position:relative;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.icon{
    width: 90px;
    text-align: center;
    cursor: pointer;
    height: 90px;
   padding: 25px 10px ;
   font-size: 18px;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
}
.icon:hover{
background: rgba(255,255,255,0.15);
}
.window{
    position: absolute;
    top: 80px;
    left: 150px;
    width: 320px;
    height: 220px;
    background-color: #282a36;
    border: 1px solid #44475a;
    border-radius:8px ;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    
    resize: both;
    overflow: hidden;
}

#app-notepad:checked ~ #desktop #window-notepad{
    display: flex;
}
#app-browser:checked ~ #desktop #window-browser { 
    display: flex;
 }
#app-media:checked ~ #desktop #window-media { 
    display: flex;
 }
#app-trash:checked ~ #desktop #window-trash {
    display: flex;
}
.title-bar{
    background-color: #6272a4;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius:8px 8px 0 0 ;
    cursor: grab;
}
.title-bar:active{
    cursor: grabbing;
}
.close-btn{
    background-color: #ff5555;
    color: white;
    width: 22px;
    height: 22px;
    border-radius:50% ;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}
.content{
    padding:12px ;
    flex: 1;
}
textarea{
    width: 100%;
    height:100%;
    background-color: transparent;
    color: white;
    border: none;
    outline: none;
    resize: none;
}
.media-layout { 
    justify-content: space-between;
 }
.doc-preview { 
    background: rgba(0,0,0,0.2);
    padding: 10px;
     border-radius: 6px;
      font-size: 13px;
      border-left: 3px solid #bd93f9;
     }
.doc-preview h4 { 
    margin-bottom: 5px;
     color: #bd93f9;
     }
.media-controls { 
    display: flex; 
    gap: 10px;
 }
.media-btn { 
    flex: 1;
     background: #44475a; 
     border: none; 
     color: white; 
     padding: 8px; 
     border-radius: 4px;
      cursor: pointer; 
    }
.media-btn:hover { 
    background: #6272a4;
 }
 .browser-content { 
    padding: 0; 
    display: flex;
    flex-direction: column;
}
.browser-nav{
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #191a21;
    padding:6px 10px;
    border-bottom: 1px solid #44475a;
}
#browser-url{
    flex:1;
    background: #282a36;
    border: 1px solid #44475a;
    color:#8be9fd;
    padding:5px 10px;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
}
.nav-btn{
    background:#44475e;
    border:none;
    color:white;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}
.nav-btn:hover{
    background-color: #6272a4;
}
.go-btn{
background-color: #bd93f9;
color: #191a21;
font-weight: bold;
}
.bookmarks{
    display: flex;
    gap:12px;
    background-color: #21222c;
    padding:4px 10px;
    font-size: 11px;
    border-bottom: 1px solid #333;
}
.bookmarks span{
    cursor: pointer;
    color: #f1fa8c;
}
.bookmarks span:hover{
    text-decoration: underline;
}
.url-bar { 
    background: #191a21;
     padding: 6px 10px; 
     font-size: 12px; 
     color: #8be9fd;
      border-bottom: 1px solid #44475a;
    }
.browser-frame { 
    flex: 1;
     width: 100%;
      border: none;
       background: white; 
    }
#taskbar{
    height: 45px;
    background:transparent;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 15px;
    
}
.start-btn{
    background:#e1d1fd;
    color: #1e1e2f;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: bold;
}
.taskbar-items{
    display:flex ;
    gap: 10px;
}
.task-item{
    background-color: #282a36;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.task-item:hover{
    background-color: #44475a;
}
#clock{
    font-size: 1px;
    font-weight: bold;
    font-family: monospace;
    color: #8be9fd;
    white-space:nowrap;
}
