/* Ensure padding/border is included in width */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #e9f8ff;
}

.navbar {
  background-color: #274c8a;
  color: white;
  width: 100%;
}

.navbar-inner {
  width: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  position: relative;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 50px;
  width: auto;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
}

.brand-name {
  font-size: 18px;
  font-weight: bold;
  font-family: "Copperplate", "Copperplate Gothic Light", fantasy;
}

.admin-wrapper {
  display: flex;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.admin-login-container {
  width: 100%;
  max-width: 440px;
  padding: 40px 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  text-align: center;
}

.admin-login-container h2 {
  color: #274c8a;
  margin-bottom: 24px;
}

.admin-login-container input {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #333;
  border-radius: 8px;
  font-size: 16px;
}

.admin-login-container button {
  width: 100%;
  padding: 16px;
  background: #2a64d9;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

.admin-login-container button:hover {
  background: #1c3a6e;
}

a#forgotPassword {
  text-decoration: underline;
  color: #3366cc;
  cursor: pointer;
  display: inline-block;
  margin-top: 10px;
}

/* Toast Notification */
#toast {
  visibility: hidden;
  min-width: 250px;
  max-width: 90%;
  background-color: #c0392b; /* red for error */
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#toast.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}
.loading {
  opacity: 0.6;
  pointer-events: none;
}
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}
.show-spinner {
  display: inline-block;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}