/* Admin Panel Styling */
.admin-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 8px 12px;
  background-color: rgba(142, 157, 203, 0.7);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  z-index: 900;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Mobile positioning for admin button */
@media (max-width: 768px) {
  .admin-button {
    position: static;
    display: block;
    margin: 20px auto 30px;
    width: 120px;
    text-align: center;
  }
  
  /* Add padding to credits to make room for button */
  #credits {
    margin-bottom: 10px;
  }
}

.admin-button:hover {
  background-color: rgba(142, 157, 203, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Modal overlay */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.admin-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Login modal */
.admin-login-modal {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  width: 320px;
  max-width: 90%;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2),
              0 0 20px rgba(142, 157, 203, 0.3),
              inset 0 0 10px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  position: relative;
  text-align: center;
}

.admin-modal-overlay.show .admin-login-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.admin-login-title {
  color: #8E9DCB;
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.admin-form-group {
  margin-bottom: 15px;
  width: 100%;
  text-align: left;
  position: relative;
}

.admin-form-group label {
  display: block;
  margin-bottom: 5px;
  color: #555;
  font-size: 14px;
}

.admin-form-group input {
  width: 100%;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid rgba(142, 157, 203, 0.4);
  background-color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  font-size: 14px;
  box-sizing: border-box;
}

.admin-form-group input:focus {
  outline: none;
  border-color: rgba(142, 157, 203, 0.8);
  box-shadow: 0 0 8px rgba(142, 157, 203, 0.3);
  background-color: rgba(255, 255, 255, 0.8);
}

/* Password toggle eye icon */
.password-toggle {
  position: absolute;
  right: 10px;
  top: 33px;
  cursor: pointer;
  color: #8E9DCB;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  opacity: 1;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.admin-form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  width: 100%;
}

.admin-submit-btn, .admin-cancel-btn {
  padding: 8px 15px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.admin-submit-btn {
  background-color: rgba(142, 157, 203, 0.8);
  color: white;
  flex-grow: 2;
  margin-right: 10px;
}

.admin-submit-btn:hover {
  background-color: rgba(142, 157, 203, 1);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.admin-cancel-btn {
  background-color: rgba(200, 200, 200, 0.5);
  color: #555;
  flex-grow: 1;
}

.admin-cancel-btn:hover {
  background-color: rgba(200, 200, 200, 0.8);
}

.admin-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(200, 200, 200, 0.5);
  border: none;
  color: #555;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-close-btn:hover {
  background-color: rgba(200, 200, 200, 0.8);
  transform: rotate(90deg);
}

.admin-error-message {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 15px;
  text-align: center;
  opacity: 0;
  height: 0;
  transition: opacity 0.3s ease, height 0.3s ease;
  width: 100%;
}

.admin-error-message.show {
  opacity: 1;
  height: auto;
}

/* Admin panel after login */
.admin-panel {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  width: 360px;
  max-width: 90%;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2),
              0 0 20px rgba(142, 157, 203, 0.3),
              inset 0 0 10px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  display: none;
  text-align: center;
}

.admin-modal-overlay.show .admin-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.admin-panel-title {
  color: #8E9DCB;
  font-size: 22px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}

.admin-section {
  margin-bottom: 20px;
  width: 100%;
}

.admin-section-title {
  color: #555;
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: bold;
  text-align: left;
}

.admin-control-group {
  margin-bottom: 15px;
  text-align: left;
}

.admin-control-group label {
  display: block;
  margin-bottom: 5px;
  color: #555;
  font-size: 14px;
}

.admin-control-group select,
.admin-control-group input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(142, 157, 203, 0.4);
  background-color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.admin-control-group select:focus,
.admin-control-group input:focus {
  outline: none;
  border-color: rgba(142, 157, 203, 0.8);
  box-shadow: 0 0 8px rgba(142, 157, 203, 0.3);
  background-color: rgba(255, 255, 255, 0.8);
}

.admin-save-btn {
  width: 100%;
  padding: 10px;
  background-color: rgba(142, 157, 203, 0.8);
  color: white;
  border: none;
  border-radius: 6px;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-save-btn:hover {
  background-color: rgba(142, 157, 203, 1);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.admin-success-message {
  color: #27ae60;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
  opacity: 0;
  height: 0;
  transition: opacity 0.3s ease, height 0.3s ease;
  width: 100%;
}

.admin-success-message.show {
  opacity: 1;
  height: auto;
}

.admin-logout-btn {
  background-color: rgba(200, 200, 200, 0.5);
  color: #555;
  padding: 8px 15px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: block;
  margin: 15px auto 0;
  width: 100%;
}

.admin-logout-btn:hover {
  background-color: rgba(200, 200, 200, 0.8);
} 