body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
}

h1 {
  text-align: center;
  color: #333;
}

.rooms-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
  padding: 15px;
  box-sizing: border-box;
}

.room {
  background-color: #ff4d4d; /* Красный цвет по умолчанию */
  color: white;
  padding: 20px 10px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.room:hover {
  transform: scale(1.05);
}

.room.ready {
  background-color: #4CAF50; /* Зеленый цвет для готовых номеров */
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  max-width: 90%;
  width: 400px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #333;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn-yes {
  background-color: #4CAF50;
  color: white;
}

.btn-yes:hover {
  background-color: #45a049;
}

.btn-cancel {
  background-color: #f44336;
  color: white;
}

.btn-cancel:hover {
  background-color: #da190b;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 600px) {
  .rooms-container {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    padding: 15px;
  }
  
  .room {
    font-size: 1rem;
    padding: 15px 5px;
  }
  
  .modal-content {
    width: 95%;
    flex-direction: column;
    gap: 10px;
  }
  
  .modal-buttons {
    width: 100%;
  }
}
