@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

body {
  font-family: "Source Sans 3", sans-serif;
  max-width: 800px;
  margin: 20px auto;
  padding: 0 20px;
  line-height: 1.6;
}
h1 {
  font-family: "Playfair Display", serif;
  font-weight: normal;
  font-style: italic;
  font-size: 3rem;
  margin-bottom: 0;
  line-height: 1.2;
}
h2 {
  font-size: 1.2rem;
  font-weight: normal;
  margin-top: 0;
  line-height: 1.2;
}
.container {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.form-group {
  margin-bottom: 15px;
}
label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
input[type="text"],
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}
button {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background: #0056b3;
}
button.settings-button {
  background: #6c757d;
  font-size: 16px;
}
button.settings-button:hover {
  background: #5a6268;
}
button.save-button {
  background: #28a745;
}
button.save-button:hover {
  background: #218838;
}
button.cancel-button {
  background: #dc3545;
}
button.cancel-button:hover {
  background: #c82333;
}
#eventDetails {
  display: none;
  margin-top: 20px;
}
.download-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}
.download-link:hover {
  background: #218838;
}
.error {
  color: #dc3545;
  margin-top: 10px;
}
.settings-container {
  text-align: right;
  margin-bottom: 20px;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}
.modal-content {
  background: white;
  width: 90%;
  max-width: 500px;
  margin: 50px auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Dark Theme */
@media (prefers-color-scheme: dark) {
body {
  background: #121212;
  color: #ffffff;
}
.container {
  background: #1e1e1e;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
input[type="text"],
textarea {
  background: #1e1e1e;
  color: #ffffff;
  border: 1px solid #444444;
}
button {
  background: #007bff;
  color: white;
}
button:hover {
  background: #0056b3;
}
button.settings-button {
  background: #6c757d;
}
button.settings-button:hover {
  background: #5a6268;
}
button.save-button {
  background: #28a745;
}
button.save-button:hover {
  background: #218838;
}
button.cancel-button {
  background: #dc3545;
}
button.cancel-button:hover {
  background: #c82333;
}
.download-link {
  background: #28a745;
}
.download-link:hover {
  background: #218838;
}
.modal-content {
  background: #1e1e1e;
  color: #ffffff;
}
}
