/* ===== BUTTONS ===== */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:0 16px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff;
  font-weight:800;
  letter-spacing:.01em;
  box-shadow:0 8px 18px rgba(109,40,217,.18);
  transition:transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.btn:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.16);
  box-shadow:0 12px 26px rgba(109,40,217,.24);
}

.btn:active{
  transform:translateY(0);
}

.btn-ghost{
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
  box-shadow:none;
  color:var(--text);
}

.btn-ghost:hover{
  background:rgba(255,255,255,.05);
  border-color:var(--border-strong);
  box-shadow:none;
}

.btn:disabled,
.btn[disabled]{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
}

/* ===== PANELS ===== */

.panel{
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)),
    var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  box-shadow:var(--shadow-md);
  overflow:hidden;
}

.panel-title{
  font-size:22px;
  font-weight:900;
  line-height:1.1;
  margin-bottom:6px;
  letter-spacing:-.02em;
}

.panel-sub{
  color:var(--muted);
  margin-bottom:16px;
  font-size:14px;
  line-height:1.55;
}

/* ===== BADGES ===== */

.badge{
  position:absolute;
  top:10px;
  right:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:26px;
  padding:0 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  border:1px solid rgba(255,255,255,.10);
  letter-spacing:.02em;
  backdrop-filter:blur(8px);
}

.badge.ongoing{
  background:rgba(34,197,94,.88);
  color:#07130b;
}

.badge.complete{
  background:rgba(239,68,68,.92);
  color:#fff;
}

/* ===== COMMON FIELDS ===== */

.library-input,
.library-select{
  height:44px;
  padding:0 14px;
  border-radius:10px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
  font-weight:700;
  outline:none;
  transition:border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.library-input::placeholder,
textarea::placeholder,
input::placeholder{
  color:var(--muted-2);
}

.library-input:focus,
.library-select:focus,
input:focus,
select:focus,
textarea:focus{
  border-color:rgba(139,92,246,.46);
  box-shadow:0 0 0 4px rgba(139,92,246,.10);
  background:rgba(255,255,255,.04);
}

/* ===== SHARED CHIP ===== */

.library-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  font-size:12px;
  font-weight:800;
  color:var(--muted);
}

/* ===== EMPTY STATE ===== */

.empty-state{
  margin-top:16px;
  padding:26px 22px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  text-align:center;
}

.empty-state__title{
  font-size:20px;
  font-weight:900;
  margin-bottom:8px;
  letter-spacing:-.02em;
}

/* ===== COMMENTS ===== */

.comment-section{
  padding:18px;
}

.comment-box{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:14px;
}

.comment-box textarea{
  width:100%;
  min-height:140px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
  padding:14px;
  resize:vertical;
  outline:none;
  line-height:1.65;
}

.comment-box .btn{
  align-self:flex-start;
}

.comment-item{
  margin-top:14px;
  padding:14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.025);
}

.comment-user{
  font-weight:900;
  margin-bottom:6px;
}

.comment-text{
  color:var(--muted);
  line-height:1.7;
}

/* ===== TABLE-LIKE SURFACE ===== */

.soft-surface{
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.05);
  border-radius:12px;
}

/* ===== RESPONSIVE ===== */

@media(max-width:900px){
  .panel{
    padding:16px;
    border-radius:14px;
  }

  .panel-title{
    font-size:20px;
  }

  .comment-box .btn{
    width:100%;
    justify-content:center;
  }
}