
.snooker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.snooker-card {
  background: #1c1c1c;
  color: white;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
  transition: transform 0.2s;
}
.snooker-card:hover {
  transform: scale(1.05);
}
.snooker-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}
.snooker-card .status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 14px;
  margin: 5px 0;
}
.snooker-card .status.free { background: green; }
.snooker-card .status.reserved { background: orange; }
.snooker-card .status.occupied { background: red; }
.book-now, .cancel-booking {
  margin-top: 10px;
  padding: 8px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.book-now { background: #28a745; color: white; }
.cancel-booking { background: #dc3545; color: white; }
.hidden { display: none; }

/* Modal popup */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
}
.close {
  float: right;
  cursor: pointer;
  font-size: 20px;
}
