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

/* Entries Syling */
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;
}

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

/* Entries Event Occurence */
.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;
}

/* Accordion */
.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);
    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;
}

/* Accordion Panel */
.entry .panel {
    width: 90%;
    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;
}

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

@media screen and (max-width: 550px) {
    .entry .panel {
        width: 80%;
    } 
}

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

.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;
}

@media (min-width: 600px) {
    .entry {
        /* max-width: 650px; already set */
    }
}

/* Edit Mode Panel */
.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;
}

.entry .panel .entry-controls {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.entry .panel .entry-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.entry .panel .entry-controls .edit-btn,
.entry .panel .entry-controls .delete-btn {
    width: 50%;
}

.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 .panel .entry-controls button {
    background-color: rgba(255, 255, 255, 0.1);
    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;
}

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

.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;
}

/* Text Editor */
.quill-preview-div {
    width: 100%;
    min-height: 100px;
    padding: 8px;
    border: 1px solid #555;
    background-color: #333;
    color: #eee;
    border-radius: 4px;
    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;
}

/* 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);
}

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

.checklist-item-edit .delete-checklist-item-btn.neumorphic-btn-icon {
    background-color: transparent;
    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;
}

/* "View Media" Thumbnails Container */
.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;
}

/* Individual Thumbnails (img or video) */
.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);
}

/* 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;
}

/* Tag Icons Panel */
.tag-icon-filter-panel-container {
    width: 85%;
    max-width: 550px;
    min-height: 55px;
    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%
    );
}

#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;
}

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

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

/* Read-Only Tags */
.entry-tags-display-container {
    margin-top: 10px;
    margin-bottom: 10px;
    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-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);
}

.footer#entriesPageFooter {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}