* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 40px;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #0f172a;
  min-height: 100vh;
}

/* Center only the login page */
body:not(.logs-page) {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Default card = login page */
.card {
  background: white;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* Logs page gets wider */
.logs-page .card {
  max-width: 1800px;
}

h1,
h2 {
  margin: 0 0 8px;
  color: #0f172a;
}

p {
  margin: 0 0 18px;
  color: #475569;
}

.warning {
  background: #fff7ed;
  border-left: 5px solid #f97316;
  padding: 14px 16px;
  border-radius: 10px;
  margin: 18px 0;
  color: #7c2d12;
}

/* Form */

label {
  font-weight: bold;
  display: block;
  margin-top: 14px;
  margin-bottom: 8px;
}

input {
  width: 100%;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-size: 16px;
  outline: none;
}

input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* Buttons */

button,
a.button {
  display: inline-block;
  background: #2563eb;
  color: white;
  border: none;
  padding: 13px 20px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  margin-right: 8px;
}

button:hover,
a.button:hover {
  background: #1d4ed8;
}

a.button.secondary {
  background: #111827;
}

a.button.secondary:hover {
  background: #374151;
}

/* Logs table */

.table-wrap {
  overflow-x: auto;
  margin: 20px 0 24px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: white;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1200px;
}

th {
  background: #111827;
  color: white;
  text-align: left;
  font-size: 14px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  vertical-align: top;
}

th:last-child,
td:last-child {
  border-right: none;
}

tbody tr:last-child td {
  border-bottom: none;
}

tr:nth-child(even) {
  background: #f9fafb;
}

tr:hover {
  background: #eff6ff;
}

/* Browser column */
th:nth-child(6),
td:nth-child(6) {
  max-width: 420px;
  white-space: normal;
  word-break: break-word;
}

/* Small columns */
th:nth-child(1),
td:nth-child(1),
th:nth-child(7),
td:nth-child(7),
th:nth-child(8),
td:nth-child(8),
th:nth-child(9),
td:nth-child(9),
th:nth-child(10),
td:nth-child(10) {
  text-align: center;
  white-space: nowrap;
}

.small {
  font-size: 12px;
  max-width: 300px;
  word-break: break-word;
}

/* Mobile */

@media (max-width: 700px) {
  body {
    padding: 20px;
  }

  .card {
    padding: 22px;
  }

  button,
  a.button {
    width: 100%;
    text-align: center;
    margin: 6px 0;
  }
}
/* LOGIN PAGE */

.login-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #dbeafe, #f8fafc);
}

.login-page .card {
  width: 100%;
  max-width: 460px;
  background: rgba(255,255,255,.95);
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 24px 60px rgba(15,23,42,.15);
}

.login-page .header {
  text-align: center;
  margin-bottom: 28px;
}

.login-page .badge {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.login-page h1 {
  margin: 0;
  color: #111827;
  font-size: 30px;
}

.login-page p {
  color: #6b7280;
  margin-top: 10px;
}

.login-page input {
  width: 100%;
  padding: 14px 15px;
  margin-bottom: 18px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  font-size: 16px;
  outline: none;
  transition: .2s;
}

.login-page input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}

.login-page button {
  width: 100%;
  background: #2563eb;
  color: white;
  border: none;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}

.login-page button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}