html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #18191a;
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: #232526;
    color: #fff;
    padding: 1.2rem 0;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.09);
}

footer {
    background: #232526;
    color: #aaa;
    padding: 0.8rem 0;
    text-align: center;
    font-size: 0.95rem;
    margin-top: auto;
}

.container {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0 !important;
    margin: 0;
    box-sizing: border-box;
    min-height: 70vh;
    background: #222324;
    box-shadow: none;
}

h1, h2, h3 {
    font-weight: 600;
    margin-top: 0;
}

input[type="text"], select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    margin: 0.7rem 0 1.1rem 0;
    border: none;
    border-radius: 6px;
    background: #292b2c;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
}

input[type="text"]:focus, select:focus {
    outline: 2px solid #2196f3;
}

label {
    display: block;
    margin-bottom: 0.3rem;
    color: #bbb;
    font-size: 0.98rem;
}

.theme-btn, .submit-btn, .back-btn {
    display: inline-block;
    background: #2196f3;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    margin: 0.8rem 0.5rem 0.8rem 0;
    cursor: pointer;
    transition: background 0.18s;
}

.theme-btn:hover, .submit-btn:hover, .back-btn:hover {
    background: #1769aa;
}

.page {
  display: none;
}

.page:not(.hidden) {
  display: block;
}

.page.active {
    display: block;
}

.event-list, .need-list, .ticket-list, .purchase-list {
    list-style: none;
    padding: 0;
    margin: 0.7rem 0 0 0;
}

.event-list li, .need-list li, .ticket-list li, .purchase-list li {
    background: #292b2c;
    margin-bottom: 0.7rem;
    padding: 0.9rem 1rem;
    border-radius: 7px;
    color: #fff;
    font-size: 1.03rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-list li {
    cursor: pointer;
    transition: background 0.18s;
}

.event-list li:hover {
    background: #313336;
}

@media (max-width: 600px) {
    .container {
        max-width: 100vw;
        border-radius: 0;
        margin-top: 0.5rem;
        padding: 1.2rem 0.5rem 2rem 0.5rem;
    }
    header, footer {
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }
}

/* For the textarea in the add event form */
#addEventForm textarea,
#addEventForm input[type="text"],
#addEventForm input[type="date"],
#addEventForm input[type="time"],
#addEventForm input[type="number"],
#addEventForm select {
    width: 100%;
    box-sizing: border-box;
    background: #292b2c;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.65rem 0.9rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    resize: vertical;
}

#addEventForm textarea {
    min-height: 80px;
    max-height: 200px;
}

/* Optional: subtle border for focus */
#addEventForm textarea:focus,
#addEventForm input:focus,
#addEventForm select:focus {
    outline: 2px solid #2196f3;
}

/* Checkbox and Radio Button Styles */
input[type="checkbox"], input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  background-color: #292b2c;
  border: 2px solid #555;
  border-radius: 4px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  position: relative;
  margin-right: 0.5rem;
  vertical-align: middle;
  transition: background-color 0.2s, border-color 0.2s;
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="checkbox"]:checked {
  background-color: #2196f3;
  border-color: #2196f3;
}

input[type="radio"]:checked {
  background-color: #2196f3;
  border-color: #2196f3;
}

input[type="checkbox"]:checked::after {
  content: '\2713'; /* Checkmark */
  color: white;
  position: absolute;
  top: 1px;
  left: 4px;
  font-size: 16px;
}

input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

input[type="checkbox"]:focus, input[type="radio"]:focus {
  outline: 2px solid #2196f3;
  outline-offset: 2px;
}

/* Date Input Styles */
input[type="date"] {
  background: #292b2c;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  font-size: 1rem;
  box-sizing: border-box;
  cursor: pointer;
  transition: outline 0.2s;
}

input[type="date"]:focus {
  outline: 2px solid #2196f3;
}

/* Remove default calendar icon for better control (optional) */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* General Button Styles */
.theme-btn,
.submit-btn,
.back-btn,
.add-event-btn {
    display: inline-block;
    background: #333; /* Dark grey background */
    color: #fff;      /* White text */
    border: none;
    border-radius: 6px;
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    margin: 0.8rem 0.5rem 0.8rem 0;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.09);
}

.theme-btn:hover,
.submit-btn:hover,
.back-btn:hover,
.add-event-btn:hover {
    background: #444; /* Slightly lighter grey on hover */
    color: #fff;
}

/* For icon-only buttons (like add-event) */
.add-event-btn {
    padding: 0.3em 0.5em;
    background: #333;
    border-radius: 50%;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-event-btn:active,
.theme-btn:active,
.submit-btn:active,
.back-btn:active {
    background: #222;
}

/* Optional: focus state for accessibility */
.theme-btn:focus,
.submit-btn:focus,
.back-btn:focus,
.add-event-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.icon-btn {
    background: none;
    border: none;
    padding: 0.3em 0.5em;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.icon-btn:hover {
    background: #444;
}