/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f9f9f9;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 20px;
}

/* Fade-in Animation */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Welcome & Form Containers */
.welcome-container,
.form-container,
.home-container {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.welcome-container h1,
.form-container h2,
.home-container h2 {
  margin-bottom: 15px;
  color: #2c3e50;
}

.welcome-container p {
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

input, select, button {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
  width: 100%;
}

input:focus, select:focus {
  outline: none;
  border-color: #2980b9;
}

button {
  background: #2980b9;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
  border: none;
}

button:hover {
  background: #1f6390;
}

/* Room Grid */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.room-card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.room-card:hover {
  transform: translateY(-5px);
}

.room-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.room-card h3 {
  margin: 8px 0;
  font-size: 20px;
}

.room-card p {
  font-weight: bold;
  margin-bottom: 10px;
}

.card-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.card-buttons button {
  flex: 1;
  font-size: 14px;
  padding: 8px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
}

.close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
}

/* Admin Panel */
ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

ul li {
  padding: 8px 12px;
  background: #ecf0f1;
  margin: 5px 0;
  border-radius: 6px;
  text-align: left;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .welcome-container,
  .form-container,
  .home-container {
    padding: 20px;
  }

  .room-card h3 {
    font-size: 18px;
  }

  button {
    font-size: 14px;
    padding: 8px;
  }
  }
