
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.5;
}


.site-header {
  background: #463be5;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.site-header nav {
  margin-left: 2rem; 
  margin-right: auto; 
}
.nav-links {
  list-style: none;
  display:flex;
  gap: 1.5rem;
}
.nav-links a {
  color: white;
  text-decoration: none;
}
.nav-links a.active {
  background: black;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.btn-contact {
  background: #48c7f8;
  color: black;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
}


.top-panels {
  display: flex;
  gap: 2rem;
  padding: 2rem;
}
.card {
  flex: 1;
  background: #f3f3f3;
  padding: 1.5rem;
  border-radius: 6px;
}
.card h2 {
  margin-bottom: 1rem;
}


.next-event {
  padding: 2rem;
  background: #eaeaea;
}
.center-title {
  text-align: center;
  margin-bottom: 1rem;
}
.event-columns {
  display: flex;
  gap: 2rem;
}
.location, .description {
  flex: 1;
  background: white;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
}
.location img {
  max-width: 100%;
  border: 2px solid black;
}


.site-footer {
  background: #463be5;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
}
.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links h4 {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
}

.top-panels {
  display: flex;
  gap: 2rem;
  padding: 2rem;
}

.left-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.charities.card,
.about.card {
  width: 100%;
}

.upcoming.card {
  flex: 1;
}

.carousel {
  position: relative;
  overflow: hidden;
  border: 2px solid black;
  border-radius: 6px;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  display: none;
  text-align: center;
}
.slide.is-active {
  display: block;
}

.carousel img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-bottom: 1px solid #ccc;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background: #aaa;
  cursor: pointer;
}
.dot.is-active {
  background: #463be5;
}

#charityList {
  list-style-type: disc; 
  padding-left: 1.5rem; 
}

#charityList li {
  background: #2a2a2a;       
  border: 2px solid #463be5; 
  color: white;
  padding: 0.6rem 1rem;
  margin: 0.5rem 0;
  border-radius: 6px;
  cursor: default;  
}

/* Event page css*/

.event-page {
  max-width: 700px;
  margin: 2rem auto;
  padding: 2rem;
  background: #e2d6ff; 
  border-radius: 8px;
}

.event-page h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #2d1f66;
}

#searchBar {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1.5rem;
  border: 1px solid #aaa;
  border-radius: 6px;
  font-size: 1rem;
}

#eventList {
  list-style: none;
  padding: 0;
}

#eventList li {
  margin: 0.5rem 0;
  padding: 0.4rem 0.6rem;
  background: white;
  border-radius: 4px;
}

.event-box {
  position: relative;
  padding: 1rem;
  margin: 0.5rem 0;
  border-radius: 8px;
  background: #2a2a2a; 
  border: 2px solid #463be5;
  color: white;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.event-box:hover {
  background: #3a3a3a;
  transform: scale(1.02);
}

li.upcoming {
  border-left: 5px solid #28a745;
}

li.expired {
  border-left: 5px solid #dc3545; 
  opacity: 0.6; 
}



/* Details Css Page, or atleast some of it*/

.register-form input {
  width: 100%;
  padding: 0.8rem;      
  margin: 0.5rem 0;
  border: 1px solid #aaa;
  border-radius: 6px;
  font-size: 1rem;
}
.register-form label {
  font-weight: bold;
  margin-top: 0.5rem;
  display: block;
}

.money-meter {
  background: #f5f5f5;
  border: 2px solid #463be5;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  color: #222;
}
.money-meter h2 {
  color: #463be5;
  margin-bottom: 0.5rem;
}

.event-box {
  position: relative;
  padding: 1rem;
  margin: 0.5rem 0;
  border-radius: 8px;
  background: #2a2a2a;
  border: 2px solid #463be5;
  color: white;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.event-box:hover {
  background: #3a3a3a;
  transform: scale(1.02);
}

.event-box.upcoming {
  border-left: 5px solid #28a745; 
}

.event-box.expired {
  border-left: 5px solid #dc3545; 
  opacity: 0.6;
}

.event-box .watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: bold;
  color: rgba(220, 53, 69, 0.3);
  pointer-events: none;
}

.event-card {
  background: #1e1e2f;
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  margin: 20px auto;
  color: #fff;
}

.event-card h2 {
  font-size: 2.8em;
  color: #002fff;
  margin-bottom: 5px;
  border-radius: 8px;
  background: #2a2a3a;
  text-align: center;
}

.event-card h3 {
  font-size: 1.8em;
  color: #4c0dc2;
  margin-top: 0;
  margin-bottom: 15px;
  border-radius: 4px;
  background: #2a2a3a;
  text-align: center;
}

.event-card h1 {
  font-size: 2em;
  margin-bottom: 15px;
  text-align: center;
  border-radius: 5px;
  background: #2a2a3a;
}

.event-card p {
  margin: 6px 0;
  line-height: 1.4;
}

.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.ticket-card {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #fafafa;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ticket-card h4 {
  margin: 0 0 5px;
  font-size: 16px;
  color: #333;
}

.ticket-card p {
  margin: 2px 0;
  font-size: 14px;
  color: #555;
}

.weather-box {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #e2d6ff;
  border-left: 4px solid #463be5;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #2d1f66;
}

/*The Admin Page Css Mostly specificly for admin*/

.admin-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
}

.admin-card {
  background: #f3f3f3;
  margin-bottom: 2rem;
}

.admin-card h2 {
  margin-bottom: 1rem;
  color: #2d1f66;
}

.table-container {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #ccc;
  text-align: left;
}

.admin-table thead {
  background: #463be5;
  color: white;
}

.admin-table tbody tr:hover {
  background: #eaeaea;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.form-grid label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: #2d1f66;
}

.form-grid input {
  width: 100%;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #aaa;
  font-size: 1rem;
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn.small {
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
}

.btn.primary {
  background: #463be5;
  color: white;
}

.btn.primary:hover {
  background: #372fbb;
}

.btn.secondary {
  background: #999;
  color: white;
}

.btn.secondary:hover {
  background: #777;
}

.btn.danger {
  background: #dc3545;
  color: white;
}

.btn.danger:hover {
  background: #b02a37;
}

.button-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #f3f3f3;
  padding: 2rem;
  border-radius: 8px;
  width: 300px;
  text-align: center;
}

.modal-content h2 {
  margin-bottom: 1rem;
  color: #2d1f66;
}

.modal-content input {
  width: 100%;
  padding: 0.6rem;
  margin: 0.5rem 0;
  border: 1px solid #aaa;
  border-radius: 6px;
  font-size: 1rem;
}

.modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.error-message {
  color: red;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}