@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
  box-sizing: border-box;
}

:root {
  --bg: #f5f7fb;
  --sidebar: #111827;
  --sidebar-hover: #1f2937;
  --text: #182230;
  --muted: #6b7280;
  --border: #e6eaf0;
  --card: #ffffff;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --red: #ef4444;
  --green: #22c55e;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app {
  display: flex;
  min-height: 100vh;
}

/* =========================
   BAL OLDALI MENÜ
========================= */

.sidebar {
  width: 250px;
  min-height: 100vh;
  background: var(--sidebar);
  color: white;
  padding: 26px 14px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.brand {
  padding: 0 14px;
  margin-bottom: 42px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand span {
  color: #ffffff;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sidebar nav a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 15px;
  border-radius: 9px;
  transition: 0.2s;
}

.sidebar nav a:hover {
  background: var(--sidebar-hover);
  color: white;
}

.sidebar nav a.active {
  background: #1e3a5f;
  color: #ffffff;
}

/* =========================
   FŐ RÉSZ
========================= */

main {
  flex: 1;
  min-width: 0;
}

header {
  height: 74px;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 34px;
}

.hamb {
  font-size: 23px;
  color: #6b7280;
}

.search {
  flex: 1;
  max-width: 600px;
}

.search input {
  width: 100%;
  height: 42px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 8px;
  padding: 0 15px;
  font-size: 14px;
  outline: none;
  color: var(--text);
}

.search input:focus {
  border-color: #93c5fd;
  background: white;
}

.content {
  padding: 38px;
  max-width: 1400px;
  margin: 0 auto;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.title-row h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.title-row p {
  margin: 7px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* =========================
   GOMBOK
========================= */

.primary,
.secondary {
  border: 0;
  border-radius: 8px;
  padding: 11px 17px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.18);
}

.primary:hover {
  background: var(--primary-hover);
}

.secondary {
  background: #f3f4f6;
  color: #374151;
}

.secondary:hover {
  background: #e5e7eb;
}

.full {
  width: 100%;
  margin-top: 8px;
}

/* =========================
   TÁBLÁZAT
========================= */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

thead {
  background: #fafbfc;
}

th {
  padding: 15px 20px;
  text-align: left;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 18px 20px;
  border-bottom: 1px solid #eef0f4;
  font-size: 14px;
}

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

tbody tr:hover {
  background: #fafcff;
}

td b {
  font-weight: 600;
}

.points {
  color: var(--red);
  font-weight: 700;
}

.zero {
  color: var(--green);
  font-weight: 700;
}

.online {
  color: var(--green);
  font-size: 11px;
}

.muted {
  color: #9ca3af;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 50px !important;
}

/* =========================
   IKON GOMBOK
========================= */

.icon {
  width: 34px;
  height: 34px;
  margin-right: 5px;
  border: 1px solid #e5e7eb;
  background: white;
  color: #6b7280;
  border-radius: 7px;
  cursor: pointer;
  transition: 0.2s;
}

.icon:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--primary);
}

.icon.delete:hover {
  border-color: #fecaca;
  background: #fef2f2;
  color: var(--red);
}

.inline {
  display: inline;
}

/* =========================
   JOBB OLDALI RÉSZLETEK
========================= */

.details {
  width: 0;
  background: white;
  border-left: 0 solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  transition: width 0.25s ease;
}

.details.open {
  width: 390px;
  border-left: 1px solid var(--border);
  overflow-y: auto;
}

.detail-head {
  height: 74px;
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
}

.detail-head button,
.close {
  border: 0;
  background: transparent;
  font-size: 25px;
  color: #9ca3af;
  cursor: pointer;
}

.detail-head button:hover,
.close:hover {
  color: var(--text);
}

#detailContent {
  padding: 22px;
}

.profile {
  text-align: center;
  padding: 8px 0 20px;
}

.profile h2 {
  margin: 12px 0 5px;
  font-size: 20px;
}

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

.avatar {
  width: 68px;
  height: 68px;
  margin: 0 auto;
  border-radius: 50%;
  background: #dbeafe;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  font-weight: 700;
}

.box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 17px;
  margin-bottom: 15px;
  background: white;
}

.box h3 {
  margin: 0 0 13px;
  font-size: 14px;
}

.bigpoints {
  color: var(--red);
  font-size: 32px;
  font-weight: 800;
}

.bigpoints small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

/* =========================
   ŰRLAPOK
========================= */

input,
textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  margin-bottom: 10px;
  color: var(--text);
}

input:focus,
textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

textarea {
  resize: vertical;
  min-height: 85px;
}

.log {
  border-top: 1px solid var(--border);
  padding: 13px 0;
  font-size: 13px;
}

.log:first-of-type {
  border-top: 0;
}

.log small {
  display: block;
  margin-top: 5px;
  color: #9ca3af;
}

/* =========================
   ÚJ TAG ABLAK
========================= */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.45);
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-card {
  position: relative;
  width: 420px;
  max-width: calc(100% - 30px);
  background: white;
  border-radius: 13px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.modal-card h2 {
  margin: 0 0 22px;
  font-size: 20px;
}

.modal-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 13px 0 7px;
}

.close {
  position: absolute;
  top: 13px;
  right: 16px;
}

/* =========================
   MOBIL
========================= */

@media (max-width: 900px) {

  .sidebar {
    width: 62px;
    padding: 20px 7px;
  }

  .brand {
    padding: 0;
    justify-content: center;
    font-size: 20px;
  }

  .brand span {
    display: none;
  }

  .sidebar nav a {
    font-size: 0;
    text-align: center;
    padding: 13px 5px;
  }

  header {
    padding: 0 18px;
  }

  .content {
    padding: 22px 16px;
  }

  .title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .details.open {
    position: fixed;
    z-index: 20;
    top: 0;
    right: 0;
    width: min(390px, 100%);
    height: 100vh;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
  }

}
