/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #230717;
  color: #ececec;
  line-height: 1.6;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: linear-gradient(90deg, #230717, #1b4d65);
  color: #ececec;
  border-bottom: 3px solid #670aa4;
}

header h1 {
  font-size: 1.8rem;
  letter-spacing: 1px;
}

header .logo {
  font-weight: bold;
  color: #ad1c1d;
  font-size: 1.2rem;
}

/* Main layout */
main {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
}

/* Left panel (buy, remove, total) */
.left-panel {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  background:linear-gradient(to bottom, #670aa4, #1b4d65);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.remove-btn,
.buy-btn {
  background-color: #ad1c1d;
  border: none;
  color: #ececec;
  padding: 12px 25px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.remove-btn:hover,
.buy-btn:hover {
  background-color:transparent;
  transform: scale(1.03);
}

.buy-section {
  margin-top: 15px;
}

/* Checkbox group styling */
.buy-section .checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.buy-section .checkbox-group label {
  color: #ececec;
}

/* Smooth show/hide of number input */
.buy-section .checkbox-group input[type="number"] {
  opacity: 0;
  max-width: 0;
  padding: 4px;
  border: 1px solid #916876;
  border-radius: 6px;
  background-color: #230717;
  color: #ececec;
  transform: translateX(-10px);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    max-width 0.3s ease,
    transform 0.3s ease;
}

.buy-section .checkbox-group input[type="checkbox"]:checked ~ input[type="number"] {
  opacity: 1;
  max-width: 80px;
  transform: translateX(0);
  pointer-events: all;
}

/* Checkbox styling */
.buy-section .checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #670aa4;
  cursor: pointer;
}

.reload-btn {
    background-color: #ad1c1d;
    color: #ececec;
    padding: 12px 25px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
    transition: 0.3s;
}

.reload-btn:hover {
    background-color: #70393b;
    transform: scale(1.05);
}
/* Right panel (ticket info) */
.right-panel {
  width: 40%;
  border-radius: 16px;
  height: fit-content;
}

.right-panel h2 {
  color: #ececec;
  margin-bottom: 15px;
  border-bottom: 2px solid #670aa4;
  padding-bottom: 8px;
}

.image-area {
  text-align: center;
}

.image-area img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid #670aa4;
}

/* Bottom section */
.bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(to bottom, #670aa4, #1b4d65);
  color: #ececec;
  margin: 40px;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.event-about-box {
    margin-top: 15px;
    background: rgba(124, 12, 101, 0.35);
    border-left: 4px solid #ad1c1d;
    padding: 10px 15px;
    border-radius: 8px;
    color: #f1e4f8;
    font-family: 'Lexend', sans-serif;
    font-size: 1rem;
    box-shadow: 0 0 10px rgba(173, 28, 29, 0.25);
    transition: transform 0.2s ease;
}

.event-about-box:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(118, 10, 164, 0.45);
}

/* Responsive */
@media (max-width: 768px) {
  main,
  .bottom {
    flex-direction: column;
  }

  .left-panel,
  .right-panel,
  .about,
  .image-area {
    width: 100%;
  }

  main {
    padding: 20px;
  }

  .bottom {
    margin: 20px;
  }

  
    
}