/**
 * StickyBoard スタイル
 */

/* ツールバー */
#stickyboard-toolbar {
    position: fixed;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 8px;
    z-index: 99999;
    display: flex;
    align-items: center;
}

/* ツールバーの位置設定 */
#stickyboard-toolbar.position-right-bottom {
    bottom: 20px;
    right: 20px;
}

#stickyboard-toolbar.position-left-bottom {
    bottom: 20px;
    left: 20px;
}

#stickyboard-add {
    font-size: 18px;
    font-weight: bold;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#stickyboard-add:hover {
    background: #135e96;
}

.stickyboard-colors {
    display: flex;
    gap: 5px;
}

.stickyboard-color-btn {
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
}

.stickyboard-color-btn.active {
    border: 2px solid #000;
}

.stickyboard-color-btn.yellow {
    background-color: #fff9c4;
}

.stickyboard-color-btn.green {
    background-color: #dcedc8;
}

.stickyboard-color-btn.blue {
    background-color: #bbdefb;
}

.stickyboard-color-btn.pink {
    background-color: #f8bbd0;
}

.stickyboard-color-btn.purple {
    background-color: #e1bee7;
}

/* マイ付箋リンクボタン用のスタイル */
#stickyboard-my-notes-link {
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 13px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

#stickyboard-my-notes-link:hover {
    background: #135e96;
}

#stickyboard-my-notes-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

/* 付箋コンテナ */
#stickyboard-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99990;
}

/* 付箋スタイル */
.stickyboard-note {
    position: absolute;
    width: 200px;
    min-height: 200px;
    padding: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    border-radius: 2px;
    pointer-events: auto;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.stickyboard-note.yellow {
    background-color: #fff9c4;
    border: 1px solid #fff176;
}

.stickyboard-note.green {
    background-color: #dcedc8;
    border: 1px solid #aed581;
}

.stickyboard-note.blue {
    background-color: #bbdefb;
    border: 1px solid #64b5f6;
}

.stickyboard-note.pink {
    background-color: #f8bbd0;
    border: 1px solid #f48fb1;
}

.stickyboard-note.purple {
    background-color: #e1bee7;
    border: 1px solid #ce93d8;
}

.stickyboard-note-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 5px;
}

.stickyboard-note-delete {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.stickyboard-note-delete:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

/* 付箋内容表示用スタイル */
.stickyboard-note-content-wrapper {
    flex-grow: 1;
    display: flex;
    position: relative;
}

.stickyboard-note-content {
    flex-grow: 1;
    background: none;
    border: none;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    width: 100%;
    min-height: 150px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.stickyboard-note-content:focus {
    outline: none;
}

.stickyboard-note-rendered-content {
    flex-grow: 1;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    width: 100%;
    min-height: 150px;
    overflow-y: auto;
    cursor: text;
    word-break: break-word;
}

.stickyboard-note-rendered-content a {
    color: #0073aa;
    text-decoration: none;
}

.stickyboard-note-rendered-content a:hover {
    color: #00a0d2;
    text-decoration: underline;
}

/* アラートメッセージのスタイル */
#stickyboard-alert {
    display: none;
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 100000;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* ダッシュアイコンの読み込み */
@font-face {
    font-family: "dashicons";
    src: url('../../../wp-includes/fonts/dashicons.eot');
    src: url('../../../wp-includes/fonts/dashicons.eot?#iefix') format('embedded-opentype'),
         url('../../../wp-includes/fonts/dashicons.woff') format('woff'),
         url('../../../wp-includes/fonts/dashicons.ttf') format('truetype'),
         url('../../../wp-includes/fonts/dashicons.svg#dashicons') format('svg');
    font-weight: normal;
    font-style: normal;
}

.dashicons {
    font-family: "dashicons";
}

.dashicons-external:before {
    content: "\f504";
}

.dashicons-sticky:before {
    content: "\f537";
}

.dashicons-visibility:before {
    content: "\f177";
}

.dashicons-trash:before {
    content: "\f182";
}