html {
  font-size: 1.11rem; /* 1rem = 16px */
}

body {
  font-family: Avenir, Roboto, Helvetica, Arial, sans-serif;
  margin: 1.25rem;
  background: linear-gradient(to bottom, #fff8f3, #f4e9e1);
  background-attachment: fixed;
  font-size: 1rem;
  color: #3a3a3a;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fffaf6;
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  overflow: hidden;
  font-size: 0.875rem;
}

table th,
table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e7dcd3;
  text-align: left;
}

table th {
  background-color: #fbeedc;
  font-weight: 600;
  color: #5d4534;
}

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

table tr:hover {
  background-color: #f9eae0;
}

/* Buttons */
button {
  background-color: #d88c4f;
  color: white;
  border: none;
  padding: 0.625rem 1rem;
  margin: 0.1rem 0.1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
  font-family: Avenir, Helvetica, Roboto, sans-serif;
}

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

/* Modal backdrop */
#modalBackdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
}

/* Modal */
#editUserModal {
  display: none;
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff8f3;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
  z-index: 1000;
  width: 25rem;
  max-width: 90%;
}

#editUserModal h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #4a372d;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  margin: 0.5rem 0 1rem;
  border: 1px solid #d6c4b3;
  border-radius: 0.5rem;
  background-color: #fffefb;
  color: #3b2e28;
  font-size: 0.9375rem;
  box-sizing: border-box;
}

input[type="checkbox"] {
  margin-left: 0.25rem;
}

/* Modal buttons */
.modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.modal-buttons button {
  width: 48%;
}




#activityModal {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff8f3;
  padding: 24px 28px;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  width: 500px;
  max-width: 90%;
  display: none;
}

#activityModal h3 {
  margin-top: 0;
  font-size: 20px;
  color: #4a372d;
}

#activityModal ul {
  padding-left: 20px;
  margin-top: 10px;
  color: #3b2e28;
}

#activityModal button {
  margin-top: 16px;
  background-color: #c97b42;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
}

#activityModal button:hover {
  background-color: #b76b36;
}


.notification-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #4caf50;
  color: white;
  text-align: center;
  padding: 10px;
  font-weight: bold;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}
.notification-banner.visible {
  opacity: 1;
  transform: translateY(0);
}
.notification-banner.error {
  background-color: #f44336;
}


a {
  color: #d88c4f;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #c97b42;
  text-decoration: underline;
}


.alert {
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 4px;
  font-weight: bold;
}

.alert-success {
  background-color: #e6ffed;
  color: #2b7a2b;
}

.alert-error {
  background-color: #ffe6e6;
  color: #b30000;
}



.navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.5rem 1rem 0.5rem 1rem;
  position: absolute;
  z-index: 100;
  background: rgb(255 255 255 / 51%);
  border-radius: 2rem;
  margin: 0.5rem 1.75rem;
  font-size: 0.75rem;
  right: 0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.nickname {
  color: green;
}

.user-info a > img.avatar {
  display: inline-block;
  vertical-align: middle;
}

.user-info a {
  padding: 0;
  margin: 0;
  border: none;
  text-decoration: none;
  line-height: 0;
}

li {
  border-bottom: 1px solid rgba(0,0,0,0.25);
  margin: 2rem 0 2rem 0;
}
