/* Sticky Notes Main Window */
.sticky-notes-main {
    padding: 10px;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
}

.sticky-notes-toolbar {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    position: relative;
}

.sticky-notes-toolbar button {
    padding: 4px 8px;
    border: 1px outset #c0c0c0;
    background: #c0c0c0;
    font-size: 11px;
    cursor: pointer;
}

.sticky-notes-toolbar button:active {
    border: 1px inset #c0c0c0;
}

.color-palette {
    position: absolute;
    top: 25px;
    left: 60px;
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    padding: 5px;
    display: flex;
    gap: 3px;
    z-index: 1000;
}

.color-option {
    width: 20px;
    height: 20px;
    border: 1px inset #808080;
    cursor: pointer;
}

.color-option:hover {
    border: 1px outset #808080;
}

.notes-list {
    border: 1px inset #c0c0c0;
    padding: 5px;
    height: 120px;
    overflow-y: auto;
}

.notes-count {
    font-weight: bold;
    margin-bottom: 5px;
    color: #000080;
}

.notes-container {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.note-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px;
    border: 1px solid transparent;
}

.note-item:hover {
    background: #0000ff;
    color: white;
}

.note-preview {
    flex: 1;
    padding: 3px;
    border: 1px inset #808080;
    font-size: 10px;
    min-height: 20px;
    overflow: hidden;
}

.btn-delete-note {
    padding: 2px 6px;
    border: 1px outset #c0c0c0;
    background: #c0c0c0;
    font-size: 10px;
    cursor: pointer;
}

.btn-delete-note:active {
    border: 1px inset #c0c0c0;
}

/* Individual Sticky Notes */
.sticky-note {
    border: 2px outset #808080;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'MS Sans Serif', sans-serif;
    display: flex;
    flex-direction: column;
    min-width: 150px;
    min-height: 100px;
}

.sticky-note-header {
    height: 20px;
    background: linear-gradient(to bottom, #0080ff, #0060df);
    border-bottom: 1px solid #000080;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 2px;
    cursor: move;
    user-select: none;
}

.sticky-note-controls {
    display: flex;
    gap: 2px;
}

.sticky-note .btn-close {
    width: 16px;
    height: 14px;
    border: 1px outset #c0c0c0;
    background: #c0c0c0;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sticky-note .btn-close:hover {
    background: #ff0000;
    color: white;
}

.sticky-note .btn-close:active {
    border: 1px inset #c0c0c0;
}

.sticky-note-content {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    background: transparent;
    resize: none;
    overflow-y: auto;
}

.sticky-note-content::placeholder {
    color: #808080;
    font-style: italic;
}

.sticky-note-resize {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    cursor: nw-resize;
    background: linear-gradient(135deg, transparent 40%, #808080 40%, #808080 60%, transparent 60%);
}

.sticky-note-resize:hover {
    background: linear-gradient(135deg, transparent 40%, #000000 40%, #000000 60%, transparent 60%);
}

/* Scrollbar styling for notes list */
.notes-list::-webkit-scrollbar {
    width: 16px;
}

.notes-list::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px inset #c0c0c0;
}

.notes-list::-webkit-scrollbar-thumb {
    background: #808080;
    border: 1px outset #808080;
}

.notes-list::-webkit-scrollbar-thumb:hover {
    background: #606060;
}

.notes-list::-webkit-scrollbar-button {
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    height: 16px;
}

.notes-list::-webkit-scrollbar-button:hover {
    background: #d0d0d0;
}

.notes-list::-webkit-scrollbar-button:active {
    border: 1px inset #c0c0c0;
}