/* Diary Editor Styles */

.diary-editor-container {
    display: flex;
    gap: 20px;
    height: 100%;
    min-height: 500px;
}

.diary-dates-list {
    flex: 0 0 200px;
    border-right: 2px solid #ddd;
    padding-right: 20px;
    overflow-y: auto;
    max-height: 600px;
}

.diary-date-item {
    padding: 6px 8px;
    margin-bottom: 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.diary-date-item:hover {
    background-color: #f0f0f0;
}

.diary-date-item.active {
    background-color: #e0e0e0;
    font-weight: bold;
}

.diary-date-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.diary-date-display {
    padding: 2px 0;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    flex: 1;
    transition: color 0.2s;
}

.diary-date-display:hover {
    color: var(--ts-blue);
}


.diary-delete-entry-btn {
    background-color: var(--ts-red);
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px 10px;
    font-size: 0.85rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-family: 'Komika', sans-serif;
    flex-shrink: 0;
}

.diary-delete-entry-btn:hover {
    background-color: var(--ts-red);
}
    padding: 5px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    cursor: pointer;
}

.diary-date-item-actions button:hover {
    background-color: #f0f0f0;
}

.diary-content-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.diary-content-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.diary-content-section label {
    font-weight: bold;
    font-size: 14px;
}

.diary-content-section input[type="date"],
.diary-content-section input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

.diary-content-section textarea {
    width: 100%;
    min-height: 200px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.diary-content-section textarea:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.diary-readonly-field {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    min-height: 20px;
    white-space: pre-wrap;
    word-wrap: break-word;
}


.diary-add-entry-btn {
    margin-bottom: 8px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #28a745;
    color: white;
    cursor: pointer;
    font-family: 'Komika', sans-serif;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

.diary-add-entry-btn:hover {
    background-color: #218838;
}

.diary-add-entry-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.diary-empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
}

.diary-empty-state p {
    margin: 10px 0;
}

