@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Gochi+Hand&display=swap');

:root {
    --bn-primary: #27cfc3;
    --bn-shadow: rgba(0, 0, 0, 0.08);
    --bn-shadow-hover: rgba(0, 0, 0, 0.15);
    --bn-radius: 16px;
}

/* Floating Toggle Button */
.boat-notes-widget-wrap {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    font-family: 'Inter', sans-serif;
}

.boat-notes-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #111;
    color: #fff !important;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    padding: 0 !important;
}

.boat-notes-toggle-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--bn-primary);
}

.boat-notes-toggle-btn .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.custom-note-icon img {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
}

.custom-note-icon-small img {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    object-fit: contain;
}

.notes-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
}

/* Side Panel */
.boat-notes-panel {
    position: fixed;
    top: 20px;
    bottom: 20px;
    right: -420px;
    width: 380px;
    background: #fff;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.boat-notes-panel.open {
    right: 20px;
}

.notes-panel-header {
    padding: 25px 30px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fcfcfc;
}

.notes-panel-header h3 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-close-btn {
    background: none !important;
    border: none !important;
    font-size: 24px;
    color: #bbb;
    cursor: pointer;
    transition: color 0.2s;
}

.panel-close-btn:hover {
    color: #333;
}

/* Notes List (The Stickies) */
.notes-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: #f9f9f9;
}

.boat-notes-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sticky-note {
    background: #fff9c4;
    padding: 20px;
    border-radius: 2px;
    box-shadow: 2px 2px 10px var(--bn-shadow);
    position: relative;
    transition: all 0.3s ease;
    transform: rotate(-1deg);
    cursor: default;
}

.sticky-note::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 16px 16px 0;
    border-style: solid;
    border-color: rgba(0,0,0,0.05) #f9f9f9;
}

.sticky-note:nth-child(even) {
    transform: rotate(1deg);
}

.sticky-note:hover {
    transform: scale(1.02) rotate(0deg);
    box-shadow: 5px 5px 20px var(--bn-shadow-hover);
    z-index: 10;
}

.note-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.note-date {
    font-size: 11px;
    font-weight: 600;
    color: rgba(0,0,0,0.4);
    text-transform: uppercase;
}

.note-delete,
.welcome-note-delete {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: rgba(0,0,0,0.2) !important;
    cursor: pointer;
    font-size: 14px !important;
    transition: color 0.2s;
}

.note-delete:hover,
.welcome-note-delete:hover {
    color: #ef4444 !important;
}

.note-content-text {
    font-family: 'Gochi Hand', cursive;
    font-size: 18px;
    line-height: 1.4;
    color: #333;
}

.note-meta {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0,0,0,0.1);
    font-size: 12px;
    color: rgba(0,0,0,0.5);
    font-weight: 600;
}

/* Form Footer */
.notes-panel-footer {
    padding: 25px 30px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.note-form-wrap textarea {
    width: 100% !important;
    height: 100px !important;
    padding: 15px !important;
    border-radius: 12px !important;
    border: 2px solid #f0f0f0 !important;
    resize: none !important;
    font-size: 14px !important;
    margin-bottom: 15px !important;
    transition: border-color 0.3s;
}

.note-form-wrap textarea:focus {
    border-color: var(--bn-primary) !important;
    outline: none !important;
}

.note-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.color-picker-wrap {
    display: flex;
    gap: 8px;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0 !important;
    transition: all 0.2s;
}

.color-dot.active {
    border-color: #333;
    transform: scale(1.2);
}

.save-note-btn {
    background: #111 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
}

.save-note-btn:hover {
    background: var(--bn-primary) !important;
}

/* Sticky Board (All Notes) */
.boat-notes-board-container {
    padding: 40px 0;
    font-family: 'Inter', sans-serif;
}

.board-header {
    margin-bottom: 40px;
    text-align: center;
}

.board-header h2 {
    font-size: 36px !important;
    font-weight: 800 !important;
    letter-spacing: -1.5px !important;
    margin-bottom: 10px !important;
}

.boat-notes-board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}


.parent-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 11px;
    color: var(--bn-primary);
    text-decoration: none;
    font-weight: 700;
}

.parent-link:hover {
    text-decoration: underline;
}

.notes-loading {
    text-align: center;
    padding: 60px 40px;
    color: #bbb;
    font-style: italic;
    font-size: 14px;
}

.notes-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #888;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    background: #fbfbfb;
    border: 1px solid #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: #ddd;
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
}

.empty-state-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.notes-empty-state h4 {
    font-size: 16px;
    font-weight: 800;
    color: #111;
    margin: 0 0 10px 0 !important;
    letter-spacing: -0.5px;
}

.notes-empty-state p {
    font-size: 14px;
    line-height: 1.6;
    color: #888;
    max-width: 260px;
    margin: 0 !important;
}

.notes-empty-state strong {
    color: #444;
    word-break: break-word;
}
