*{box-sizing:border-box}

:root{
  --accent:#39ff5a;
  --panel-bg:rgba(10,14,20,.58);
  --panel-border:rgba(255,255,255,.16);
  --bg-image:url("../assets/bg.png");
}

html,body{
  margin:0;
  padding:0;
  width:100%;
  min-height:100vh;
  font-family:Arial,Helvetica,sans-serif;
  color:white;
  overflow-x:hidden;
  background:
    linear-gradient(rgba(0,0,0,.24),rgba(0,0,0,.54)),
    var(--bg-image) center/cover fixed no-repeat;
}

.text-strong,h1,.section,.sub{
  text-shadow:0 3px 4px #000,0 0 12px #000,0 0 24px #000;
}

.wrap{
  width:100%;
  max-width:1650px;
  margin:0 auto;
  padding:26px 48px 70px;
}

.top{
  display:grid;
  grid-template-columns:300px 1fr 330px;
  gap:48px;
  align-items:start;
  margin-bottom:68px;
}

.panel,.tile,.search,.status{
  background:var(--panel-bg);
  border:1px solid var(--panel-border);
  border-radius:18px;
  backdrop-filter:blur(14px);
  box-shadow:0 18px 50px rgba(0,0,0,.42);
  transition:.25s;
}

.panel{padding:22px}

.brand{
  text-align:center;
  margin-top:44px;
  margin-bottom:36px;
}

.logo{
  font-size:44px;
  color:var(--accent);
  text-shadow:0 0 20px var(--accent);
}

h1{
  margin:4px 0;
  font-size:42px;
}

.sub{
  color:#fff;
  font-size:15px;
}

.clock{
  max-width:720px;
  margin:0 auto;
  text-align:center;
  padding:22px;
}

#time{
  font-size:52px;
  font-weight:bold;
  text-shadow:0 3px 10px #000,0 0 22px #000;
}

#date{
  color:var(--accent);
  font-size:15px;
  margin-top:10px;
}

.weather h2{
  margin:0 0 14px;
  font-size:20px;
}

.weather-city{
  color:#dbe3f0;
  font-size:15px;
  margin-bottom:10px;
}

.temp{
  font-size:42px;
  margin:14px 0 8px;
}

.green{color:var(--accent)}

.calendar-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
}

.calendar-head h2{
  margin:0;
  font-size:20px;
}

.calendar-head button{
  background:color-mix(in srgb, var(--accent) 10%, transparent);
  color:var(--accent);
  border:1px solid var(--accent);
  border-radius:10px;
  width:32px;
  height:32px;
  font-size:22px;
  cursor:pointer;
}

.calendar-weekdays,
.calendar{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
}

.calendar-weekdays div{
  text-align:center;
  color:var(--accent);
  font-size:12px;
  font-weight:bold;
  margin-bottom:8px;
}

.calendar div{
  text-align:center;
  padding:7px;
  border-radius:8px;
  font-size:13px;
}

.today{
  border:1px solid var(--accent);
  box-shadow:0 0 14px var(--accent);
}

.search{
  width:min(980px,84%);
  margin:0 auto 92px;
  position:relative;
  z-index:5000;
  overflow:visible;
}

.search form{
  display:flex;
  align-items:stretch;
  width:100%;
  position:relative;
  z-index:5001;
  background:none !important;
  box-shadow:none !important;
}

.search-wrapper{
  position:relative;
  flex:1;
  z-index:5002;
}

.search input{
  width:100%;
  height:78px;
  background:rgba(6,10,16,.72);
  border:1px solid var(--accent);
  border-right:0;
  border-radius:22px 0 0 22px;
  outline:0;
  color:white;
  font-size:22px;
  padding:0 28px;
  backdrop-filter:blur(14px);
  box-shadow:inset 0 0 14px rgba(0,0,0,.35);
  transition:.22s;
}

.search input::placeholder{
  color:rgba(255,255,255,.72);
}

.search input:hover{
  border-color:var(--accent);
}

.search input:focus{
  border-color:var(--accent);
  box-shadow:0 0 24px color-mix(in srgb, var(--accent) 28%, transparent);
}

.search button{
  min-width:150px;
  border:1px solid var(--accent);
  border-left:0;
  border-radius:0 22px 22px 0;
  background:color-mix(in srgb, var(--accent) 22%, #000);
  color:var(--accent);
  font-size:28px;
  font-weight:800;
  letter-spacing:.5px;
  cursor:pointer;
  transition:.22s;
  position:relative;
  overflow:hidden;
}

.search button:hover{
  background:var(--accent);
  color:#06100a;
  box-shadow:0 0 24px color-mix(in srgb, var(--accent) 45%, transparent);
}

.search button:active{
  transform:scale(.97);
}

#suggestions{
  position:absolute;
  top:calc(100% + 1px);
  left:0;
  right:0;
  z-index:99999;
  display:none;
  background:rgba(8,12,18,.97);
  border:1px solid rgba(255,255,255,.14);
  border-radius:22px;
  overflow:hidden;
  backdrop-filter:blur(22px);
  box-shadow:0 24px 60px rgba(0,0,0,.78);
}

.suggestion{
  padding:16px 22px;
  cursor:pointer;
  font-size:18px;
  color:white;
  transition:.18s;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.suggestion:last-child{
  border-bottom:0;
}

.suggestion:hover,
.suggestion.active{
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--accent) 28%, transparent),
      color-mix(in srgb, var(--accent) 8%, transparent)
    );
  color:var(--accent);
  box-shadow:
    inset 4px 0 0 var(--accent),
    0 0 18px color-mix(in srgb, var(--accent) 18%, transparent);
  font-weight:bold;
}

.section{
  margin:0 0 28px;
  font-size:28px;
  font-weight:bold;
}

.grid{
  display:grid;
  grid-template-columns:repeat(8,1fr);
  gap:36px 30px;
  margin-bottom:76px;
  position:relative;
  z-index:1;
}

.tile{
  min-height:112px;
  max-height:112px;
  padding:14px 10px;
  text-align:center;
  text-decoration:none;
  color:white;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  position:relative;
  z-index:1;
}

.tile:hover{
  transform:translateY(-5px);
  border-color:var(--accent);
  background:rgba(20,26,34,.78);
  box-shadow:0 0 20px color-mix(in srgb, var(--accent) 18%, transparent);
}

.icon{
  width:64px;
  height:64px;
  margin:0 auto 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.icon img{
  width:100%;
  height:100%;
  max-width:48px;
  max-height:48px;
  object-fit:contain;
  display:block;
  filter:
    drop-shadow(0 3px 10px rgba(0,0,0,.75))
    drop-shadow(0 0 12px rgba(0,0,0,.55));
  transition:.2s;
}

.tile:hover .icon img{
  transform:scale(1.10);
  filter:
    drop-shadow(0 4px 14px rgba(0,0,0,.85))
    drop-shadow(0 0 18px rgba(0,0,0,.65));
}

.name{
  font-size:13px;
  font-weight:bold;
  line-height:1.15;
  text-shadow:0 2px 8px #000;
}

.desc{
  margin-top:4px;
  color:#d5dceb;
  font-size:10px;
  line-height:1.1;
  text-shadow:0 2px 8px #000;
}

.status{
  max-width:820px;
  margin:0 auto;
  padding:18px 24px;
  text-align:center;
  font-size:14px;
  color:#dbe3f0;
  position:relative;
  z-index:1;
}

.status-summary{
  font-weight:bold;
  margin-bottom:18px;
  font-size:18px;
}

.status-list{
  display:grid;
  grid-template-columns:repeat(5,max-content);
  justify-content:center;
  gap:14px 30px;
}

.status-item{
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
  font-size:15px;
}

.status-dot{
  width:11px;
  height:11px;
  border-radius:50%;
  display:inline-block;
}

.status-item.online .status-dot{
  background:#22c55e;
  box-shadow:0 0 12px rgba(34,197,94,.95);
}

.status-item.offline .status-dot{
  background:#ff4b4b;
  box-shadow:0 0 12px rgba(255,75,75,.95);
}

.theme-panel{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:999;
}

#themeToggle{
  background:var(--panel-bg);
  color:var(--accent);
  border:1px solid var(--accent);
  border-radius:14px;
  padding:12px 18px;
  font-weight:bold;
  cursor:pointer;
}

.theme-menu{
  display:none;
  position:absolute;
  right:0;
  bottom:58px;
  width:250px;
  padding:18px;
  border-radius:18px;
  background:var(--panel-bg);
  border:1px solid var(--panel-border);
  backdrop-filter:blur(16px);
}

.theme-menu.open{display:block}

.theme-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.color-btn{
  width:34px;
  height:34px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.45);
  cursor:pointer;
}

.theme-menu select{
  width:100%;
  padding:10px;
  border-radius:10px;
  background:#0b1018;
  color:white;
  border:1px solid var(--panel-border);
}

@media(max-width:1200px){
  .wrap{padding:20px}
  .top{grid-template-columns:1fr}
  .search{width:100%}
  .grid{grid-template-columns:repeat(4,1fr)}
}

@media(max-width:700px){
  .wrap{padding:16px}
  .grid{grid-template-columns:repeat(2,1fr);gap:14px}
  h1{font-size:32px}
  #time{font-size:38px}
}