/* ===========================================================
   WIDGETS
   Text editor / posts, music player, to-do list, and small stat labels
   =========================================================== */


/* ---- Text editor & posts ---- */
.text-editor {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    background: #c0c0c0;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #000000;
}

.editor-title-bar {
    background: linear-gradient(90deg, #000080 0%, #1084d7 100%);
    color: #ffffff;
    padding: 2px 4px;
    font-weight: bold;
    font-size: 11px;
    border-bottom: 1px solid #000000;
    flex-shrink: 0;
}

.editor-content {
    flex: 1;
    background: #ffffff;
    border: 2px inset #c0c0c0;
    padding: 4px;
    font-family: "Courier New", monospace;
    font-size: 11px;
    color: #000000;
    resize: none;
    outline: none;
    line-height: 1.5;
    overflow-y: auto;
}

.editor-content h1 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #000080;
}

.editor-content h2 {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #000080;
}

.posts-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-card {
    background: #f0f0f0;
    border: 1px solid #c0c0c0;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
    padding: 6px 8px;
    box-shadow: inset 0px 1px 0 #ffffff;
}
.post-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 4px 0 4px auto;
    align-self: flex-start;
}

.post-date {
    font-weight: bold;
    color: #000080;
    font-size: 10px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.post-text {
    color: #000000;
    font-size: 11px;
    line-height: 1.4;
    text-align: justify;
    word-wrap: break-word;
    white-space: normal;
}



/* ---- Music player ---- */
.music-player {
    width: 100%;
    font-size: 10px;
    color: #000000;
}

.music-player p {
    margin: 0;
    padding: 2px;
    background: #000080;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
}

#song-name {
    display: block;
    padding: 1px;
    background: #ffffff;
    border: 1px inset #808080;
    font-family: "Courier New", monospace;
    text-align: center;
}

audio {
    width: 100%;
    height: 25px;
    margin-top: 3px;
}

#mute-btn {
    width: 100%;
    padding: 1px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
}

#mute-btn:active {
    border-color: #808080 #ffffff #ffffff #808080;
}


/* ---- To-do list ---- */
.todo-list {
    width: 100%;
    font-size: 11px;
}

.todo-list h4 {
    margin: 0 0 8px 0;
    color: #000080;
}

.todo-list ul {
    margin: 0;
    padding-left: 18px;
}

.todo-list li {
    margin-bottom: 5px;
}


/* ---- Stat labels ---- */
.label {
    color: #000000;
    font-size: 11px;
    font-weight: normal;
}

#visits {
    font-size: 11px;
    font-weight: bold;
    color: #000080;
}

#space-count,
#btc-price {
    color: #000080;
    font-weight: bold;
}
