/* ================================
   JT Portal - Fresh style.css
   ================================ */

/* ---------- Reset / basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root{
  --bg: #0f0f0f;
  --card: #151515;
  --card-2: #121212;
  --text: #ffffff;
  --muted: #bdbdbd;
  --muted-2: #8b8b8b;

  --border: rgba(255,255,255,0.08);
  --shadow: 0 0 35px rgba(0,0,0,.6), inset 0 0 20px rgba(255,255,255,0.03);

  --accent-a: #7b2aff;
  --accent-b: #b16cff;
  --accent-glow: #a36cffaa;

  --radius: 16px;
  --radius-sm: 12px;
}

html, body {
  height: 100%;
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

/* ---------- Pagina layout ---------- */
.page-wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px;

  min-height: 100vh;
  display: flex;
  align-items: center;
}

.grid{
  width: 100%;
  display: grid;
  gap: 18px;
}

@media (min-width: 900px){
  .grid{
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }
}

/* Container (mag blijven bestaan in je HTML) */
.container{
  width: 100%;
  padding: 0;
  max-width: none;
}

/* ---------- Card / Panel ---------- */
.card,
.panel{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fadein .55s ease-out;
}

.card{
  padding: 34px 30px;
  text-align: center;
}

.panel{
  padding: 22px;
}

@keyframes fadein{
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Typography ---------- */
.title{
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.subtitle{
  margin: 0 0 24px;
  font-size: 15px;
  color: #cfcfcf;
}

.panel h2{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
}

.muted{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  opacity: .9;
}

.small-note{
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 12px;
}

/* ---------- Form ---------- */
.code-form{
  margin-top: 10px;
}

.code-form label{
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.code-form input{
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  outline: none;
  background: #1f1f1f;
  color: var(--text);
  font-size: 17px;
  text-align: center;
  letter-spacing: 2px;
  transition: 0.2s ease;
}

.code-form input::placeholder{
  color: rgba(255,255,255,0.35);
}

.code-form input:focus{
  border-color: rgba(145,71,255,0.9);
  box-shadow: 0 0 8px rgba(145,71,255,0.45);
}

/* Buttons */
.code-form button{
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;

  color: #fff;
  font-size: 18px;
  font-weight: 700;

  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  box-shadow: 0 0 10px rgba(163,108,255,0.45);
  transition: 0.2s ease;
}

.code-form button:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--accent-glow);
}

.code-form button:active{
  transform: translateY(0px);
}

/* ---------- Alerts ---------- */
.alert{
  padding: 14px 15px;
  border-radius: 12px;
  font-size: 15px;
  margin: 0 0 18px;
  font-weight: 600;
  animation: fadein .35s ease-out;
}

.alert-error{
  background: rgba(255, 47, 47, 0.13);
  border: 1px solid rgba(255, 61, 61, 0.8);
  color: #ff7b7b;
  box-shadow: 0 0 15px rgba(255, 47, 47, 0.35);
}

.alert-success{
  background: rgba(47, 255, 107, 0.12);
  border: 1px solid rgba(66, 255, 122, 0.75);
  color: #7dffc0;
  box-shadow: 0 0 15px rgba(47, 255, 107, 0.30);
}

/* ---------- Snelkoppelingen ---------- */
.actions{
  display: grid;
  gap: 12px;
}

.action-btn{
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;

  color: #fff;
  font-weight: 800;

  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  box-shadow: 0 0 10px rgba(163,108,255,0.35);
  border: 1px solid rgba(255,255,255,0.12);

  transition: 0.2s ease;
}

.action-btn small{
  font-weight: 600;
  opacity: .85;
}

.action-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* ---------- Tabellen (voor puntenlijst etc.) ---------- */
table{
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--card-2);
  border-radius: 12px;
  overflow: hidden;
}

th, td{
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
}

th{
  text-align: left;
  color: #eaeaea;
  background: rgba(255,255,255,0.03);
}

tr:last-child td{
  border-bottom: 0;
}

/* ---------- Mobiel ---------- */
@media (max-width: 600px){
  .page-wrap{
    padding: 14px 10px;
    min-height: auto;
    display: block;
  }

  .card{
    padding: 22px 18px;
    border-radius: 14px;
  }

  .panel{
    border-radius: 14px;
  }

  .title{
    font-size: 26px;
  }

  .subtitle{
    font-size: 14px;
    margin-bottom: 18px;
  }

  .code-form input,
  .code-form button{
    font-size: 16px;
    padding: 12px;
  }

  .code-form input{
    letter-spacing: 1px;
  }

  th, td{
    padding: 8px;
    font-size: 12px;
  }
}
