body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

header {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

header nav {
    display: flex;
    gap: 1rem;
}

header nav a {
    color: #fff;
    text-decoration: none;
}

header h1 {
    margin: 0;
}

main {
    padding: 2rem;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

#search-form {
    display: flex;
}

#search-input {
    flex-grow: 1;
    padding: 0.5rem;
}

button {
    padding: 0.5rem 1rem;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
}

#results-container {
    margin-top: 2rem;
}

.result-item {
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f9f9f9;
    border-radius: 5px;
}
.result-item h3 {
    margin-top: 0;
    color: #333;
}
.result-item p {
    margin: 0.5rem 0;
}
.result-item strong {
    color: #555;
}
.result-item > a {  /* Direct child links of result-item */
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 3px;
}
.result-item ul {
    list-style-type: disc;  /* Changed to disc for bullet points */
    padding-left: 20px;  /* Add some left padding for the bullets */
}
.result-item ul li {
    margin-bottom: 0.5rem;
}
.result-item ul li a {
    color: #007bff;
    text-decoration: none;
    display: inline;  /* Override the block display */
    background-color: transparent;  /* Remove background color */
    padding: 0;  /* Remove padding */
    margin: 0;  /* Remove margin */
    border-radius: 0;  /* Remove border radius */
}
.result-item ul li a:hover {
    text-decoration: underline;
}


/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    margin-top: 0;
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
}

.required {
    color: red;
    margin-left: 2px;
}

.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 2px;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.flash-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 3px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}


footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Calendar Styles */
.calendar-container {
    max-width: 800px;
    margin: 0 auto;
}

.calendar-container h2 {
    color: #333;
    margin-bottom: 1rem;
}

.calendar-actions {
    margin: 1.5rem 0;
}

.calendar-options-accordion {
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin-bottom: 2rem;
}

.calendar-options-summary {
    padding: 1rem 1.5rem;
    cursor: pointer;
    background-color: #f9f9f9;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    user-select: none;
    list-style: none;
}

.calendar-options-summary:hover {
    background-color: #f0f0f0;
}

.calendar-options-summary h3 {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-size: 1.1rem;
    display: inline;
}

.calendar-options-summary p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.calendar-options-summary::-webkit-details-marker {
    display: none;
}

.calendar-options-summary::before {
    content: "▶";
    color: #007bff;
    font-weight: bold;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.calendar-options-accordion[open] .calendar-options-summary::before {
    transform: rotate(90deg);
}

.calendar-options-accordion[open] .calendar-options-summary {
    border-bottom: 1px solid #ddd;
    border-radius: 5px 5px 0 0;
}

.calendar-options {
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 0 0 5px 5px;
}

.calendar-options h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.calendar-options > p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.local-dev-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 3px;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
}

.local-dev-notice p {
    margin: 0;
    color: #856404;
    font-size: 0.85rem;
}

.calendar-buttons {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.button-group {
    text-align: center;
}

.button-group h4 {
    color: #333;
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.button-help {
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-style: italic;
}

.download-group {
    border-right: 1px solid #ddd;
    padding-right: 1.5rem;
}

.download-btn {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
    margin-bottom: 0.5rem;
    min-width: 160px;
}

.download-btn:hover {
    background-color: #218838;
    border-color: #218838;
}

.subscribe-group .subscription-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    justify-items: center;
    margin-bottom: 0.5rem;
}

.calendar-subscribe p {
    color: #555;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.local-dev-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 3px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.local-dev-notice p {
    margin: 0;
    color: #856404;
    font-size: 0.85rem;
}

.subscription-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    justify-items: center;
    margin-bottom: 0.5rem;
}

.subscription-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.subscription-btn .btn-icon {
    font-size: 1rem;
}

.outlook-btn {
    background-color: #0078d4;
    color: white;
    border-color: #0078d4;
}

.outlook-btn:hover {
    background-color: #106ebe;
    border-color: #106ebe;
}

.google-btn {
    background-color: #4285f4;
    color: white;
    border-color: #4285f4;
}

.google-btn:hover {
    background-color: #3367d6;
    border-color: #3367d6;
}

.apple-btn {
    background-color: #007aff;
    color: white;
    border-color: #007aff;
}

.apple-btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.copy-btn {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}

.copy-btn:hover {
    background-color: #545b62;
    border-color: #545b62;
}

.subscription-help {
    border-top: 1px solid #ddd;
    padding-top: 1rem;
    margin-top: 1rem;
}

.subscription-help summary {
    color: #007bff;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.subscription-help summary:hover {
    text-decoration: underline;
}

.help-content {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    padding: 1rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    text-align: left;
}

.help-content p {
    margin: 0.5rem 0;
    color: #555;
}

.help-content strong {
    color: #333;
}

.calendar-feed {
    margin-top: 2rem;
}

.meeting-view-controls {
    margin-bottom: 1.5rem;
    text-align: center;
}

.view-toggle {
    display: inline-flex;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.toggle-btn {
    background-color: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-right: 1px solid #ddd;
}

.toggle-btn:last-child {
    border-right: none;
}

.toggle-btn:hover {
    background-color: #e9ecef;
}

.toggle-btn.active {
    background-color: #007bff;
    color: white;
}

.toggle-btn.active:hover {
    background-color: #0056b3;
}

.loading-state {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-state {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
    text-align: center;
}

.meetings-list {
    margin: 2rem 0;
}

.meeting-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s ease;
}

.meeting-item:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.meeting-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.meeting-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.meeting-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.meeting-actions .btn-primary,
.meeting-actions .btn-secondary {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    white-space: nowrap;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.meeting-details p {
    margin: 0.5rem 0;
    color: #555;
}

.meeting-details strong {
    color: #333;
}

.meeting-documents {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.meeting-documents strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.document-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.document-link {
    background-color: #e7f3ff;
    color: #0066cc;
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.9rem;
    border: 1px solid #b3d9ff;
    transition: background-color 0.3s, border-color 0.3s;
}

.document-link:hover {
    background-color: #cce7ff;
    border-color: #80bfff;
    text-decoration: none;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #666;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* Pagination Styles */
.pagination-container {
    margin: 2rem 0;
    text-align: center;
}

.results-info {
    color: #555;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.pagination-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-btn.disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #ddd;
}

.pagination-ellipsis {
    color: #6c757d;
    padding: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .meeting-header {
        flex-direction: column;
        gap: 1rem;
    }

    .meeting-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .meeting-actions .btn-primary,
    .meeting-actions .btn-secondary {
        flex: 1;
        text-align: center;
    }

    .pagination {
        gap: 0.25rem;
    }

    .pagination-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .calendar-buttons {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .download-group {
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-right: 0;
        padding-bottom: 1.5rem;
    }

    .subscribe-group .subscription-links {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .subscription-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .calendar-options {
        padding: 1rem;
    }

    .calendar-options-summary {
        padding: 1rem;
    }

    .calendar-options-summary h3 {
        font-size: 1rem;
    }

    .calendar-options-summary p {
        font-size: 0.85rem;
    }

    .view-toggle {
        width: 100%;
        max-width: 300px;
    }

    .toggle-btn {
        flex: 1;
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }
}
