body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  color: #24292e;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #f6f8fa;
}

header {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e1e4e8;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

nav {
    margin-top: 1rem;
}

nav a {
    color: #0366d6;
    text-decoration: none;
    margin: 0 0.5rem;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

.content {
  background: white;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.cta-button {
  display: inline-block;
  background-color: #2ea44f;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 1rem;
  margin-right: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cta-button:hover {
  background-color: #2c974b;
}

.cta-button.secondary {
  background-color: #0366d6;
}

.cta-button.secondary:hover {
  background-color: #005cc5;
}

.cta-button:disabled {
    background-color: #94d3a2;
    cursor: not-allowed;
}

footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.9rem;
  color: #6a737d;
}

/* Event Directory Styles */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    background: #f1f8ff;
    padding: 1rem;
    border-radius: 6px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.event-card {
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.event-card .category-badge {
    align-self: flex-start;
}

.event-card h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.event-card p {
    font-size: 0.9rem;
    flex-grow: 1;
}

.event-meta {
    font-size: 0.8rem;
    color: #586069;
    margin-bottom: 1rem;
}

/* Badge Styles */
.category-badge {
    background-color: #e1f5fe;
    color: #039be5;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.status-open { background-color: #dcffe4; color: #1a7f37; }
.status-full { background-color: #fff5d1; color: #9a6700; }
.status-closed { background-color: #ffebe9; color: #cf222e; }

/* Event Detail Styles */
.event-header {
    margin-bottom: 2rem;
}

.event-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.info-item {
    font-size: 0.95rem;
}

.signup-section {
    margin-top: 3rem;
    padding: 2rem;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    text-align: center;
}

.status-box {
    margin-bottom: 1rem;
    font-weight: bold;
    font-size: 1.1rem;
}

.notice-box {
    background-color: #fffbdd;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

/* Signup Form Styles */
.event-signup-container {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.event-signup-container h3 {
    margin-top: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5da;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0366d6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.3);
}

.required {
    color: #cb2431;
}

.success-box {
    background-color: #dcffe4;
    border: 1px solid #1a7f37;
    color: #1a7f37;
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
}

.success-box h4 {
    margin-top: 0;
    color: #1a7f37;
}

.back-link {
    display: block;
    margin-top: 2rem;
    color: #0366d6;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Participants Table Styles */
.participants-section {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.participants-section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.participants-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.participants-table th,
.participants-table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #e1e4e8;
}

.participants-table th {
    background-color: #f6f8fa;
    font-weight: 600;
}

.participants-table tr:last-child td {
    border-bottom: none;
}

.error-text {
    color: #cf222e;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 600px) {
    .event-grid {
        grid-template-columns: 1fr;
    }
}
