:root {
  --bg: #f7f6f4;
  --text: #222;
  --accent: #0077c8;
  --accent-hover: #008de3;
  --border: #e0ddd8;
  --header-bg: #f0eeeb;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: "Inter", "Segoe UI", system-ui;
  color: var(--text);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

/* HEADER -------------------------------------------------- */

.wow-header {
  text-align: center;
  padding: 10px 0 14px;
}

.wow-header h1 {
  margin: 0;
  font-size: 1.9rem;
}

.subtitle {
  margin: 4px 0 14px;
  color: #666;
}

/* CONTROLS ------------------------------------------------ */

.controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.controls input {
  padding: 8px 12px;
  min-width: 230px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.controls button {
  padding: 8px 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.controls button:hover {
  background: var(--accent-hover);
}

/* TABLE --------------------------------------------------- */

.table-wrapper {
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: var(--shadow);
  border-radius: 12px;
  overflow: hidden;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

thead th {
  position: sticky;
  top: 0;
  background: var(--header-bg);
  z-index: 20;
}

.filters th {
  position: sticky;
  top: 40px;
  background: var(--header-bg);
  z-index: 19;
}

.filters select {
  width: 100%;
  padding: 5px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* WOW BUTTONS -------------------------------------------- */

td:first-child {
  text-align: center;
}

.wow-btn {
  padding: 8px 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-block;
  margin: 4px auto;
}

.wow-btn:hover {
  background: var(--accent-hover);
}

/* MOBILE CARD VIEW --------------------------------------- */

.card-container {
  display: none;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 14px;
}

.card-header {
  font-weight: bold;
  margin-bottom: 10px;
}

.card-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.card .wow-btn {
  width: 100%;
  margin-top: 12px;
  text-align: center;
}

@media (max-width: 768px) {
  .table-wrapper {
    display: none !important;
  }

  .card-container {
    display: block !important;
  }
}

/* POPUP --------------------------------------------------- */

#wowModalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

#wowModalOverlay.is-visible {
  display: flex;
}

#wowModal {
  background: white;
  border-radius: 14px;
  padding: 18px;
  width: min(420px, 92vw);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.wow-modal-header {
  margin-bottom: 14px;
}

.wow-modal-title {
  margin: 0;
}

.wow-modal-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wow-choice-btn {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

.wow-choice-btn.primary {
  background: var(--accent);
  color: #fff;
}

.wow-modal-cancel {
  margin-top: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
}

