* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  -webkit-font-smoothing: antialiased;
}

:root {
  --primary-color: #1a73e8;
  --primary-hover: #1557b0;
  --danger-color: #d93025;
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --border-color: #dadce0;
  --background-light: #f8f9fa;
  --button-color: #2c7a4e;
  --button-hover: #1e5937;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--background-light);
  color: var(--text-primary);
  font-weight: 400;
}

/* Navigation Bar Styles */
.navbar {
  background-color: white;
  box-shadow: 0 1px 2px 0 rgb(60 64 67 / 30%), 0 2px 6px 2px rgb(60 64 67 / 15%);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

.nav-logo a {
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary-color);
}

.container {
  width: 100%;
  max-width: 1500px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.login-card {
  background: white;
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 450px;
  text-align: center;
}

.profile-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  width: 100%;
  margin-bottom: 2rem;
}

h1 {
  color: var(--text-primary);
  font-size: 24px;
  margin-bottom: 2rem;
  font-weight: 500;
}

h2 {
  color: var(--text-primary);
  font-size: 20px;
  margin: 1.5rem 0;
  font-weight: 500;
}

.input-group {
  text-align: left;
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 400;
  outline: none;
  transition: border 0.2s;
}

input:focus {
  border: 2px solid var(--primary-color);
}

.btn {
  padding: 0.75rem 1.5rem;
  background: var(--button-color);
  border: none;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background: var(--button-hover);
}

a.btn {
  color: white;
  text-decoration: none;
}

a.btn:hover {
  color: white;
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

.links {
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

.links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.forgot-password-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.2s;
}

.links a:hover {
  text-decoration: underline;
}

.forgot-password-link a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.error-message {
  background-color: #fce8e6;
  color: var(--danger-color);
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--danger-color);
  border-radius: 4px;
  font-size: 0.875rem;
  text-align: center;
}

.info-message {
  background-color: #e8f0fe;
  color: var(--primary-color);
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  font-size: 0.875rem;
}

.profile-info {
  text-align: left;
  margin: 1rem 0;
  font-size: 0.875rem;
}

.profile-info p {
  margin: 0.75rem 0;
  color: var(--text-secondary);
}

.profile-info strong {
  color: var(--text-primary);
  display: inline-block;
  width: 150px;
}

.events-list {
  margin-top: 1rem;
}

.event-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.event-item:last-child {
  border-bottom: none;
}

.event-time {
  color: var(--text-secondary);
  font-size: 0.75rem;
  white-space: nowrap;
}

.event-content {
  flex: 1;
}

.event-action {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.event-details {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.change-password {
  text-align: left;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.logout-btn {
  margin-top: 1.5rem;
  background: var(--danger-color);
}

.logout-btn:hover {
  background: #c5221f;
}

/* Table styles moved from users.css */
.table-container {
  overflow-x: auto;
  margin-top: 1rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background-color: white;
  box-shadow: 0 1px 2px 0 rgb(60 64 67 / 30%);
  border-radius: 4px;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background-color: var(--background-light);
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover {
  background-color: rgb(0 0 0 / 2%);
}

.text-muted {
  color: var(--text-secondary);
  font-style: italic;
}

.margin-top-1 {
  margin-top: 1rem;
}

.margin-top-2 {
  margin-top: 2rem;
}

.admin-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.password-input {
  width: 320px;
  max-width: 100%;
}

.forgot-password-link {
  text-align: right;
  margin-bottom: 1em;
}
