.chat-panel, .contact-panel {
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.chat-panel.active,
.contact-panel.active {
    display: flex;
}
/* Header */
.chat-header {
    background: #0d6efd;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Chat messages */
.chat-msg.me {
    text-align: right;
}
.chat-msg .msg {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 10px;
    background: #198754;
    color: white;
    max-width: 80%;
    word-wrap: break-word;
}
/* Notes */
.note-card {
    background: #fff8c4;
    padding: 10px;
    margin: 5px;
    border-radius: 8px;
}
.reminder-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
}
.notebook-item {
    padding: 8px;
    font-weight: 500;
}
/* Sticky Notes */
.note-item {
    width: 150px;
    min-height: 120px;
    padding: 12px;
    margin: 10px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: grab;
    position: relative;
    transition: transform 0.2s ease;
}
.note-item:hover {
    transform: scale(1.05);
}
.note-item .delete-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    cursor: pointer;
    color: red;
    font-weight: bold;
    z-index: 5;
}
/* Notes container */
#notesBody {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 10px;
}
/* Global delete button safety */
.delete-btn {
    z-index: 10;
}
/* Dropdown layering fix */
.chat-dropdown {
    position: absolute;
    background: #fff;
    color: #000;
    right: 10px;
    top: 40px;
    display: none;
    flex-direction: column;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden;
}
.chat-dropdown.active {
    display: flex;
}
.chat-dropdown div {
    padding: 8px 12px;
    cursor: pointer;
}
.chat-dropdown div:hover {
    background: #f1f1f1;
}
/* Sticky Notes */
.note-item {
    width: 150px;
    min-height: 120px;
    padding: 12px;
    margin: 10px;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    cursor: grab;
    position: relative;
    transition: all 0.2s ease;
}
.note-item {
    transform: rotate(-1deg);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15),
                0 0 10px rgba(255,255,255,0.4) inset;
}
.note-item:nth-child(even) {
    transform: rotate(1deg);
}
.note-colors {
    display: flex;
    gap: 8px;
    padding: 10px;
    justify-content: center;
}
.color-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s ease;
}
.color-dot:hover {
    transform: scale(1.2);
}
.color-dot.active {
    border: 2px solid #000;
}
.edit-btn {
    position: absolute;
    bottom: 8px;
    right: 28px; /* 👈 sits just left of delete button */
    cursor: pointer;
    color: #333; /* clean dark pencil vibe */
    font-size: 14px;
    opacity: 0.7;
    transition: 0.2s;
}
.edit-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}
