:root{
  --bg: #f5f8f7;
  --card: #ffffff;
  --border: #e7eeec;
  --text: #0f1c17;
  --muted: #6c7f78;
  --accent: #22D48F;
  --accent-soft: rgba(34,212,143,0.15);
  --shadow-soft: 0 4px 14px rgba(0,0,0,0.05);
  --shadow-medium: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 18px;
  --font: "Inter", system-ui;
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:linear-gradient(130deg,#f9fcfb,#eef7f4,#f9fcfb);
  background-size:300% 300%;
  animation:bgMove 30s ease infinite;
}

@keyframes bgMove{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

/* Layout */

.app{
  max-width:1350px;
  margin:auto;
  padding:24px;
}

.header{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow-medium);
  padding:20px 28px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:26px;
}

.brand-logo{
  height:48px;
}

/* Grid */

.main{
  display:grid;
  grid-template-columns:260px 1fr 1fr;
  gap:26px;
}

/* Sidebar */

.sidebar{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
  padding:24px;
}

.sidebar-title{
  font-weight:700;
  margin-bottom:16px;
}

.team-btn{
  width:100%;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid var(--border);
  background:white;
  margin-bottom:12px;
  font-weight:600;
  cursor:pointer;
  transition:.2s;
}

.team-btn:hover{
  background:var(--accent-soft);
  border-color:var(--accent);
}

.team-btn.is-active{
  background:var(--accent);
  color:white;
  border-color:var(--accent);
  box-shadow:0 8px 18px rgba(34,212,143,0.25);
}

/* Panels */

.panel{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
  display:flex;
  flex-direction:column;
}

.panel-head{
  padding:22px 26px;
  border-bottom:1px solid var(--border);
}

.panel h2{
  margin:6px 0 0;
  font-size:22px;
}

/* Form */

.form{
  padding:26px;
  display:flex;
  flex-direction:column;
  gap:18px;
}

input[type="text"], textarea{
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
  font-size:14px;
  background:white;
  transition:.2s;
}

input:focus, textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 4px var(--accent-soft);
}

/* PRIORITY CHIPS (fix van radio chaos) */

.chips{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.chip{
  position:relative;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid var(--border);
  background:white;
  font-weight:600;
  cursor:pointer;
  transition:.2s;
}

.chip input{
  display:none;
}

.chip:hover{
  border-color:var(--accent);
}

.chip input:checked + span{
  color:white;
}

.chip input:checked{
  background:var(--accent);
}

.chip input:checked ~ span{
  color:white;
}

.chip input:checked{
  accent-color:var(--accent);
}

.chip:has(input:checked){
  background:var(--accent);
  border-color:var(--accent);
  color:white;
}

/* Buttons */

.btn{
  padding:12px 18px;
  border-radius:14px;
  border:1px solid var(--border);
  background:white;
  font-weight:600;
  cursor:pointer;
  transition:.2s;
}

.btn-primary{
  background:var(--accent);
  color:white;
  border:none;
  box-shadow:0 6px 18px rgba(34,212,143,0.3);
}

.btn-primary:hover{
  transform:translateY(-2px);
}

/* Tabs */

.tabs{
  padding:18px 26px;
  display:flex;
  gap:12px;
  border-bottom:1px solid var(--border);
}

.tab{
  padding:10px 16px;
  border-radius:999px;
  border:1px solid var(--border);
  background:white;
  cursor:pointer;
  font-weight:600;
  transition:.2s;
}

.tab:hover{
  border-color:var(--accent);
}

.tab.is-active{
  background:var(--accent);
  color:white;
  border-color:var(--accent);
}

/* Cards */

.cards{
  padding:26px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.card{
  background:#f9fbfa;
  border-radius:16px;
  padding:16px;
  border:1px solid var(--border);
  transition:.2s;
}

.card:hover{
  box-shadow:var(--shadow-soft);
}

.badge{
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}

.badge.low{background:#eef1f3;color:#555;}
.badge.normal{background:#e5f3ff;color:#0052cc;}
.badge.high{background:#ffe3e3;color:#b30000;}
.badge.urgent{background:#fff2d9;color:#9a6000;}

/* Lock screen */

.lock-screen{
  position:fixed;
  inset:0;
  display:flex;
  justify-content:center;
  align-items:center;
  background:linear-gradient(130deg,#f9fcfb,#eef7f4,#f9fcfb);
  background-size:300% 300%;
  animation:bgMove 30s ease infinite;
}

.lock-card{
  background:white;
  padding:36px;
  border-radius:22px;
  box-shadow:var(--shadow-medium);
  width:360px;
  text-align:center;
}

.pin-input{
  width:100%;
  padding:14px;
  border-radius:14px;
  border:1px solid var(--border);
  margin-bottom:14px;
}

/* Responsive */

@media(max-width:1100px){
  .main{
    grid-template-columns:1fr;
  }
}
