/* Notes Window Styles */

/* Window styling */
.notes-window {
    width: 600px;
    height: 500px;
    min-width: 400px;
    min-height: 300px;
}

/* Title bar specific styling */
.notes-window .title-bar {
    background-color: rgb(249, 249, 249);
    position: relative;
}

.notes-window .title-bar .title-text {
    color: #333;
}

/* Right-side toolbar icons container */
.title-bar-icons {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.notes-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
    overflow: hidden;
}

/* Toolbar styling */
.notes-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 15px;
    background-color: rgb(249, 249, 249);
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.toolbar-spacer {
    flex-grow: 1;
}

.toolbar-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.toolbar-icon {
    width: 16px;
    height: 16px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    object-fit: contain;
}

/* Make specific icons even smaller */
.toolbar-icon[data-action="info"],
.toolbar-icon[data-action="heart"],
.toolbar-icon[data-action="search"] {
    width: 14px;
    height: 14px;
}

/* Hover effect for all control icons */
.toolbar-icon-wrapper {
    padding: 2px 4px;
    border-radius: 4px;
}

.toolbar-icon-wrapper:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.toolbar-icon:hover {
    opacity: 0.8;
}

/* Unfocused window toolbar icons */
.finder-window:not(.focused) .toolbar-icon {
    opacity: 0.3;
}

/* Notes content styling */
.notes-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 3px 30px;
    background-color: #fff;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.notes-container::-webkit-scrollbar {
    display: none;
}

/* Date styling */
.notes-date {
    text-align: center;
    color: #a1a1a1;
    font-size: 13px;
    margin-bottom: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

/* Notes list styling */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual note item */
.note-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 4px 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

/* Checkbox styling */
.note-checkbox {
    width: 18px;
    height: 18px;
    background-image: url('../assets/notes/unchecked.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    margin-top: 1px; /* Align with text baseline */
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.note-checkbox:hover {
    background-image: url('../assets/notes/hover.png');
}

/* Completed checkbox - use checked icon */
.note-item.completed .note-checkbox {
    background-image: url('../assets/notes/checked.png');
}

/* Unfocused window checkbox states */
.notes-window:not(.focused) .note-checkbox {
    opacity: 0.4; /* Use opacity for grey effect on unchecked since unchecked-grey.png doesn't exist */
}

.notes-window:not(.focused) .note-checkbox:hover {
    opacity: 0.6; /* Slightly brighter on hover but still greyed out */
}

.notes-window:not(.focused) .note-item.completed .note-checkbox {
    background-image: url('../assets/notes/checked-grey.png') !important;
    opacity: 1; /* Reset opacity since we have the actual grey asset */
}

/* Remove the CSS-drawn checkmark since we're using icon files now */
.note-item.completed .note-checkbox::after {
    display: none;
}

/* Note text styling */
.note-text {
    flex-grow: 1;
    color: #000;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Completed note text styling */
.note-item.completed .note-text {
    color: #8e8e93;
    text-decoration: line-through;
    opacity: 0.7;
}

/* Focus styles for window */
.notes-window.focused .toolbar-icon {
    opacity: 0.5;
}

.notes-window.focused .toolbar-icon:hover {
    opacity: 0.8;
}

/* Empty state styling */
.notes-empty {
    text-align: center;
    color: #8e8e93;
    font-size: 16px;
    margin-top: 50px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
} 