:root{
  --bg:#1c1c2a;
  --card:#000000;
  --muted:#a9b1bd;
  --text:#e6e8ee;
  --accent:#25c2a0;
  --accent-2:#8ab4ff;
  --danger:#ff6b6b;
  --ring: 0 0 0 3px rgb(37 194 160 / 35%);
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --radius: 16px;
}

*{box-sizing:border-box}

html,body{
  height:100%;
  margin:0;
  /* background: radial-gradient(1200px 800px at 10% -10%, #1a1f2e 0%, transparent 60%),
              radial-gradient(1200px 800px at 110% 110%, #1a1f2e 0%, transparent 60%),
              var(--bg); */
  background-color: #242323;
  color:var(--text);
  font: 16px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}

header.nav{
  height:75px;
  padding:0 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background: #121212a7;
  /* backdrop-filter:saturate(1.2) blur(4px); */
  -webkit-box-shadow: 0px 1px 15px -8px rgba(0,0,0,0.75);
  -moz-box-shadow: 0px 1px 15px -8px rgba(0,0,0,0.75);
  box-shadow: 0px 1px 15px -8px rgba(0,0,0,0.75);
  position:sticky; top:0;
}
.spie-logo{height:35px}
.nav-right{display:flex; align-items:center; gap:12px}
.userInfo{margin:0; color:var(--muted); font-size:14px}
.logout-button{
  border:0; outline:0; cursor:pointer;
  background:#22283a; color:#fff; width:36px; height:36px; border-radius:10px;
}
.logout-button:hover{background:#2a3147}

.wrap {
  height:calc(100vh - 75px);
  display:grid; place-items:center;
  padding:24px;
}

.card {
  width:min(980px, 92vw);
  background:linear-gradient(180deg, #191c27, #141824);
  border:1px solid #23283a;
  box-shadow:var(--shadow);
  border-radius:var(--radius);
  padding:24px 28px;
}

.card-head h1{
  margin:0 0 6px 0; font-weight:700; letter-spacing:.2px;
}
.subtitle{margin:0 0 18px; color:var(--muted); font-size:14px}

/* segmented control */
.seg{
  display:inline-grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:0;
  padding:4px; margin:6px 0 16px; border:1px solid #28304a; border-radius:12px;
  background:#0f1320;
}
.seg legend{font-size:13px; color:var(--muted); padding:0 6px}
.seg input{display:none}
.seg label{
  padding:10px 12px; text-align:center; cursor:pointer; user-select:none; font-weight:600;
  color:#aeb7c4; border-radius:8px; transition:.2s;
}
.seg input:checked + label{
  background: linear-gradient(180deg, #223247, #202a3f);
  color:#fff; box-shadow: inset 0 0 0 1px #2f3a57;
}
.seg label:hover{background:#1a2236}

/* grid layout */
.grid{
  display:grid; gap:14px 18px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px){
  .grid{grid-template-columns: 1fr}
}

.field{display:flex; flex-direction:column}
.field label{font-weight:600; margin:4px 0}
.req{color:var(--danger)}
.field small{color:var(--muted); margin-top:6px}

input[type="text"], input[type="email"], select, textarea{
  background:#0f1320; color:#eaf0ff;
  border:1px solid #2a3248; border-radius:12px;
  padding:12px 12px; outline:none; transition:.2s; width:100%;
}
textarea{resize:vertical; min-height:110px}
input:focus, textarea:focus, select:focus{box-shadow: var(--ring); border-color:#3652ff}

select{appearance:none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23a9b1bd' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; padding-right:30px}

/* === URL chips: look/size 1:1 with normal inputs, but scoped === */
.field .chips{
  display:flex; flex-wrap:wrap; align-items:center;
  width:100%;
  padding: 4px 4px 4px 7px;                /* match input padding */
  border:1px solid #2a3248;        /* match input border */
  border-radius:12px;              /* match input radius */
  background:#0f1320;              /* match input bg */
  color:#eaf0ff;
}

.field .chip-wrap{ display:flex; flex-wrap:wrap; }

.field .chip{
  border:0; background:#213049; color:#dfe7ff;
  padding:6px 10px; border-radius:999px; cursor:pointer;
  font-size:14px; line-height:1.2;
}
.field .chip:hover{ background:#2a3b5e; }

/* IMPORTANT: make the inline text input inside the chips NOT inherit global input styles */
.field .chips input[type="text"]{
  flex:1; min-width:150px;
  border:0 !important;             /* beat global input[type=text] */
  outline:0; background:transparent; color:#eaf0ff;
  padding:6px 4px; font-size:15px; height:auto;
  box-shadow:none !important;
}

/* === Dropzone: keep it as a single, clickable area; hide native file input === */
.field .dropzone{
  position:relative;
  border:1px dashed #2a3248;
  border-radius:12px;
  background:#0f1320;
  height:110px;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.field .dropzone.drag{ border-color:var(--accent); }

/* Make sure the native input never shows; stretch over the zone */
.field .dropzone input[type="file"]{
  position:absolute !important;
  inset:0 !important;
  opacity:0 !important;
  width:100% !important;
  height:100% !important;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
}

.field .dropzone .droptext{
  pointer-events:none; color:#aeb7c4; font-size:14px; text-align:center;
}

.field .dropzone img{
  display:none;
  height:100%; width:auto; object-fit:contain; pointer-events:none;
}



/* actions */
.actions{
  display:flex; justify-content:space-between; gap:12px; margin-top:16px
}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 16px; border-radius:12px; border:1px solid #2a3248; cursor:pointer;
  text-decoration:none; color:#eaf0ff; background:#111522;
}
.btn:hover{background:#151a2b}
.btn.primary{border-color:#1e9b83; background:linear-gradient(180deg, #2bd3b2, #1dae90)}
.btn.primary:hover{filter:brightness(1.05)}
.btn.ghost{background:transparent}

