/* ==== Global Reset ==== */
:root{
  --blue1:#0a3a7a;
  --blue2:#2a84e0;
  --glass:rgba(255,255,255,0.75);
  --shadow:0 8px 28px rgba(0,0,0,.25);
  --border: rgba(255,255,255,.6);
}
*{box-sizing:border-box}
html,body{
  height:100%;
  margin:0;
  font-family:Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
}

/* ==== Login Page (old) – kept for safety if body has login-body ==== */
.login-body{
  background: radial-gradient(1000px 700px at 40% 40%,
    rgba(10,58,122,.7),
    rgba(42,132,224,.9) 55%,
    #083161 90%);
  display:grid;
  place-items:center;
}
.login-container{ width:min(420px, 92%); }
.login-card{
  background:var(--glass);
  border:1px solid var(--border);
  border-radius:16px;
  padding:28px 24px;
  box-shadow:var(--shadow);
  text-align:center;
}
.login-avatar{
  width:96px; height:96px; border-radius:50%;
  margin:0 auto 10px;
  background: linear-gradient(135deg,#2a84e0,#8cc6ff);
  box-shadow:inset 0 0 0 4px rgba(255,255,255,.6);
}
.login-name{margin:8px 0 16px 0; font-weight:600}
.login-form{display:flex; gap:10px; justify-content:center}
.login-input{
  flex:1; padding:10px 12px; border-radius:10px;
  border:1px solid #cfe3ff; outline:none;
}
.login-btn{
  background:#2a84e0;color:#fff;border:none;
  border-radius:10px;padding:10px 14px;cursor:pointer
}
.login-btn:hover{filter:brightness(0.95)}
.login-hint{font-size:.8rem; color:#224; opacity:.7; margin-top:10px}
.login-error{min-height:1.1rem; color:#b00020; margin-top:8px}

/* ==== Desktop Wallpaper ==== */
.desktop-body{overflow:hidden}
.wallpaper{
  position:fixed; inset:0;
  background: radial-gradient(1200px 900px at 40% 40%,
    rgba(0,139,255,0.6),
    rgba(0,72,179,0.9) 50%,
    #0a3a7a 100%);
}

/* ==== Desktop Grid ==== */
.desktop-grid{
  position:fixed; inset:0; padding:16px;
  display:grid;
  grid-template-columns: repeat(auto-fill, 88px);
  gap:18px;
  align-content:start;
}
.icon{
  display:flex; flex-direction:column; align-items:center;
  color:#fff; background:transparent; border:0; cursor:pointer;
}
.icon-img{
  width:56px; height:56px; border-radius:12px;
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.35);
  box-shadow:var(--shadow);
  margin-bottom:6px;
}
.icon-photos{ background-image:linear-gradient(135deg,#ffd166,#ef476f); }
.icon-designs{ background-image:linear-gradient(135deg,#06d6a0,#118ab2); }
.icon-videos{ background-image:linear-gradient(135deg,#8338ec,#3a86ff); }
.icon-music{ background-image:linear-gradient(135deg,#ff006e,#fb5607); }
.icon-about{ background-image:linear-gradient(135deg,#38b000,#70e000); }
.icon span{ font-size:.8rem; text-shadow:0 1px 2px rgba(0,0,0,.35) }

/* ==== Windows ==== */
.win.window{
  position:fixed; top:80px; left:120px;
  width:720px; height:440px;
  background:var(--glass);
  border:1px solid var(--border);
  border-radius:14px; box-shadow:var(--shadow);
  display:flex; flex-direction:column;
  overflow:hidden;
}
.hidden{ display:none !important }
.win-title{
  background:linear-gradient(180deg,
    rgba(20,110,220,.95),
    rgba(20,110,220,.75));
  color:#fff; padding:8px 10px;
  display:flex; align-items:center; justify-content:space-between;
  cursor:move; user-select:none;
}
.win-controls button{
  background: rgba(255,255,255,.25);
  border:1px solid rgba(255,255,255,.75);
  color:#fff; width:28px; height:24px;
  border-radius:8px; cursor:pointer;
}
.win-controls button + button{ margin-left:6px }
.win-body{
  flex:1; background:rgba(255,255,255,.6);
  padding:10px; overflow:auto;
}
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(160px,1fr));
  gap:10px;
}
.thumb{
  width:100%; height:120px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid #ddd;
}
.media{ width:100%; max-height:100%; background:#000; border-radius:10px }

/* ==== Taskbar ==== */
.taskbar{
  position:fixed; left:0; right:0; bottom:0; height:52px;
  display:flex; align-items:center; gap:10px;
  background:linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.4));
  border-top:1px solid rgba(255,255,255,.35);
  padding:0 10px;
}
.start-btn{
  background:linear-gradient(180deg,#28c76f,#11998e);
  color:white; border:1px solid rgba(255,255,255,.7);
  border-radius:999px; padding:6px 16px;
  box-shadow:var(--shadow); cursor:pointer;
}
.task-list{ display:flex; gap:8px; overflow-x:auto; flex:1 }
.task-list .task{
  min-width:140px; max-width:220px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  background:rgba(255,255,255,.25);
  border:1px solid rgba(255,255,255,.65);
  color:#fff; padding:6px 10px;
  border-radius:10px; cursor:pointer;
}
.clock{ color:#fff; font-size:.9rem }

/* ==== Mobile Adjustments ==== */
@media (max-width: 820px){
  .win.window{
    top:8px; left:8px; right:8px; bottom:60px;
    width:auto; height:auto;
  }
}

/* =========================
   Windows 7-style Login UI (new)
   ========================= */
.sr-only{ position:absolute !important; left:-9999px !important; width:1px; height:1px; overflow:hidden }

/* Fullscreen gradient or wallpaper */
.login7-body{ margin:0; min-height:100vh; display:grid; place-items:center; overflow:hidden; }
.login7-bg{
  position:fixed; inset:0; z-index:-1;
  /* Gradient fallback (Win7 vibe) */
  background:
    radial-gradient(1200px 900px at 30% 20%, rgba(255,255,255,.18), transparent 50%),
    linear-gradient(135deg, #5dd1ff 0%, #2a7fd6 35%, #1c6fbf 50%, #1fa2a0 72%, #86d47c 100%);
  filter: saturate(115%) brightness(1.05);
  /* Optional wallpaper if present */
  background-image:
    radial-gradient(1200px 900px at 30% 20%, rgba(255,255,255,.18), transparent 50%),
    url("../assets/login_wallpaper.jpg");
  background-size: cover, cover;
  background-position: center, center;
}

/* Centered panel */
.login7-panel{
  width:min(560px, 92vw);
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  gap:14px;
  padding:24px 16px 18px;
  text-align:center;
  color:#eaf6ff;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}

/* Avatar frame with glass glow */
.login7-avatar{
  position:relative;
  width:160px; height:160px; border-radius:24px;
  padding:6px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.65));
  border:1px solid rgba(255,255,255,.85);
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,.6),
    0 12px 40px rgba(0,0,0,.35);
}
.login7-avatar img{
  width:100%; height:100%; object-fit:cover; border-radius:18px; display:block;
}
.login7-avatar-glow{
  content:""; position:absolute; inset:-10px; border-radius:30px; pointer-events:none;
  box-shadow: 0 0 60px 20px rgba(255,255,255,.25);
}

/* “Welcome” text */
.login7-name{ font-size:2.2rem; font-weight:600; margin:2px 0 6px 0; }

/* Form row */
.login7-form{ display:flex; align-items:center; gap:10px; margin-top:2px; }
.login7-input{
  width:min(300px, 70vw);
  padding:10px 12px; border-radius:10px;
  border:1px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.85);
  color:#123; outline:none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.08);
}
.login7-input::placeholder{ color:#6c7a89; }

.login7-go{
  width:44px; height:44px; border:0; border-radius:999px; cursor:pointer;
  display:grid; place-items:center;
  color:#fff;
  background: radial-gradient(circle at 30% 25%, #7bd1ff, #2a7fd6 60%, #1557a9 100%);
  box-shadow: 0 8px 18px rgba(0,0,0,.3), inset 0 6px 10px rgba(255,255,255,.25);
  transition: transform .05s ease, filter .15s ease;
}
.login7-go:hover{ filter:brightness(1.08) }
.login7-go:active{ transform: translateY(1px) }
.login7-go svg{ width:28px; height:28px }
.login7-go svg circle{ fill: rgba(255,255,255,.18) }

.login7-tip{ margin-top:6px; color:#e6f1ff; opacity:.8; font-size:.9rem; text-shadow:none }

/* Footer */
.login7-footer{
  position:fixed; bottom:0; left:0; right:0;
  height:52px; display:flex; align-items:center; justify-content:center;
  color:#eaf6ff; text-shadow:0 1px 2px rgba(0,0,0,.5);
  pointer-events:none;
}
.login7-footer .brand{ opacity:.8; font-weight:500 }

/* Mobile tweaks */
@media (max-width:600px){
  .login7-avatar{ width:130px; height:130px }
  .login7-name{ font-size:1.8rem }
  .login7-input{ width:65vw }
}

/* ===== Start Menu ===== */
.startmenu{
  position:fixed;
  left:10px; bottom:60px;   /* sits just above taskbar */
  width:280px;
  background: rgba(255,255,255,.9);
  border:1px solid rgba(255,255,255,.7);
  border-radius:14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  overflow:hidden;
  backdrop-filter: blur(6px);
  z-index: 9999;
}
.startmenu.hidden{ display:none }

.startmenu-top{
  background: linear-gradient(180deg, rgba(30,120,220,.95), rgba(30,120,220,.7));
  padding:10px;
  color:#fff;
}
.startmenu-user{
  display:flex; align-items:center; gap:10px;
}
.startmenu-user img{
  width:36px; height:36px; border-radius:8px; object-fit:cover;
  border:1px solid rgba(255,255,255,.8);
}
.startmenu-username{ font-weight:600 }

.startmenu-body{
  display:flex; flex-direction:column;
  padding:8px;
  max-height: 50vh; overflow:auto;
  background: rgba(255,255,255,.85);
}
.start-item{
  display:flex; align-items:center; gap:10px;
  text-align:left;
  border:0; background:transparent; cursor:pointer;
  padding:8px 10px; border-radius:10px;
  color:#123; font-size:.95rem;
}
.start-item:hover{ background:rgba(0,0,0,.06) }

.start-icon{
  width:22px; height:22px; border-radius:6px; display:inline-block;
  border:1px solid rgba(0,0,0,.08);
  box-shadow: 0 1px 2px rgba(0,0,0,.12) inset;
}
.si-photos  { background-image: linear-gradient(135deg,#ffd166,#ef476f); }
.si-designs { background-image: linear-gradient(135deg,#06d6a0,#118ab2); }
.si-videos  { background-image: linear-gradient(135deg,#8338ec,#3a86ff); }
.si-music   { background-image: linear-gradient(135deg,#ff006e,#fb5607); }
.si-about   { background-image: linear-gradient(135deg,#38b000,#70e000); }

.startmenu-footer{
  display:flex; align-items:center; justify-content:flex-end;
  padding:8px 10px;
  border-top:1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.85);
  color:#223; font-size:.9rem;
}
.start-datetime{ opacity:.8 }

/* Optional: click-away overlay (created in JS) */
.start-overlay{
  position:fixed; inset:0; background:transparent; z-index:9998;
}

/* ===== Start menu: shut down button ===== */
.startmenu-footer{
  display:flex; align-items:center; justify-content:space-between;  /* was flex-end */
  padding:8px 10px;
  border-top:1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.85);
  color:#223; font-size:.9rem;
}
.start-shutdown{
  display:flex; align-items:center; gap:8px;
  border:0; cursor:pointer;
  padding:6px 12px;
  border-radius:999px;
  font-weight:600; color:#fff;
  background: linear-gradient(180deg,#ff7b5a,#e63946);
  box-shadow: 0 6px 16px rgba(0,0,0,.22), inset 0 6px 10px rgba(255,255,255,.15);
}
.start-shutdown:hover{ filter: brightness(1.05) }
.start-shutdown:active{ transform: translateY(1px) }
.sh-icon{ font-size:1rem; line-height:1 }





