:root{
  --bg: #07120c;
  --bg2:#0a1a12;

  --stroke: rgba(255,255,255,.10);

  --text: #e9fff3;
  --muted: rgba(233,255,243,.72);

  --shadow: 0 16px 40px rgba(0,0,0,.45);
  --radius2: 22px;

  /* Table fill (the frosted panel) */
  --tableFill: rgba(255,255,255,.055);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(1200px 700px at 12% 0%, rgba(34,197,94,.22), transparent 62%),
    radial-gradient(900px 600px at 88% 12%, rgba(52,211,153,.18), transparent 58%),
    radial-gradient(1100px 900px at 50% 120%, rgba(16,185,129,.10), transparent 55%),
    linear-gradient(180deg, #0a1a12 0%, #07120c 60%, #07120c 100%);
  background-attachment: fixed;
  color: var(--text);
}

/* THIS is the shared width for header + table area */
.shell{
  width: min(92vw, 980px);
  margin: 0 auto;
  padding: 18px 0 28px;
}

/* Header aligns exactly with table, because it lives in .shell */
.header{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px 10px;
}

h1{
  margin: 8px 0 6px;
  font-size: 24px;
  letter-spacing: .2px;
}

.sub{
  margin:0;
  color: var(--muted);
  font-size: 13px;
}

/* Buttons */
.btn{
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 10px 12px;
  cursor: pointer;
}
.btn.primary{
  background: rgba(34,197,94,.18);
  border-color: rgba(34,197,94,.28);
}
.btn.ghost{
  background: rgba(0,0,0,.18);
}

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

/* IMPORTANT:
   The schedule card should NOT have its own big background.
   Keep it “invisible” so only the table wrapper has fill.
*/
.card{
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 14px 0 0;
}

/* The table wrapper IS the background and matches table size exactly */
.tableWrap{
  margin: 0 auto;
  padding: 0;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: var(--tableFill);
  box-shadow: var(--shadow);
  overflow: hidden; /* ensures fill clips perfectly to rounded corners */
}

/* If you want a subtle inner border like your screenshot */
.tableWrap::before{
  content:"";
  display:block;
  height: 1px;
  background: rgba(255,255,255,.06);
}

/* Table */
table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;    /* equal columns */
}

thead th, tbody td{
  width: 25%;
}

/* Sticky header */
thead th{
  position: sticky;
  top: 0;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
  text-align: left;
  font-size: 11px;
  color: rgba(233,255,243,.80);
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
  user-select: none;
}

/* Body rows */
tbody td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 13px;
}

tbody tr:hover{
  background: rgba(255,255,255,.035);
}

/* Mobile friendliness:
   - keep it full width
   - reduce padding/font slightly
*/
@media (max-width: 540px){
  .shell{ width: 100vw; }
  .header{ padding: 0 12px 10px; }
  thead th{ padding: 9px 10px; font-size: 10.5px; }
  tbody td{ padding: 9px 10px; font-size: 12.5px; }
}

/* Drawer */
.backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  display:none;
  z-index: 50;
}

.drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: rgba(8,18,12,.92);
  border-left: 1px solid rgba(255,255,255,.10);
  box-shadow: -20px 0 60px rgba(0,0,0,.45);
  transform: translateX(110%);
  transition: transform .18s ease;
  z-index: 60;
}

.drawer.open{ transform: translateX(0); }
.backdrop.open{ display:block; }

.drawerHead{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.drawerTitle{
  font-weight: 700;
  letter-spacing: .2px;
}

.drawerBody{
  padding: 16px;
  overflow:auto;
  height: calc(100% - 62px);
}

/* Inputs layout */
.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field{
  display:flex;
  flex-direction: column;
  gap: 6px;
}

.field span{
  color: var(--muted);
  font-size: 12px;
}

.field input, textarea{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}

.field small{
  color: rgba(233,255,243,.55);
  font-size: 11px;
}

.toggle{
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}

.details{
  margin-top: 14px;
  border-top: 1px dashed rgba(255,255,255,.14);
  padding-top: 12px;
}

.details summary{
  cursor:pointer;
  color: var(--text);
  font-weight: 600;
}

.hint{
  color: var(--muted);
  margin: 10px 0;
  font-size: 13px;
}

textarea{
  width: 100%;
  resize: vertical;
}

.actions{
  display:flex;
  gap: 10px;
  margin-top: 14px;
}

/* Inner wrapper holds padding so header + body stay aligned */
.tableInner{
  width: 100%;
}

/* Mobile breathing room */
@media (max-width: 540px){
  .tableInner{
    padding-left: 6px;
    padding-right: 6px;
    padding-bottom: 6px;
  }
}

