:root {
  --body-bg: linear-gradient(135deg, #e0eafc, #cfdef3);
  --header-bg: rgba(0, 0, 0, 0.05);
  --header-text: #333;
  --header-subtext: #666;
  /* You can add more variables as needed */
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--body-bg);
  margin: 0;
  padding: 20px;
}

.app-header {
  text-align: center;
  margin-bottom: 20px;
  padding: 20px;
  background: var(--header-bg);
  border-radius: 8px;
}

.app-header h1 {
  font-size: 2.5em;
  margin: 0;
  color: var(--header-text);
}

.app-header p {
  font-size: 1.2em;
  color: var(--header-subtext);
}

.container {
  max-width: 800px;
  margin: auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

form label {
  font-weight: 500;
  margin-bottom: 15px;
  display: block;
}

form input[type="text"],
form input[type="date"],
form input[type="time"],
form input[type="color"] {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: border-color 0.3s;
}

form input[type="date"],
form input[type="time"] {
  /* Remove native appearance and provide custom styling */
  appearance: none;
  -webkit-appearance: none;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff; /* removed background icon */
  font-size: 1em;
  color: #333;
}

form input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: 2px solid #ccc;
  border-radius: 50%;
  padding: 0;
}

form input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

form input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}

form input[type="text"]:focus,
form input[type="date"]:focus,
form input[type="time"]:focus,
form input[type="color"]:focus {
  border-color: #0078d4;
}

button {
  margin-top: 20px;
  padding: 12px 20px;
  background: linear-gradient(45deg, #0078d4, #005a9e);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s;
}

button:hover {
  background: linear-gradient(45deg, #005a9e, #0078d4);
}

.ticket-card {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fafafa;
  text-align: center;
  transition: transform 0.3s;
}

.ticket-card:hover {
  transform: scale(1.02);
}

.ticket-card h2 {
  margin-top: 0;
  font-size: 1.8em;
}

.valid {
  color: green;
  font-weight: bold;
}

.used {
  color: red;
  font-weight: bold;
}

/* Custom Flatpickr Styling */
.flatpickr-input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
  font-size: 1em;
  color: #333;
}

.flatpickr-calendar {
  border: 1px solid #0078d4;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.flatpickr-day,
.flatpickr-time {
  border-radius: 4px;
}

.flatpickr-day:hover,
.flatpickr-day:focus,
.flatpickr-time:hover,
.flatpickr-time:focus {
  background: #0078d4;
  color: #fff;
}

.ticket-container {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
  padding: 40px;
  border-radius: 12px;
  margin: 20px auto;
  max-width: 600px;
  animation: fadeIn 1s ease-in-out;
}

.ticket-card.creative {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border: 2px dashed #0078d4;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.3s;
}

.ticket-card.creative:hover {
  transform: scale(1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Styling for the created tickets list */
#ticket-list {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.ticket-card-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.ticket-card-item:hover {
  transform: scale(1.02);
}

.ticket-card-item h3 {
  margin-top: 0;
  font-size: 1.2em;
  color: #0078d4;
}

.ticket-card-item p {
  margin: 5px 0;
  font-size: 0.9em;
  color: #555;
}

.delete-btn {
  background: #ff4d4d;
  border: none;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.8em;
  margin-top: 10px;
}

.delete-btn:hover {
  background: #ff1a1a;
}

.page-layout {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.main-content {
  flex: 1;
}

.sidebar {
  flex: 0 0 250px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: calc(100vh - 60px);
  overflow-y: auto;
}

/* Theme selector styling */
.theme-selector {
  margin-top: 10px;
  display: inline-block;
  padding: 5px 15px;
  border: 1px solid #0078d4;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-selector label {
  font-weight: 500;
  color: var(--header-text);
  font-size: 0.95em;
}

.theme-selector select {
  margin-left: 8px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1em;
  color: var(--header-text);
  cursor: pointer;
}

/* Optionally style the select's arrow (if supported) */
.theme-selector select::-ms-expand {
  display: none;
}

/* Notification styling */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #0078d4;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

.notification.show {
  opacity: 1;
}
