:root {
  --primary-color: #0f172a;
  --secondary-color: #1e293b;
  --accent-color: #38bdf8;
  --text-color: #f8fafc;
  --success-color: #22c55e;
  --danger-color: #ef4444;
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--primary-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('../images/christmas_background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.container {
  background: rgb(116 116 116 / 27%);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  background: linear-gradient(to right, #38bdf8, #ffffff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

.form-group {
  margin-bottom: 1rem;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(15, 23, 42, 0.6);
  color: white;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-color);
}

.user-info {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.user-info p {
  margin: 0.25rem 0;
  color: #94a3b8;
}

.user-info strong {
  color: white;
}

.points-value {
  color: var(--accent-color);
  font-size: 1.1rem;
  text-shadow: 0 0 5px rgba(56, 189, 248, 0.5);
}

/* Admin Table */
.admin-container {
  max-width: 1200px;
  /* Wider for admin table */
}

.drawing-page-container {
  max-width: 800px;
  /* Wider for drawing canvas */
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

th {
  color: var(--accent-color);
  font-weight: 600;
}

tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.counter {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--success-color);
}

.logout-link {
  display: block;
  margin-top: 1rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
}

.logout-link:hover {
  color: white;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  animation: fadeIn 0.5s ease-out;
}