:root {
    --dark-color: #111212;
    --dark-gradient: linear-gradient(0deg, #111212, #181919);
    --med-color: #181919;
    --border-color: #1c242d;
    --primary-color: #681b48;
    --primary-color-dk: #681b4830;
    --secondary-color: #3c3fa1;
    --secondary-color-dk: #3c3fa130;
    --tertiary-color: #17766f;
    --tertiary-color-dk: #17766f30;
}

html {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Ubuntu,
        Cantarell,
        "Open Sans",
        "Helvetica Neue",
        sans-serif;
    font-weight: 300;
}

body {
    background-color: var(--dark-color);
    color: #ddd;
}

.boards {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.board {
    margin: 0 20px;
    background: var(--dark-gradient);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    position: relative;
}

.board h3 {
    padding: 6px 32px;
    margin: 12px auto 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.5px;
    display: inline-block;
}

.board.todo h3 {
    background-color: var(--primary-color);
}

.board.in-progress h3 {
    background-color: var(--secondary-color);
}

.board.done h3 {
    background-color: var(--tertiary-color);
}

.board .card {
    padding: 8px;
    width: 94%;
    margin: 14px 0;
    border-radius: 12px;
    border-width: 1px;
    border-style: solid;
    font-weight: 300;
    font-size: 14px;
    background-color: var(--dark-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
}

.board .card .close {
    width: 18px;
    height: 18px;
    position: absolute;
    right: 4px;
    top: 4px;
    border-radius: 50%;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    font-size: 15px;
    font-weight: 300;
    color: #a7a8a8;
}

.board .card .close:hover:before {
    display: block;
}

.board .card .close:before {
    content: "Delete Card";
    position: absolute;
    display: block;
    width: 100px;
    top: -29px;
    right: -40px;
    display: none;
    font-size: 13px;
    font-weight: 300;
    background: #00000075;
    border-radius: 4px;
    padding: 4px 0;
    color: #ffffff70;
}

.board .card .status {
    display: none;
}

/* Cards */

.board .todo .card {
    border-color: var(--primary-color);
    background-color: var(--primary-color-dk);
}

.board .in-progress .card {
    border-color: var(--secondary-color);
    background-color: var(--secondary-color-dk);
}

.board .done .card {
    border-color: var(--tertiary-color);
    background-color: var(--tertiary-color-dk);
}

/* Close */

.board.todo .card .close {
    color: var(--primary-color);
}

.board.in-progress .card .close {
    color: var(--secondary-color);
}

.board.done .card .close {
    color: var(--tertiary-color);
}

/* Drag Drop */

.highlight {
    background-color: var(--primary-color-dk);
}

.over {
    background-color: var(--secondary-color-dk);
}

.board .dropzone {
    padding: 16px;
    min-width: 332px;
    min-height: 60vh;
    margin: 0 auto;
}

.card,
.dropzone {
    transition: 0.4s;
}

.is-dragging {
    cursor: move !important;
}

.is-dragging {
    opacity: 0.3;
}

/* Add Card Button */

.btn-add-card {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: #1a1a1c;
    color: #888;
    border: none;
    border-radius: 50%;
    font-weight: 300;
    cursor: pointer;
    font-size: 1.5em;
}

.copy a {
    color: violet;
    text-decoration: none;
}
.copy {
    width: 100%;
    padding: 25px 0;
    display: flex;
    justify-content: center;
}

/* Kanban Control Panel Styles */

.kanban-controls {
    margin-bottom: 15px;
    padding: 10px;
    background: #16161e;
    border-radius: 5px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Base button styles */

.btn-control {
    padding: 6px 12px !important;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px !important;
    transition: all 0.2s ease;
    opacity: 1;
}

.btn-control:hover {
    opacity: 0.5;
    transform: translateY(-1px);
}

.btn-control:active {
    transform: translateY(0);
}

/* Sync folder button */

.btn-sync-folder {
    background: #9c27b0;
}

.btn-sync-folder:hover {
    background: #7b1fa2;
}

/* Manual sync button */

.btn-manual-sync {
    background: #b57d2b;
}

.btn-manual-sync:hover {
    background: #946623;
}

/* Auto-sync toggle button */

.btn-auto-sync {
    background: #607d8b;
}

.btn-auto-sync:hover {
    background: #455a64;
}

.btn-auto-sync.active {
    background: #4caf50;
}

.btn-auto-sync.active:hover {
    background: #45a049;
}

/* Import from folder button */

.btn-import-folder {
    background: #1895ff;
}

.btn-import-folder:hover {
    background: #0b7dda;
}

/* Export button */

.btn-export {
    background: #088159;
}

.btn-export:hover {
    background: #45a049;
}

/* Import button */
.btn-import {
    background: #2196f3;
}

.btn-import:hover {
    background: #0b7dda;
}

/* Clear all button */
.btn-clear {
    background: #831313;
}

.btn-clear:hover {
    background: #da190b;
}

/* Divider */
.control-divider {
    width: 1px;
    height: 30px;
    background: #444;
    margin: 0 5px;
}

/* Status text */
.sync-status {
    margin-left: auto;
    padding: 8px 16px;
    color: #ccc;
    font-size: 13px;
    display: flex;
    align-items: center;
}

/* Contenteditable styling */
.editable-content {
    min-height: 40px;
    padding: 8px;
    outline: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.4;
}

.editable-content:empty:before {
    content: attr(data-placeholder);
    color: #888;
    pointer-events: none;
}

/* Formatting toolbar */

.formatting-toolbar {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.formatting-toolbar .format-btn {
    background: var(--dark-color) !important;
    border: 1px solid var(--border-color) !important;
}

.formatting-toolbar .format-btn:hover {
    background: var(--med-color) !important;
    opacity: 0.6;
}

.formatting-toolbar .format-btn:active {
    background: var(--dark-color) !important;
    transform: scale(0.95);
}

/* Ensure formatted text is visible */
.editable-content b,
.editable-content strong {
    font-weight: 700;
}

.editable-content i,
.editable-content em {
    font-style: italic;
}

.editable-content u {
    text-decoration: underline;
}

.editable-content s,
.editable-content strike {
    text-decoration: line-through;
}
