:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,.08);
  --panel2: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);
  --shadow: 0 18px 60px rgba(0,0,0,.45);

  --green:#2ecc71;
  --red:#ff4d4d;
  --blue:#2d7dff;
  --yellow:#ffcc00;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(1100px 600px at 20% 10%, rgba(45,125,255,.25), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(46,204,113,.18), transparent 55%),
              radial-gradient(900px 600px at 60% 90%, rgba(255,204,0,.12), transparent 60%),
              var(--bg);
}

.auth-shell{min-height:100%; display:grid; place-items:center; padding:28px;}
.auth-card{
  width:min(460px, 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:22px;
  backdrop-filter: blur(12px);
}

.brand{display:flex; gap:12px; align-items:center; margin-bottom:18px;}
.brand__logo{
  width:48px; height:48px; border-radius:14px;
  display:grid; place-items:center;
  background: rgba(45,125,255,.18);
  border:1px solid rgba(45,125,255,.35);
}
.brand__name{font-weight:700; letter-spacing:.3px}
.brand__sub{color:var(--muted); font-size:13px}

.form__title{font-size:18px; font-weight:700; margin:10px 0 16px 0}

.field{display:block; margin-bottom:12px}
.field__label{display:block; font-size:13px; color:var(--muted); margin-bottom:6px}
.field__control{
  display:flex; align-items:center; gap:10px;
  padding:12px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.07);
  border:1px solid var(--border);
}
.field__control i{color:rgba(255,255,255,.75)}
.field__control input, .field__control select, .field__control textarea{
  width:100%;
  background:transparent;
  border:none;
  outline:none;
  color:var(--text);
  font-size:14px;
  font-family:inherit;
}
.field__control textarea{resize:vertical; min-height:90px}

.btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius:14px;
  border:1px solid var(--border);
  padding:12px 14px;
  font-weight:600;
  cursor:pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  user-select:none;
}
.btn:active{transform:translateY(1px)}
.btn--primary{background: rgba(45,125,255,.20); border-color: rgba(45,125,255,.40);}
.btn--primary:hover{background: rgba(45,125,255,.26)}
.btn--ghost{background: transparent;}
.btn--ghost:hover{background: rgba(255,255,255,.06)}

.hint{margin-top:12px; font-size:12px; color:var(--muted)}

.app{display:grid; grid-template-columns: 290px 1fr; min-height:100vh;}
.sidebar{
  padding:18px;
  border-right:1px solid var(--border);
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  display:flex;
  flex-direction:column;
  gap:16px;
}
.sidebar__brand{display:flex; gap:12px; align-items:center;}
.sidebar__logo{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background: rgba(46,204,113,.16);
  border:1px solid rgba(46,204,113,.35);
}
.sidebar__name{font-weight:800}
.sidebar__sub{color:var(--muted); font-size:12px}

.menu{display:flex; flex-direction:column; gap:10px; margin-top:6px}
.menu__item{
  width:100%;
  display:flex; gap:12px; align-items:center;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-family:inherit;
  cursor:pointer;
  transition: background .15s ease, border-color .15s ease, transform .08s ease;
}
.menu__item:hover{background: rgba(255,255,255,.08)}
.menu__item:active{transform:translateY(1px)}
.menu__item.is-active{border-color: rgba(45,125,255,.55); background: rgba(45,125,255,.14)}
.menu__item.is-hidden{display:none}

.sidebar__footer{margin-top:auto; display:flex; flex-direction:column; gap:10px}
.user{font-size:13px; color:rgba(255,255,255,.82)}

.main{padding:18px 18px 28px 18px;}
.topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:14px 14px;
  border-radius:18px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
}
.topbar__title{font-size:18px; font-weight:800}
.topbar__subtitle{color:var(--muted); font-size:13px; margin-top:4px}

.legend{display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end}
.pill{display:flex; align-items:center; gap:8px; font-size:12px; padding:8px 10px; border-radius:999px; background: rgba(0,0,0,.22); border:1px solid var(--border)}
.pill span{width:10px; height:10px; border-radius:999px; display:inline-block}
.pill--green span{background:var(--green)}
.pill--red span{background:var(--red)}
.pill--blue span{background:var(--blue)}
.pill--yellow span{background:var(--yellow)}

.content{margin-top:16px}

.card{
  border-radius:18px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  padding:14px;
}

.office{
  display:grid;
  grid-template-columns: 1.4fr .9fr;
  gap:14px;
}

.office-map{
  border-radius:18px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  padding:14px;
  min-height:560px;
  position:relative;
  overflow:hidden;
}

.area-title{font-weight:800; font-size:14px; margin:10px 0 8px 0; color:rgba(255,255,255,.88)}

.area-grid{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap:10px;
}

.desk{
  position:relative;
  border-radius:16px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.22);
  padding:10px;
  cursor:pointer;
  min-height:68px;
  transition: transform .08s ease, border-color .15s ease, background .15s ease;
}
.desk:hover{transform: translateY(-1px); background: rgba(0,0,0,.30)}
.desk__code{font-weight:800; font-size:13px}
.desk__area{font-size:11px; color:var(--muted); margin-top:2px}
.desk__dot{position:absolute; right:10px; top:10px; width:12px; height:12px; border-radius:999px;}
.desk--available .desk__dot{background:var(--green)}
.desk--reserved .desk__dot{background:var(--red)}
.desk--mine .desk__dot{background:var(--blue)}
.desk--out .desk__dot{background:var(--yellow)}

.sidepanel{display:flex; flex-direction:column; gap:14px}

.table{width:100%; border-collapse:collapse; font-size:13px}
.table td, .table th{padding:10px; border-bottom:1px solid rgba(255,255,255,.08)}
.table th{text-align:left; color:rgba(255,255,255,.75); font-weight:700}

.modal-overlay{
  position:fixed;
  inset:0;
  display:grid;
  place-items:center;
  background: rgba(0,0,0,.55);
  z-index:1000;
  padding:18px;
}
.modal{
  width:min(720px, 100%);
  border-radius:18px;
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  overflow:hidden;
}
.modal__header{display:flex; justify-content:space-between; align-items:center; padding:14px 14px; border-bottom:1px solid rgba(255,255,255,.10)}
.modal__title{font-weight:900}
.modal__close{background:transparent; border:none; color:var(--text); cursor:pointer; font-size:16px}
.modal__body{padding:14px}
.modal__footer{padding:14px; border-top:1px solid rgba(255,255,255,.10); display:flex; gap:10px; justify-content:flex-end}

.badge{display:inline-flex; align-items:center; gap:8px; border:1px solid var(--border); background: rgba(0,0,0,.22); padding:8px 10px; border-radius:999px; font-size:12px; color:rgba(255,255,255,.86)}
.badge b{font-weight:900}

.grid2{display:grid; grid-template-columns:1fr 1fr; gap:12px}

@media (max-width: 980px){
  .app{grid-template-columns: 1fr}
  .sidebar{border-right:none; border-bottom:1px solid var(--border)}
  .office{grid-template-columns: 1fr}
}
