:root{
  --bg1:#070814;
  --bg2:#0b1027;

  --neon1:#f72585;
  --neon2:#4cc9f0;
  --neon3:#ffd166;
  --neon4:#06d6a0;

  --glass: rgba(10,10,20,.62);
  --glass2: rgba(255,255,255,.10);
  --border: rgba(255,255,255,.16);

  --text: rgba(255,255,255,.95);
  --muted: rgba(255,255,255,.65);

  --r: 22px;
  --shadow: 0 26px 90px rgba(0,0,0,.65);
}

*{box-sizing:border-box}
body{
  margin:0;
  min-height:100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  overflow-x:hidden;
}

/* ==== background ==== */
.bg{
  position:fixed; inset:0;
  background:
    linear-gradient(120deg, rgba(247,37,133,.22), rgba(76,201,240,.18)),
    url("./crashzone-bg.jpg") center/cover no-repeat;
  transform: scale(1.02);
}
.overlay{
  position:fixed; inset:0;
  background:
    radial-gradient(circle at 15% 20%, rgba(247,37,133,.25), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(76,201,240,.22), transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(255,209,102,.18), transparent 45%),
    linear-gradient(180deg, rgba(7,8,20,.70), rgba(7,8,20,.85));
}

/* ==== wrapper ==== */
.wrap{
  position:relative;
  min-height:100vh;
  padding: 26px 18px;
  display:flex;
  align-items:stretch;
  justify-content:center;
}

/* Mobile default: single column */
.shell{
  width:100%;
  max-width: 520px;
  border:1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(18px);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 18px;
}

/* ==== header ==== */
.top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
}
.brand{display:flex; gap:12px; align-items:center;}
.icon{font-size:34px; filter: drop-shadow(0 0 10px rgba(255,209,102,.55));}
h1{margin:0; font-size:26px; letter-spacing:.4px;}
.top p{margin:4px 0 0; font-size:12px; color:var(--muted);}

.stats{display:flex; flex-direction:column; gap:10px; align-items:flex-end;}
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(247,37,133,.65), rgba(76,201,240,.55));
  box-shadow: 0 0 24px rgba(76,201,240,.18);
  font-size:12px;
  font-weight:800;
}
.chip.small{padding:7px 12px; font-size:11px;}

.divider{
  height:2px;
  margin:16px 0;
  background: linear-gradient(90deg, transparent, rgba(247,37,133,.8), rgba(76,201,240,.75), transparent);
}

/* ==== cards ==== */
.card{
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 14px;
}
.card h2{
  margin:0 0 12px;
  font-size:16px;
  color: rgba(255,255,255,.95);
}

/* ==== form ==== */
.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:12px;
  color: rgba(255,255,255,.70);
}
label.full{grid-column: 1 / -1;}

input, select, textarea{
  width:100%;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.38);
  color: rgba(255,255,255,.95);
  padding: 12px 12px;
  outline:none;
}
textarea{min-height:92px; resize:none;}

input:focus, select:focus, textarea:focus{
  border-color: rgba(76,201,240,.75);
  box-shadow: 0 0 0 2px rgba(76,201,240,.20), 0 0 30px rgba(247,37,133,.10);
}

.btn{
  border:1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, var(--neon1), #7209b7, var(--neon2));
  color: rgba(255,255,255,.95);
  padding: 13px 14px;
  border-radius: 16px;
  cursor:pointer;
  font-weight:900;
  letter-spacing:.25px;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover{transform: translateY(-1px); filter: brightness(1.06);}
.btn.ghost{
  background: transparent;
  border-style: dashed;
  color: rgba(255,255,255,.70);
}
.btn.small{padding:10px 12px; font-size:12px;}

.row{display:flex; justify-content:space-between; align-items:center;}
.hint{font-size:12px; color: rgba(255,255,255,.60);}

/* date range row */
.range{
  display:grid;
  grid-template-columns: 1fr 1fr auto;
  gap:12px;
  align-items:end;
  margin-bottom: 12px;
}

/* list items */
.list{display:flex; flex-direction:column; gap:12px;}
.item{
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.34);
}
.item .bar{
  height:4px;
  background: linear-gradient(90deg, var(--neon3), var(--neon1), var(--neon2));
}
.item .content{padding:14px;}
.item .head{display:flex; justify-content:space-between; gap:10px; align-items:center;}
.item .date{font-weight:950; color: rgba(255,255,255,.95);}
.item .loc{margin-top:7px; font-weight:900;}
.item .meta{margin-top:6px; font-size:13px; color: rgba(255,255,255,.72);}
.item .note{margin-top:6px; font-size:12px; color: rgba(255,255,255,.56);}

.empty{
  padding:14px;
  text-align:center;
  border-radius: 16px;
  border:1px dashed rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.70);
}

.foot{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:11px;
  color: rgba(255,255,255,.55);
  margin-top: 10px;
}

/* =========================
   DESKTOP LAYOUT (PC)
   ========================= */
@media (min-width: 980px){
  .wrap{padding: 34px 28px;}

  /* wide dashboard */
  .shell{
    max-width: 1180px;
    padding: 22px;
    border-radius: 30px;
  }

  /* 2-column layout without changing HTML:
     we style the existing sections as a grid:
     header + divider full width,
     then first .card = left (form),
     second .card = right (calendar)
  */
  .shell{
    display:grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "top top"
      "div div"
      "form cal"
      "foot foot";
    gap: 18px;
  }
  .top{grid-area: top;}
  .divider{grid-area: div;}
  .card:nth-of-type(1){grid-area: form;}
  .card:nth-of-type(2){grid-area: cal;}
  .foot{grid-area: foot;}

  /* calendar box scroll area bigger on desktop */
  .list{
    max-height: 62vh;
    overflow:auto;
    padding-right: 6px;
  }

  /* nicer scrollbar */
  .list::-webkit-scrollbar{width: 10px;}
  .list::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,.14);
    border-radius: 99px;
    border: 2px solid rgba(0,0,0,.25);
  }

  /* form: larger spacing */
  .grid{gap: 14px;}
  input, select, textarea{padding: 13px 13px;}
}

/* Ultra-wide: give form more space */
@media (min-width: 1280px){
  .shell{grid-template-columns: 1.05fr .95fr;}
}
