/* assets/app.css */
/* ===== Design tokens ===== */
:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,.06);
  --panel-2: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --line: rgba(255,255,255,.10);
  --shadow: 0 12px 30px rgba(0,0,0,.28);

  --brand: #5eead4;      /* accent */
  --warn: #fbbf24;       /* warning */
  --danger: #fb7185;     /* danger */
  --ok: #86efac;         /* success */

  --radius: 18px;
  --radius-sm: 12px;
  --pad: 16px;
  --pad-lg: 22px;

  --maxw: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* ===== Base ===== */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font);
  background:
    linear-gradient(
      rgba(11,18,32,.85),
      rgba(11,18,32,.95)
    ),
    url("/imgs/bg.jpg") center / cover no-repeat;
  color:var(--text);
}
body{
  background:
    linear-gradient(
      rgba(11,18,32,.85),
      rgba(11,18,32,.95)
    ),
    url("/imgs/bg.jpg") center;
}

a{ color:inherit; text-decoration:none; }
button, input{ font-family:inherit; }

.container{
  max-width:var(--maxw);
  margin:0 auto;
  padding: 18px 14px 32px;
}

/* ===== Topbar ===== */
.topbar{
  position: sticky;
  top:0;
  z-index:20;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(11,18,32,.92), rgba(11,18,32,.72));
  border-bottom:1px solid var(--line);
}

.topbar-inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding: 12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand {
  display: flex;
  align-items: center; /* Căn giữa theo chiều dọc */
  gap: 10px; /* Khoảng cách giữa logo và tiêu đề */
}

.brand .logo {
  width: 40px;  /* Kích thước logo */
  height: 40px; /* Kích thước logo */
  border-radius: 50%; /* Đảm bảo logo tròn */
  background-size: cover;
  background-position: center;
  background-color: transparent;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}

.brand-text h1 {
  font-size: 24px; /* Kích thước tiêu đề */
  margin: 0;
}

.brand-text .sub {
  font-size: 14px; /* Kích thước mô tả */
  color: rgba(255,255,255,.7);
}

.logo{
  width:34px;height:34px;border-radius:12px;
  background: linear-gradient(135deg, rgba(94,234,212,.9), rgba(251,191,36,.85));
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}
.brand h1{
  margin:0;
  font-size:14px;
  letter-spacing:.2px;
}
.brand .sub{
  display:block;
  margin-top:2px;
  font-size:12px;
  color:var(--muted);
}

.search{
  flex:1;
  display:flex;
  justify-content:center;
}
.search input{
  width:min(520px, 100%);
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  color:var(--text);
  outline:none;
}
.search input::placeholder{ color: rgba(255,255,255,.45); }

.userbox{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 210px;
  justify-content:flex-end;
}
.avatar{
  width:34px;height:34px;border-radius:999px;
  background: rgba(255,255,255,.12);
  border:1px solid var(--line);
  display:grid; place-items:center;
  font-weight:700;
  color: rgba(255,255,255,.85);
}
.user-meta{ text-align:right; }
.user-meta .name{ font-size:13px; font-weight:700; }
.user-meta .role{ font-size:12px; color:var(--muted); }

/* ===== Layout ===== */
.grid{
  display:grid;
  grid-template-columns: 260px 1fr 340px;
  gap: 14px;
  margin-top: 14px;
}

.sidebar, .content, .rightbar{
  display:flex;
  flex-direction:column;
  gap: 14px;
}

.card{
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.05));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--pad-lg);
}

.card h2{
  margin:0 0 10px 0;
  font-size: 14px;
  letter-spacing:.2px;
}

.muted{ color:var(--muted); }
.small{ font-size:12px; }
.sep{ height:1px; background:var(--line); margin: 12px 0; }

/* ===== Sidebar menu ===== */
.menu{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.menu a{
  padding:10px 12px;
  border-radius: 14px;
  background: transparent;
  border:1px solid transparent;
  color: rgba(255,255,255,.86);
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.menu a:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
}
.badge{
  font-size:11px;
  padding:2px 8px;
  border-radius:999px;
  background: rgba(94,234,212,.14);
  border:1px solid rgba(94,234,212,.25);
  color: rgba(255,255,255,.90);
}
.badge.warn{
  background: rgba(251,191,36,.14);
  border-color: rgba(251,191,36,.30);
}
.badge.danger{
  background: rgba(251,113,133,.14);
  border-color: rgba(251,113,133,.30);
}

/* ===== Personal status ===== */
.status-note{
  padding:12px 12px;
  border-radius: var(--radius-sm);
  border:1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
}
.status-note textarea{
  width:100%;
  min-height:72px;
  resize: vertical;
  border:0;
  outline:none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}
.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}
.btn{
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
}
.btn:hover{ background: rgba(255,255,255,.09); }
.btn.primary{
  border-color: rgba(94,234,212,.35);
  background: rgba(94,234,212,.14);
}
.btn.ghost{
  background: transparent;
}

/* ===== Task list ===== */
.list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.item{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px 12px;
  border-radius: var(--radius-sm);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.checkbox{
  width:18px;height:18px;border-radius:6px;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.15);
  flex: 0 0 auto;
  margin-top:2px;
}
.item.done .checkbox{
  background: rgba(134,239,172,.22);
  border-color: rgba(134,239,172,.40);
}
.item .main{
  flex:1;
  min-width:0;
}
.item .title{
  font-size: 13px;
  font-weight: 700;
  margin:0;
}
.item .meta{
  margin-top:4px;
  font-size:12px;
  color: var(--muted);
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.pill{
  font-size:11px;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.pill.today{ border-color: rgba(94,234,212,.35); background: rgba(94,234,212,.12); }
.pill.deadline{ border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.12); }
.pill.late{ border-color: rgba(251,113,133,.35); background: rgba(251,113,133,.12); }

.kbd{
  font-size:11px;
  padding:2px 8px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.80);
}

/* ===== Notice ===== */
.notice{
  border-left: 3px solid rgba(94,234,212,.55);
  padding-left:12px;
}
.notice.warn{ border-left-color: rgba(251,191,36,.75); }
.notice.danger{ border-left-color: rgba(251,113,133,.75); }
.notice .t{ font-weight:800; font-size:13px; margin:0; }
.notice .d{ margin:6px 0 0 0; color: var(--muted); font-size:12px; }

/* ===== Responsive ===== */
@media (max-width: 1040px){
  .grid{ grid-template-columns: 240px 1fr; }
  .rightbar{ grid-column: 1 / -1; }
}
@media (max-width: 760px){
  .topbar-inner{ flex-wrap:wrap; }
  .brand, .userbox{ min-width:auto; }
  .search{ order: 3; width:100%; }
  .grid{ grid-template-columns: 1fr; }
}
