/* ----------------------------------------------------------------------------
   Tag Icon Filter Panel
   ---------------------------------------------------------------------------- */
.tag-icon-filter-panel-container {
    width: 85%;
    max-width: 550px;
    min-height: 65px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 10px 0;
    padding: 8px 0;
    background-color: var(--background-color, rgb(45, 45, 45, 0.25));
    border: 1px solid rgba(255,255,255,0.18);
    display: flex;
    justify-content: left;
    border-radius: 15px;
    position: relative;
    z-index: 1;

    -webkit-mask-image: linear-gradient(to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 0.5%, 
        rgba(0, 0, 0, 1) 99.5%,  
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 0.5%,
        rgba(0, 0, 0, 1) 99.5%,
        rgba(0, 0, 0, 0) 100%
    );
}

.tag-icon-filter-panel-container.center-placeholder-active {
    justify-content: center;
}

#tagIconFilterPanel {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 10px;
    min-height: 40px;
    gap: 10px;
}

.tag-icon-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    justify-content: center;
    color: #e0e0e0;
    background-color: rgba(155, 155, 155, 0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    font-weight: normal;
    padding: 8px 6px;
    flex-shrink: 0;
    width: 100px;
    text-align: center;
    line-height: 1.2;
}

.tag-icon-button i {
    font-size: 1.2em;
    margin-bottom: 4px;
}

.tag-icon-button.active {
    box-shadow: inset 2px 2px 5px var(--shadow-dark, #b8b9be), 
                inset -3px -3px 7px var(--shadow-light, #fff);
    color: var(--accent-color-active, #5dade2);
}

.tag-icon-name {
    font-size: 0.95em;
    color: #b0b0b0;
    margin-top: 2px;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag-entry-count-bubble {
    position: absolute;
    top: -3px;
    right: -3px;
    background-color: #e74d3cce;
    color: white;
    border-radius: 50%;
    padding: 0px 4px;
    font-size: 10px;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
    border: 1px solid white;
    min-width: 12px;
    box-sizing: border-box;
}

.no-entry-folders-placeholder {
    color: #8a8a8a;
    font-size: 0.9em;
    font-style: italic;
    width: 100%;
    text-align: center;
}

/* ----------------------------------------------------------------------------
   Entries List Container
   Note: Search Container styles are in main.css
   ---------------------------------------------------------------------------- */
div#entriesList {
    flex-grow: 1;
    margin-top: 5px;
    min-height: 0;
    overflow-y: auto;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    background: transparent;

    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;

    -webkit-mask-image: linear-gradient(to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 5%, 
        rgba(0, 0, 0, 1) 90%,
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 5%,
        rgba(0, 0, 0, 1) 90%,
        rgba(0, 0, 0, 0) 100%
    );
}

.entries {
    width: 100%;
    flex: 1;
    background: transparent;
}

/* ----------------------------------------------------------------------------
   Month Headers
   ---------------------------------------------------------------------------- */
.entries-month-header {
    width: 70vw;
    max-width: 500px;
    margin: 20px auto 15px auto;
    padding: 10px 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #fff;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    text-transform: capitalize;
}

/* ----------------------------------------------------------------------------
   Entry Items
   ---------------------------------------------------------------------------- */
.entry {
    width: 70vw;
    max-width: 500px;
    box-sizing: border-box;
    background: transparent;
}

/* Entry Event Occurrence Styling */
.entry.has-associated-event.event-past .accordion,
.entry.has-associated-event.event-past .panel {
    background-color: rgba(205,205,205, 0.25);
    border: 1px solid rgba(205, 205, 205, 0.5);
}

.entry.has-associated-event.event-past .accordion:hover {
    background-color: rgba(205,205,205, 0.25);
}

.entry.has-associated-event.event-upcoming .accordion,
.entry.has-associated-event.event-upcoming .panel {
    background-color: rgba(231, 76, 60, 0.25);
    border: 1px solid rgba(170, 32, 32, 0.5);
}

.entry.has-associated-event.event-upcoming .accordion:hover {
    background-color: rgba(231, 76, 60, 0.35);
}

.entry.has-associated-event.event-distant-future .accordion,
.entry.has-associated-event.event-distant-future .panel {
    background-color: #c7995c3b;
    border: 1px solid rgba(255, 193, 7, 0.5);
}

.entry.has-associated-event.event-distant-future .accordion:hover {
    background-color: #c7995c6a;
}

/* ----------------------------------------------------------------------------
   Entry Accordion (Header)
   ---------------------------------------------------------------------------- */
.entry .accordion {
    color: #eee;
    cursor: pointer;
    padding: 15px 18px;
    width: 100%;
    background-color: rgba(50, 50, 50, 0.7); 
    border: 1px solid rgba(145, 145, 145, 0.25);
    border-radius: 8px;
    text-align: left;
    outline: none;
    font-size: 16px;
    transition: background-color 0.4s;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.entry .accordion:hover,
.entry .accordion.active {
    background-color: rgba(50, 50, 50, 0.7); 
}

.entry .accordion .accordion-title-date-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    overflow: hidden;
    margin-right: 10px;
}

.entry .accordion .entry-title {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.entry .accordion .entry-date {
    font-size: 0.8em;
    color: #ccc;
    white-space: nowrap;
    margin-left: 15px;
    flex-shrink: 0;
}

.entry .accordion .accordion-icon {
    font-size: 13px;
    color: white;
    margin-left: 10px;
}

/* ----------------------------------------------------------------------------
   Entry Panel (Content Container)
   ---------------------------------------------------------------------------- */
.entry .panel {
    width: 95%;
    padding: 0 18px;
    margin: -1px auto; 
    text-align: left;
    background-color: rgba(50, 50, 50, 0.7); 
    border: 1px solid rgba(145, 145, 145, 0.25);
    border-top: none; 
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.entry .panel .panel-content-wrapper {
    padding: 15px 0px;
}

/* Separator Lines */
.content-separator {
    border: none;
    height: 1px;
    background-color: rgb(90, 90, 90);
    margin: 15px 0;
}

/* ----------------------------------------------------------------------------
   Entry Display Content
   ---------------------------------------------------------------------------- */
.entry .panel .entry-display h3 {
    margin-top: 0;
    color: #eee;
}

.entry .panel .entry-display p,
.entry .panel .entry-text-content {
    color: #fff;
    line-height: 1.5;
    margin-bottom: 15px;
}

.entry .panel .no-text-placeholder {
    color: #aaa;
    text-align: center;
    font-style: italic;
    font-size: 0.9em;
    font-weight: 300;
}

.entry .panel .entry-timestamp-updated,
.entry .panel .entry-timestamp-created {
    font-size: 0.8em;
    color: #bbb;
    margin-bottom: 10px;
}

.entry .panel audio {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Entry Panel Linked Event */
.entry-associated-event-title-link {
    color: rgb(215, 215, 215, 0.75);
    text-decoration: none;
    font-weight: normal;
    font-size: 0.9em;
}

.entry-associated-event-title-link:hover {
    color: rgb(215, 215, 215, 1.0);
    text-decoration: underline;
}

/* Entry Media Thumbnails */
.entry-media-thumbnails-container {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.entry-media-thumbnails-container a {
    display: inline-block;
    text-decoration: none;
}

.entry-media-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.entry-media-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* ----------------------------------------------------------------------------
   Checklist Display
   ---------------------------------------------------------------------------- */
.checklist-container {
    margin-top: 15px;
    margin-bottom: 10px;
    max-height: 175px;
    overflow-y: auto;
}

.checklist-display-list {
    list-style: none;
    padding-left: 5px;
    text-align: left;
}

.checklist-item-display {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.checklist-item-display input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.checklist-item-display label {
    color: #ddd;
    cursor: pointer;
    flex-grow: 1;
    line-height: 1.4;
}

.checklist-item-display label.completed {
    text-decoration: line-through;
    color: #888;
}

/* ----------------------------------------------------------------------------
   Checklist Edit Styles
   ---------------------------------------------------------------------------- */
.checklist-edit-container {
    margin-top: 15px;
    border-top: 1px solid rgba(145, 145, 145, 0.2);
    padding-top: 15px;
    text-align: center;
    max-height: 200px;
    overflow-y: auto;
}

.checklist-item-edit {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

.checklist-item-edit .checklist-edit-checkbox {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.checklist-item-edit .checklist-edit-text {
    flex-grow: 1;
    padding: 6px 8px;
    border: 1px solid #555;
    background-color: #3a3a3a;
    color: #eee;
    border-radius: 4px;
    font-size: 0.9em;
}

.checklist-item-edit .delete-checklist-item-btn {
    background: none;
    border: 1px solid transparent;
    color: #ff8080;
    cursor: pointer;
    font-size: 1.1em;
    padding: 4px 6px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
}

.checklist-item-edit .delete-checklist-item-btn:hover {
    color: #e03131;
    background-color: rgba(255, 100, 100, 0.1);
}

.checklist-item-edit .delete-checklist-item-btn.neumorphic-btn-icon {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;          
    align-items: center;           
    justify-content: center;       
    flex-shrink: 0;                
    color: #ff8080;
}

.checklist-item-edit .delete-checklist-item-btn.neumorphic-btn-icon:hover {
    background-color: transparent;
    color: #e03131;
}

.checklist-item-edit .drag-handle {
    cursor: grab;
    padding: 10px 8px;
    margin-right: 5px;
    color: #ccc;
    font-size: 1.2em;
    touch-action: none;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.checklist-item-edit .drag-handle:active {
    cursor: grabbing;
}

.checklist-item-edit.dragging {
    opacity: 0.6;
    background-color: rgba(80, 80, 80, 0.7);
}

.checklist-edit-container .drag-over-indicator {
    height: 2px;
    background-color: #3498db;
    margin: 3px 0;
}

.add-checklist-item-btn {
    margin-bottom: 10px;
    padding: 8px 12px;
    font-size: 0.8em;
    background-color: #50c87897;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 5px 8px;
    border-radius: 12px;
    width: 150px;
}

/* ----------------------------------------------------------------------------
   Entry Tags (Read-Only Display)
   ---------------------------------------------------------------------------- */
.entry-tags-display-container {
    margin: 10px 0;
    padding-top: 10px;
    border-top: 1px solid rgba(145, 145, 145, 0.15);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.entry-tag-pill {
    background-color: rgba(80, 200, 120, 0.15);
    color: #b2dfdb;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    border: 1px solid rgba(80, 200, 120, 0.3);
}

/* ----------------------------------------------------------------------------
   Entry Tags (Edit Mode)
   ---------------------------------------------------------------------------- */
.entry-tags-edit-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(145, 145, 145, 0.2);
}

.active-entry-tags-display {
    margin-bottom: 10px;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(155, 155, 155, 0.1);
    border-radius: 4px;
    min-height: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.active-entry-tags-display.no-tags {
    color: #888;
    font-style: italic;
    font-size: 0.85em;
}

.entry-tag-pill.active-edit .remove-entry-tag-btn {
    margin-left: 6px;
    color: #e0e0e0;
    cursor: pointer;
    font-weight: bold;
}

.entry-tag-pill.active-edit .remove-entry-tag-btn:hover {
    color: #ff8a80;
}

.available-tags-for-entry-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 5px 0;
    max-height: 100px;
    overflow-y: auto;
}

.tag-item-entry-edit {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ccc;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s, border-color 0.2s;
}

.tag-item-entry-edit:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.tag-item-entry-edit.active {
    background-color: rgba(80, 200, 120, 0.25);
    color: white;
    border-color: rgba(80, 200, 120, 0.4);
}

/* ----------------------------------------------------------------------------
   Entry Edit Mode
   ---------------------------------------------------------------------------- */
.entry .panel .entry-edit input[type="text"],
.entry .panel .entry-edit textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #555;
    background-color: #333;
    color: #eee;
    border-radius: 4px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 14px;
}

.entry .panel .entry-edit textarea {
    min-height: 80px;
    resize: vertical;
}

/* Text Editor */
.quill-preview-div {
    width: 100%;
    min-height: 100px;
    padding: 8px;
    border: 1px solid #555;
    background-color: #333;
    color: #eee;
    font-family: Georgia, 'Times New Roman', Times, serif;
    box-sizing: border-box;
    margin-bottom: 10px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 14px;
}

.quill-preview-div:hover,
.quill-preview-div:focus {
    border: 1px solid #555;
    background-color: #333;
}

/* ----------------------------------------------------------------------------
   Entry Controls (Action Buttons)
   ---------------------------------------------------------------------------- */
.entry .panel .entry-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 15px 0px;
}

.entry .panel .entry-controls button {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 20px;
    width: 150px;
    font-weight: 400;
    min-width: 150px;
    box-sizing: border-box;
}

.entry .panel .entry-controls .view-btn,
.entry .panel .entry-controls .delete-btn {
    width: 150px;
    min-width: 150px;
}

.entry .panel .entry-controls button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.entry .panel .entry-controls .add-event-btn.neumorphic-btn-icon {
    width: fit-content;
    background: none;
    border: none;
    padding: 0;
    margin: 5px auto;
}

.entry .panel .entry-controls .add-event-btn.neumorphic-btn-icon i {
    color: #e74d3caf;
    font-size: 1.5em;
}

.entry-controls .add-event-btn.add-event-btn-show-on-edit {
    display: none;
}

.entry.in-edit-mode .entry-controls .add-event-btn.add-event-btn-show-on-edit {
    display: inline-block;
}

/* ----------------------------------------------------------------------------
   Footer
   ---------------------------------------------------------------------------- */
.footer#entriesPageFooter {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 97%;
    position: relative;
    z-index: 10;
    margin-bottom: 10px;
    padding: 0;
}

/* ----------------------------------------------------------------------------
   Entry View Modal (Fullscreen)
   ---------------------------------------------------------------------------- */
#entryViewModal.entry-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100011;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    transform: none;
    box-shadow: none;
}

#entryViewModal.entry-view-modal.active {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

#entryViewModal.entry-view-modal.hidden {
    display: none;
}

#entryViewModal .entry-view-modal-content {
    color: #ddd;
    background-color: rgba(115, 115, 115, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    padding: 25px;
    border-radius: 10px;
    width: 85vw;
    max-width: 700px;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    margin: 0;
}

#entryViewModal.entry-view-modal.active .entry-view-modal-content {
    transform: scale(1);
}

.close-entry-view-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #eee;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 1;
}

.close-entry-view-modal-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: scale(1.1);
}

.entry-view-modal-body {
    width: 100%;
}

.entry-view-title {
    font-size: 2em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.entry-view-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 30px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.entry-view-text.no-text-placeholder {
    color: #999;
    font-style: italic;
}

.entry-view-checklist {
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.entry-view-checklist h3 {
    font-size: 1.3em;
    color: #fff;
    margin-bottom: 15px;
}

.entry-view-checklist .checklist-display-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.entry-view-checklist .checklist-item-display {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1em;
}

.entry-view-checklist .checklist-item-display input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: default;
}

.entry-view-checklist .checklist-item-display label {
    color: #ddd;
    flex-grow: 1;
}

.entry-view-checklist .checklist-item-display label.completed {
    text-decoration: line-through;
    color: #888;
}

.entry-view-tags {
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.entry-view-tags h3 {
    font-size: 1.3em;
    color: #fff;
    margin-bottom: 15px;
}

.entry-view-tags .entry-tags-display-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.entry-view-tags .entry-tag-pill {
    background-color: rgba(80, 200, 120, 0.2);
    border: 1px solid rgba(80, 200, 120, 0.4);
    color: #50c878;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
}

.entry-view-timestamp {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 0.9em;
    font-style: italic;
}

.entry-view-audio {
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.entry-view-audio h3 {
    font-size: 1.3em;
    color: #fff;
    margin-bottom: 15px;
}

.entry-view-audio audio {
    width: 100%;
    margin-top: 10px;
}

.entry-view-media {
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.entry-view-media h3 {
    font-size: 1.3em;
    color: #fff;
    margin-bottom: 15px;
}

.entry-view-media-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.entry-view-media-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.entry-view-media-thumbnail {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.entry-view-media-thumbnail:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.entry-view-media-label {
    font-size: 0.85em;
    color: #bbb;
    text-align: center;
}

.entry-view-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
}

.entry-view-edit-btn {
    padding: 12px 24px;
    font-size: 1em;
    min-width: 120px;
}

/* ----------------------------------------------------------------------------
   Entry View Edit Mode
   ---------------------------------------------------------------------------- */
.entry-view-edit-section {
    margin-bottom: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.entry-view-edit-section:first-child {
    border-top: none;
    padding-top: 0;
}

.entry-view-edit-section label {
    display: block;
    font-size: 1.1em;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}

.entry-view-edit-input {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: #eee;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
}

.entry-view-text-preview {
    min-height: 100px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #ddd;
}

.entry-view-text-preview:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.entry-view-text-preview-content {
    color: #ddd;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.entry-view-checklist-edit {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.entry-view-checklist-edit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: move;
}

.entry-view-checklist-edit-item .drag-handle {
    cursor: grab;
    color: #999;
    padding: 5px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.entry-view-checklist-edit-item .drag-handle:hover {
    color: #ddd;
}

.entry-view-checklist-edit-item .drag-handle:active {
    cursor: grabbing;
}

.entry-view-checklist-edit-item.dragging {
    opacity: 0.5;
}

.entry-view-checklist-edit-checkbox {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.entry-view-checklist-edit-text {
    flex: 1;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: #eee;
    border-radius: 4px;
    font-size: 0.95em;
}

.entry-view-checklist-remove-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    padding: 5px;
    font-size: 1em;
    transition: transform 0.2s ease;
}

.entry-view-checklist-remove-btn:hover {
    transform: scale(1.2);
    color: #ff5252;
}

.entry-view-add-item-btn {
    padding: 8px 16px;
    font-size: 0.9em;
    margin-top: 10px;
}

.entry-view-tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.entry-view-media-display {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.entry-view-media-display-img {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.entry-view-media-display-video {
    max-width: 300px;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.entry-view-edit-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.entry-view-save-btn,
.entry-view-cancel-btn {
    padding: 12px 24px;
    font-size: 1em;
    min-width: 120px;
}

.entry-view-cancel-btn {
    background-color: rgba(217, 84, 79, 0.2);
    border-color: rgba(217, 84, 79, 0.4);
}

/* ----------------------------------------------------------------------------
   Quill Editor Container
   Note: Base Quill editor styles are in main.css
   ---------------------------------------------------------------------------- */
#quillEditorContainer.quill-above-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 100012 !important;
    max-width: 90vw !important;
    max-height: 80vh !important;
    width: 800px !important;
}

/* ----------------------------------------------------------------------------
   Tag Menu Above Modal
   ---------------------------------------------------------------------------- */
.entry-view-tag-menu-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100012;
    background-color: rgba(115, 115, 115, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 25px;
    max-width: 500px;
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.entry-view-tag-menu-container.hidden {
    display: none;
}

.entry-view-tag-menu-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
}

.entry-view-tag-menu-close-btn:hover {
    color: #ff6b6b;
}

.entry-view-tag-menu-section {
    margin-top: 20px;
}

/* ----------------------------------------------------------------------------
   Event Modal for Entries Page
   ---------------------------------------------------------------------------- */
#entryPageEventModal {
    z-index: 100013 !important;
}

.entry-view-open-tags-btn {
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 0.9em;
}

/* ----------------------------------------------------------------------------
   Responsive Design
   ---------------------------------------------------------------------------- */
@media screen and (max-width: 424px) {
    .entry .accordion .entry-date {
        display: none;
    }
}

@media screen and (max-width: 900px) {
    .entry {
        width: 80vw;
    } 
}