:root{
  --glass: rgba(255,255,255,0.32);
  --accent: #0a84ff;
  --dock-bg: rgba(255,255,255,0.18);
  --text:#0b0b0b;
  --shadow: 0 20px 40px rgba(2,6,23,0.35);
}

*{box-sizing:border-box}
html,body{height:100%; margin:0; font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif; background:linear-gradient(180deg,#e9eef6, #dfe6ee); overflow:hidden;}
body{-webkit-font-smoothing:antialiased;}

/* Menu Bar */
.menubar{height:36px; display:flex; align-items:center; padding:0 14px; background:linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.35)); border-bottom:1px solid rgba(0,0,0,0.05); position:fixed; top:0; left:0; right:0; z-index:1000; backdrop-filter:blur(8px);}
.menubar .left{display:flex; align-items:center; gap:8px}
.traffic-dot{width:12px;height:12px;border-radius:50%}
.red{background:#ff5f57}.yellow{background:#ffbd2e}.green{background:#28c840}
.menubar .title{font-weight:600;color:var(--text); margin-left:6px;}
.menubar .spacer{flex:1;}
.search-bar input{width:200px; padding:4px 8px; border-radius:8px; border:none; outline:none; background:rgba(255,255,255,0.6); max-width:60vw;}
.status{display:flex; gap:8px; align-items:center; font-size:13px; color:rgba(0,0,0,0.7);}
.status-item{margin-left:6px;}

/* Desktop */
.desktop{position:fixed; inset:36px 0 80px 0; padding:20px; overflow:auto;}
.icon{width:92px;text-align:center;color:rgba(0,0,0,0.65);font-size:13px;margin:12px;display:inline-block;cursor:pointer;}
.icon img{width:64px;height:64px;border-radius:12px;transition:all 0.2s;}
.icon:hover img{transform:scale(1.1);}


/* Lock Screen Background */
.lock-bg {
  position: fixed;
  inset: 0;
  background: url('images/back.webp') center center / cover no-repeat;
  filter: blur(8px);
  z-index: 0;
}

/* Optional: fallback for img tag */
.lock-container img.user-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

/* Mobile adjustments */
@media (max-width:768px){
  .lock-bg {
    background-size: cover;
    background-position: center center;
  }
  .lock-container img.user-pic {
    width: 90px;
    height: 90px;
  }
}

@media (max-width:480px){
  .lock-container img.user-pic {
    width: 70px;
    height: 70px;
  }
}



/* Window System */
.window{width:680px; min-height:260px; background:var(--glass); border-radius:12px; box-shadow:var(--shadow); backdrop-filter:blur(10px); position:absolute; overflow:hidden; border:1px solid rgba(0,0,0,0.06); display:flex; flex-direction:column; transition: all 0.2s ease;}
.window.maximized{left:20px !important; top:60px !important; width:calc(100% - 40px) !important; height:calc(100% - 160px) !important;}
.winbar{height:40px; display:flex;align-items:center;padding:0 12px;gap:10px;background:linear-gradient(rgba(255,255,255,0.45), rgba(255,255,255,0.28)); cursor:move;}
.win-controls{display:flex;gap:8px}
.win-controls .dot{width:12px;height:12px;border-radius:50%; cursor:pointer;}
.win-title{flex:1;text-align:center;font-weight:600;user-select:none;}
.win-content{padding:20px;color:var(--text);flex:1;overflow:auto;}

/* Dock */
.dock{position:fixed;left:50%;transform:translateX(-50%);bottom:18px;z-index:1000;}
.dock-inner{display:flex;gap:18px;padding:10px 18px;border-radius:16px;background:var(--dock-bg);backdrop-filter:blur(8px);box-shadow:0 8px 20px rgba(2,6,23,0.12);}
.dock-inner a img{width:56px;height:56px;border-radius:12px; transition:all 0.2s;}
.dock-inner a img:hover{transform:translateY(-10px) scale(1.3);}

/* Finder content */
.finder-content{display:flex;gap:18px;align-items:flex-start;flex-wrap:wrap;}
.finder-logo{width:96px;height:96px;border-radius:12px;}
.finder-buttons{display:flex;gap:8px; margin-top:12px; flex-wrap:wrap;}
.btn{padding:8px 12px;border-radius:8px;background:rgba(255,255,255,0.6);border:1px solid rgba(0,0,0,0.04);cursor:pointer;transition:all 0.15s ease;}
.btn:hover{background:rgba(255,255,255,0.8);}

.pdf-container iframe{border:none; width:100%; height:600px; max-width:100%;}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width:1024px){
  .window{width:90% !important; left:5% !important; min-height:200px;}
  .dock-inner a img{width:48px;height:48px;}
  .icon{width:70px;font-size:12px;}
  .icon img{width:50px;height:50px;}
  .search-bar input{width:150px;}
}

@media (max-width:768px){
  .menubar{padding:0 8px;}
  .window{width:95% !important; left:2.5% !important;}
  .dock-inner{gap:12px;padding:8px 12px;}
  .dock-inner a img{width:40px;height:40px;}
  .icon{width:60px;font-size:11px;}
  .icon img{width:40px;height:40px;}
  .search-bar input{width:120px;}
}

@media (max-width:480px){
  .menubar{height:32px;}
  .search-bar input{width:100px;font-size:12px;}
  .dock-inner a img{width:36px;height:36px;}
  .icon{width:50px;font-size:10px;}
  .icon img{width:32px;height:32px;}
  .winbar{height:36px;}
  
  .pdf-container {
  width: 100%;
  max-width: 100%;
  height: 0;
  padding-bottom: 75%; /* maintains 4:3 aspect ratio */
  position: relative;
}

.pdf-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

}
