
/*** START EVENTS PAGE ***/
.event .eventComments .highlight {
    background-color: #ffff96;
}

.event ul.rsvpList {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.event .description {
    font-size: 1.1em;
}

.event .direct-link {
    font-size: 0.5em;
}

.event ul.rsvpList li {
    display: inline-block; /* Or block depending on your layout needs */
}

.event h3 {
    font-weight: bold;
}
.event .duration_user_friendly, .event .link {
    font-weight:bold;
    font-size: 1.1em;
}

.event .location {
    font-weight: bold;
    font-size: 1.1em;
}
.event ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.event .comment-thread ul {
    margin-left: 20px;
    padding-left: 10px;
    border-left: 2px solid #eee;
}

.event .comment-thread li {
    margin-bottom: 20px;
}

.event .comment-box {
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    position: relative;
}

.event .poster-info a.viewProfile img {
    width: 16px;
    height: 16px;
}

.event .poster-info i {
    color: gray;
    font-size: 0.8em;
}

.event .comment-box .profile-picture {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 8px;
}

.event .comment-box strong {
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.event .comment-box .comment {
    margin-top: 4px;
    font-size: 15px;
    color: #333;
}

.event .comment-box .timeAgoSpan {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    display: inline-block;
}

.event .comment-box a.reply-link {
    font-size: 13px;
    color: #3498db;
    text-decoration: none;
    display: inline-block;
    margin-top: 6px;
}

.event .comment-box a.reply-link:hover {
    text-decoration: underline;
}

/* Forms */
.event form[data-no-ajax="true"] {
    margin-top: 10px;
}

.event form textarea {
    width: 100%;
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    font-family: sans-serif;
    box-sizing: border-box;
}

.event form button {
    background-color: var(--button-bg-color);
    color: white;
    border: none;
    padding: 8px 16px;
    margin-top: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.event form button:hover {
    background-color: var(--button-hover-bg-color);
}

/* Comment section header */
.event h4 {
    margin-top: 20px;
    font-size: 18px;
    color: #2c3e50;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

/* Event Container Itself (already used but enhanced here) */
.event {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    background-color: #fff;
    margin-left: 10px;
}

.event h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-top: 0;
}

.event p {
    font-size: 15px;
    color: #555;
    margin: 5px 0;
}

.addEvent {
    border: 1px solid #666;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    background-color: #fdfdfd;
    max-width: 700px;
    margin-left: 10px;
}

.addEvent h3 {
    margin-top: 0;
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.addEvent form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.addEvent form label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    display: block;
}

.addEvent form input[type="text"],
.addEvent form input[type="url"],
.addEvent form input[type="date"],
.addEvent form input[type="datetime-local"],
.addEvent form textarea {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: sans-serif;
    box-sizing: border-box;
}

.addEvent form textarea {
    resize: vertical;
    min-height: 80px;
}

.addEvent form button[type="submit"] {
    align-self: flex-start;
    background-color: var(--button-bg-color);
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.addEvent form button[type="submit"]:hover {
    background-color: var(--button-hover-bg-color);
}

.event .commentInfo {
    display: inline-block;
}

.event .commentOwnerOptions {
    display: inline-block;
}

.event .commentItem {
    font-size: 0.8em;
}

.event .commentOwnerOptions button {
    font-size: 0.8em;
    padding: 3px;
}

.event .commentOwnerOptions form {
    display: inline;
    margin: 0;
    padding: 0;
}

.event .commentOwnerOptions .myOptionsLbl {
    display: none; /* not needed, don't show for now */
    color: silver;
    font-size: 0.85em;
}

.event .commentOwnerOptions button, .event button[type=submit].link-button{
    text-decoration: underline;
    border: none;
    background-color: transparent;
    margin-top: 0;
    padding-top: 0;
    background: none;
    color: gray;
}

.event button[value="submit_rsvp"] {
    font-size: 0.8em;
    text-decoration: none;
}

.event .commentOwnerOptions button[value="delete_comment"]{
    color: maroon;
}

/* Owner action bar (Edit / Delete) at top of event card */
.event .owner-options {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.event .owner-options form,
.event .owner-options form[data-no-ajax="true"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.event .owner-options button {
    font-size: 13px;
    padding: 4px 12px;
    margin: 0;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid #ccc;
    background: #f5f5f5;
    color: #555;
    transition: all 0.15s ease;
    line-height: 1.4;
    vertical-align: middle;
    box-sizing: border-box;
}

.event .owner-options .btn-edit-event:hover {
    background: #e8e8e8;
    color: #333;
}

.event .owner-options .btn-edit-event:disabled {
    background: #e0f0ff;
    border-color: #b0d0f0;
    color: #2a7abf;
    cursor: default;
}

.event .owner-options .btn-delete-event {
    color: #a33;
    border-color: #dbb;
}

.event .owner-options .btn-delete-event:hover {
    background: #fceaea;
    color: #811;
    border-color: #c99;
}

.event .owner-options .btn-restore-event {
    color: #287a28;
    border-color: #8c8;
}

.event .owner-options .btn-restore-event:hover {
    background: #eafaea;
}

.event .owner-options .deleted-label {
    font-size: 12px;
    color: #a33;
    font-style: italic;
}

/* Edit Event Form — reuses .addEvent-style form layout */
.event .edit-event-form {
    background: #fafbfc;
    border: 1px solid #dde;
    border-radius: 8px;
    padding: 20px;
    max-width: 700px;
}

.event .edit-event-form h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
}

.event .edit-event-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event .edit-event-form form label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    display: block;
}

.event .edit-event-form form input[type="text"],
.event .edit-event-form form input[type="url"],
.event .edit-event-form form input[type="date"],
.event .edit-event-form form input[type="datetime-local"],
.event .edit-event-form form textarea {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: sans-serif;
    box-sizing: border-box;
}

.event .edit-event-form form textarea {
    resize: vertical;
    min-height: 80px;
}

.event .edit-event-form form button[type="submit"] {
    align-self: flex-start;
    background-color: var(--button-bg-color);
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.event .edit-event-form form button[type="submit"]:hover {
    background-color: var(--button-hover-bg-color);
}

.event .btn-cancel-edit {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid #ccc;
    background: #f5f5f5;
    color: #555;
}

.event .btn-cancel-edit:hover {
    background: #e8e8e8;
    color: #333;
}

/* Inline confirmation buttons (Yes, Delete / Cancel) */
.event .owner-options .btn-confirm-yes {
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid #c66;
    background: #a33;
    color: #fff;
    transition: all 0.15s ease;
}

.event .owner-options .btn-confirm-yes:hover {
    background: #811;
}

.event .owner-options .btn-confirm-yes[value="un_delete_event"] {
    background: #287a28;
    border-color: #196019;
}

.event .owner-options .btn-confirm-yes[value="un_delete_event"]:hover {
    background: #1a5a1a;
}

.event .owner-options .btn-confirm-cancel {
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid #ccc;
    background: #f5f5f5;
    color: #555;
}

.event .owner-options .btn-confirm-cancel:hover {
    background: #e8e8e8;
    color: #333;
}

/* Map container */
.event .event-map-container {
    width: 100%;
    height: 300px;
    margin: 1em 0;
}

.event .commentOwnerOptions button[value="delete_comment"]:hover{
    background-color: maroon;
    color: white;
}

/* Event filter chips */
.event-filters {
    display: flex;
    gap: 8px;
    margin: 10px 0 15px 10px;
    flex-wrap: wrap;
}

.event-filters .chip {
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.event-filters .chip.active {
    background-color: var(--button-bg-color, #26a69a);
    color: #fff;
}

.event-filters .chip:hover:not(.active) {
    background-color: #e0e0e0;
}

/* Online Event toggle switch (form) */
.online-event-toggle {
    margin: 10px 0;
}

/* Online Event badge (display) */
.event .online-event-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 700;
    font-size: 1.05em;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #a5d6a7;
    margin: 6px 0;
}

.online-badge-icon::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #4caf50;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
}

.event .your_rsvp {
    display: inline-block;
}
.event select[name="rsvp"] {
    display: inline-block;
    max-width: 300px;
}