/* style.css - Giao diện chung cho FHome */


#loading-screen {
  position: fixed;
  width: 100%;
  height: 100%;
  background: white;
  top: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db; /* Màu xanh */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* ===== Body & Layout ===== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
}

/* ===== Header ===== */
header {
  background-color: #1f2937;
  color: white;
  padding: 0.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header h1 {
  margin: 0;
  font-size: 1.5rem;
}
header nav a {
  color: white;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: bold;
}
header nav a:hover {
  text-decoration: none;
}

/* ===== Footer ===== */
footer {
  background-color: #1f2937;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
}



/* ===== Room List (Trang chủ) ===== */
.room-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 2rem;
}
.room-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: 0.2s;
}
.room-card:hover {
  transform: scale(1.02);
}
.room-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.room-info {
  padding: 1rem;
}
.room-info h3 {
  margin: 0;
  font-size: 1.1rem;
}
.room-info p {
  margin: 0.5rem 0;
  color: #555;
}

/* ===== Form Box: Đăng nhập & Đăng ký ===== */
.login-box, .register-box {
  background-color: white;
  padding: 2rem 2.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 400px;
  margin: 5rem auto;
}
h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #1f2937;
}
/* Thêm box-sizing: border-box */
input[type="text"], input[type="email"], input[type="password"], input[type="datetime-local"], button {
  box-sizing: border-box;
}

/* Đảm bảo cùng chiều cao cho input và button */
input[type="text"], input[type="email"], input[type="password"], input[type="datetime-local"] {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem; /* Đảm bảo cùng font-size */
  line-height: 1.5; /* Đảm bảo cùng chiều cao dòng */
}

button {
  width: 100%;
  padding: 0.75rem;
  background-color: #1f2937;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 1rem; /* Đảm bảo cùng font-size */
  line-height: 1.5; /* Đảm bảo cùng chiều cao dòng */
}

.link {
  text-align: center;
  margin-top: 1rem;
}
.link a {
  text-decoration: none;
  color: #2563eb;
}

/* ===== Responsive cho Login & Register trên điện thoại ===== */
@media (max-width: 480px) {
  .login-box, .register-box {
    width: 80%;
    margin: 2rem auto;
    padding: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="datetime-local"],
  button {
    font-size: 0.95rem;
    padding: 0.65rem;
  }

  .link {
    font-size: 0.9rem;
  }
}
