/* concern-track.css
   Scoped styles (ct-*) so it won't override other pages
*/

/* footer stick + avoid overlap */
html, body { height: 100%; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Poppins", sans-serif;
}
.ct-page { flex: 1; }

/* page background */
.ct-page{
  padding: 38px 16px 54px;
  background: radial-gradient(1200px 500px at 15% 10%, rgba(59,130,246,.18), transparent 60%),
              radial-gradient(900px 450px at 85% 15%, rgba(16,185,129,.14), transparent 55%),
              #f4f7fb;
}

/* card */
.ct-card{
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(2,6,23,.08);
  padding: 22px;
}

/* top buttons */
.ct-actions-top{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* headings */
.ct-head h2{
  margin: 0;
  font-size: 28px;
  letter-spacing: .2px;
}
.ct-head p{
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

/* alerts */
.ct-alert{
  margin-top: 14px;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid transparent;
}
.ct-alert.error{
  background: #fff1f2;
  border-color: rgba(244,63,94,.25);
  color: #9f1239;
}
.ct-alert.success{
  background: #ecfdf5;
  border-color: rgba(16,185,129,.25);
  color: #065f46;
}

/* form */
.ct-form{
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.ct-label{
  font-size: 13px;
  color: #0f172a;
  font-weight: 600;
}
.ct-input{
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  padding: 0 14px;
  outline: none;
  transition: .2s ease;
}
.ct-input:focus{
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}
.ct-btn{
  height: 25px;
  border-radius: 12px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  background: linear-gradient(135deg, #0b3b8f, #2563eb);
  color: #fff;
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}
.ct-btn:hover{ filter: brightness(1.03); box-shadow: 0 10px 22px rgba(37,99,235,.22); }
.ct-btn:active{ transform: translateY(1px); }

.ct-btn-outline{
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(37,99,235,.35);
  background: #fff;
  color: #1d4ed8;
  font-weight: 700;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: .2s ease;
}
.ct-btn-outline:hover{
  background: rgba(37,99,235,.06);
  border-color: rgba(37,99,235,.5);
}

/* note */
.ct-note{
  margin-top: 6px;
  font-size: 12.5px;
  color: #64748b;
}

/* ticket header row */
.ct-toprow{
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.ct-title{
  margin: 0;
  font-size: 22px;
}
.ct-sub{
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
}

.ct-status{
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(2,6,23,.08);
  background: #f8fafc;
  color: #0f172a;
}

/* Stepper */
.ct-stepper{
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,.06);
}
.ct-step{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 170px;
}
.ct-step-dot{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(148,163,184,.9);
  background: #fff;
  flex: 0 0 auto;
}
.ct-step-label{
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}
.ct-step-line{
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(148,163,184,.35);
  min-width: 40px;
}
.ct-step.done .ct-step-dot,
.ct-step.active .ct-step-dot{
  border-color: rgba(16,185,129,.95);
  background: rgba(16,185,129,.95);
}
.ct-step.done .ct-step-label{ color: #065f46; }
.ct-step.active .ct-step-label{ color: #0b3b8f; }
.ct-step-line.done{ background: rgba(16,185,129,.85); }

/* sections */
.ct-section{
  margin-top: 16px;
  border-top: 1px solid rgba(15,23,42,.08);
  padding-top: 14px;
}
.ct-sec-title{
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ct-sec-title:before{
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

/* details grid */
.ct-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px 18px;
}
.ct-k{
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.ct-v{
  margin-top: 4px;
  font-size: 14px;
  color: #0f172a;
  font-weight: 600;
  word-break: break-word;
}
.ct-desc{
  margin-top: 8px;
  border: 1px solid rgba(15,23,42,.10);
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px 14px;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.7;
}

/* leaders list with photo */
.ct-leader-list{
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.ct-leader{
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.08);
  background: #fff;
}
.ct-leader-img{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(15,23,42,.10);
}
.ct-leader-fallback{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #475569;
  background: #e2e8f0;
  border: 1px solid rgba(15,23,42,.10);
}
.ct-leader-name{
  font-weight: 800;
  font-size: 14px;
  color: #0f172a;
}
.ct-leader-sub{
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

/* attachments */
.ct-files{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.ct-file{
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  transition: .2s ease;
}
.ct-file:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(2,6,23,.08);
  border-color: rgba(37,99,235,.22);
}
.ct-file-left{ min-width: 0; }
.ct-file-name{
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}
.ct-file-meta{
  margin-top: 4px;
  color: #64748b;
  font-size: 12.5px;
}
.ct-file-ic{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(37,99,235,.08);
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

/* timeline */
.ct-timeline{ display: grid; gap: 12px; }
.ct-item{
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
}
.ct-dot{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2563eb;
  margin-top: 14px;
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.ct-item-body{
  border: 1px solid rgba(15,23,42,.08);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
}
.ct-item-top{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.ct-pill{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  background: rgba(37,99,235,.10);
  color: #1d4ed8;
  border: 1px solid rgba(37,99,235,.18);
}
.ct-time{
  color: #64748b;
  font-size: 12.5px;
  font-weight: 600;
}
.ct-note{
  margin-top: 8px;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.7;
}

/* action buttons bottom */
.ct-actions{
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* helpers */
.ct-muted{
  color: #64748b;
  font-size: 14px;
}

/* responsive */
@media (max-width: 860px){
  .ct-card{ padding: 16px; }
  .ct-head h2{ font-size: 24px; }
  .ct-grid{ grid-template-columns: 1fr; }
  .ct-files{ grid-template-columns: 1fr; }
  .ct-leader-list{ grid-template-columns: 1fr; }
  .ct-step{ min-width: 140px; }
}

@media (max-width: 420px){
  .ct-head h2{ font-size: 22px; }
  .ct-actions, .ct-actions-top{ justify-content: center; }
  .ct-btn, .ct-btn-outline{ width: 100%; }
}
