@charset "utf-8";

/* -------------------------------------------------- admin pages */

body#add,
body#edit,
body#delete,
body#admin-login,
body#admin-index,
body#category,
body#mail_form {
  font-family: 'Inter', sans-serif;
  background-color: #f0f4f8;
  color: #333;
}

#add .container,
#edit .container,
#admin-index .container,
#category .container,
#mail_form .container {
  width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 840px) {
  #add .container,
  #edit .container,
  #admin-index .container,
  #category .container,
  #mail_form .container {
    margin: 1rem;
    padding: 1rem;
  }
}


#admin-index .container {
    width: 1000px;
}

#delete .container {
  max-width: 600px;
  margin: 4rem auto;
  padding: 2.5rem;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Form elements */
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #4a5568;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border-color: #63b3ed;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
  outline: none;
}

/* Buttons */
.action-btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: white;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.action-btn:hover,
button:hover {
  color: white;
}

.action-btn:active {
  box-shadow: none;
}

.action-buttons-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.home_btn {
  background-color: #4299e1;
  margin-top: 20px;
}

.home_btn:hover {
  background-color: #3182ce;
  color: #fff;
}
.button-back {
  background-color: #4299e1;
}

.button-back:hover {
  background-color: #3182ce;
}

.button-add {
  background-color: #1b7c31;
}

.button-add:hover {
  background-color: #164e23;
}

.button-edit {
  background-color: #f6ad55;
}

.button-edit:hover {
  background-color: #ed8936;
}

.button-delete {
  background-color: #e53e3e;
}

.button-delete:hover {
  background-color: #c53030;
}

.button-login {
  background-color: #48bb78;
}

.button-login:hover {
  background-color: #38a169;
}

.button-logout {
  background-color: #718096;
}

.button-logout:hover {
  background-color: #4a5568;
}

.confirm_btn {
  background-color: #48bb78;
}

.confirm_btn:hover {
  background-color: #38a169;
}

.back_btn {
  background-color: #4299e1;
}

.back_btn:hover {
  background-color: #3182ce;
}

.cancel_btn {
  background-color: #e53e3e;
}

.cancel_btn:hover {
  background-color: #c53030;
}


/* Messages */
.message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Login Page */
body#admin-login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-container {
  max-width: 400px;
  padding: 2.5rem;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

button.login {
  background-color: #3182ce;
  width: 100%;
}

button.login:hover {
  background-color: #2c5282;
}

/* Delete Page */
.delete-button {
  background-color: #e53e3e;
  max-width: 200px;
  width: 100%;
  display: inline-block;
}

.delete-button:hover {
  background-color: #c53030;
}

.back-button {
  background-color: #4299e1;
  max-width: 200px;
  width: 100%;
  display: inline-block;
  margin-top: 1rem;
}

.back-button:hover {
  background-color: #3182ce;
}

/* iframe_map */
iframe {
  width: 100%;
  height: 450px;
  border: #666 1px solid;
  border-radius: 8px;
}