:root {
  --primary-color: #333;
  --secondary-color: #666;
  --accent-color: #007bff;
  --bg-color: #f9f9f9;
  --card-bg: #fff;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: var(--primary-color);
}

.container {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 500px;
  text-align: center;
}

h1 {
  margin-bottom: 2rem;
  font-weight: 300;
  color: #444;
}

input[type="text"], input[type="password"], input[type="date"], select {
  width: 100%;
  padding: 12px;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
}

button {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
  transition: background 0.3s;
}

button:hover {
  background-color: #555;
}

.secondary-btn {
  background-color: #eee;
  color: #333;
}
.secondary-btn:hover {
  background-color: #ddd;
}

#camera-container {
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: #000;
  height: 300px;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#status-message {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  height: 24px;
}

.success { color: green; }
.error { color: red; }

/* Admin Grid */
.admin-container {
  max-width: 900px !important;
  text-align: left;
}

.header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

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

th, td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

th {
  background-color: #f8f8f8;
}

.tabs {
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}
.tab {
  display: inline-block;
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab.active {
  border-bottom: 2px solid var(--primary-color);
  font-weight: bold;
}

.hidden { display: none; }
