:root {
  --bg: #000000;
  --card: #111111;
  --border: #2a2a40;

  --text: #eaeaea;
  --muted: #a1a1b3;

  --primary: #30D5C8;
  --primary-dark: #30D5C8;

  --success: #22c55e;
  --danger: #ef4444;
}

/* RESET */
* {
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto;
  background: var(--bg);
  color: var(--text);
  line-height:1.5;
}

.timer {
  position: fixed;
  bottom: 10px;
  right: 0px;
  background-color: #1d1d1d;
  padding: 10px;
  border-bottom-left-radius: 10px;
  border-top-left-radius: 10px;
  &:not(:has(span)) {
    display: none;
  }
}

/* LAYOUT */
.container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 16px;
}

/* CARD */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

/* HEADINGS */
h1 { font-size: 24px; margin-bottom: 20px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }

/* LINKS */
a {
  color: var(--primary);
  text-decoration: none;
}

/* ENTRY */
.entry {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display:flex;
  justify-content: space-between;
  gap:5px;
}

/* BUTTONS */
.btn {
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  display:inline-block;
}

.start { background: var(--success); color:#fff; }
.stop { background: var(--danger); color:#fff; }

/* TOPBAR */
.topbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 16px;
  background: rgba(20,20,33,0.95);
  border-bottom:1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.topbar-left,
.topbar-right {
  display:flex;
  align-items:center;
  gap:10px;
}

.logo {
  font-weight:600;
  color: var(--primary);
}

/* BURGER */
.burger {
  font-size:22px;
  background:none;
  border:none;
  color:#fff;
  cursor:pointer;
}

/* LIVE TIMER */
.live {
  font-weight:600;
  color: var(--success);
}

/* MOBILE MENU */
.mobile-menu {
  position:fixed;
  top:0;
  left:-260px;
  width:240px;
  height:100vh;
  background: var(--card);
  border-right:1px solid var(--border);
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:15px;
  transition:0.3s ease;
  z-index:2000;
}

.mobile-menu a {
  color: var(--primary);
  font-size:16px;
}

.mobile-menu.open {
  left:0;
}

/* OVERLAY */
body.menu-open::before {
  content:"";
  position:fixed;
  top:0;left:0;
  width:100%;height:100%;
  background:rgba(0,0,0,0.5);
  z-index:1500;
}

/* TABLE */
table {
  width:100%;
  border-collapse: collapse;
  margin-top:10px;
}

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

th {
  color: var(--primary);
}

/* INPUTS */
input {
  width:100%;
  padding:10px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#0f0f1a;
  color:var(--text);
  margin:6px 0 12px;
}

/* -------------------- */
/* 📱 RESPONSIVE */
/* -------------------- */

@media (max-width: 900px) {
  .container {
      margin: 20px auto;
  }

  .card {
      padding: 16px;
  }
}

@media (max-width: 600px) {

  .topbar {
      padding:10px;
  }

  .logo {
      font-size:14px;
  }

  .menu-hide {
      display:none;
  }

  h1 {
      font-size:20px;
  }

  .btn {
      padding:8px;
      font-size:13px;
  }

  table {
      font-size:13px;
  }
}

@media (max-width: 400px) {

  .topbar-right {
      flex-direction:column;
      align-items:flex-end;
  }
}
