.board-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #f4f7f6;
    z-index: 300000;
    display: flex;
    flex-direction: column;
}

.board-body-wrapper {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
}

.board-sidebar {
    width: 200px;
    height: 100%;
    background: #ffffff;
    border-right: 1px solid #b4bac1;
    display: flex;
    flex-direction: column;
    padding: 9px 9px;
    box-shadow: 2px 0 15px rgba(0,0,0,0.03);
    z-index: 400005;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto !important;
    overflow-x: hidden !important;
}


.board-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.board-sidebar::-webkit-scrollbar-thumb {
    background: #ff9800;
    border-radius: 2px;
}

.board-sidebar.collapsed {
    transform: translateX(-100%);
    position: absolute;
}

.board-sidebar-group {
    margin-bottom: 15px;
}

.board-sidebar-title {
    font-size: 12px;
    text-transform: uppercase;
    color: #777777;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

#student-board-overlay .board-sidebar .board-accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    cursor: pointer;
}

#student-board-overlay .board-sidebar .board-accordion-header span {
    font-size: 12px !important;
    text-transform: uppercase !important;
    color: #333232 !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px !important;
    transition: color 0.2s ease !important;
}

#student-board-overlay .board-sidebar .board-accordion-header:hover span {
    color: #111111 !important;
}

.board-accordion-icon {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease, filter 0.2s ease;
    color: #94a3b8;
    width: 22px !important;
    height: 22px !important;
}

.board-accordion-icon path {
    stroke-width: 1px !important;
}

.board-accordion-group.active .board-accordion-icon {
    transform: rotate(180deg);
}

.board-accordion-group.active:has(.icon-tools) .board-accordion-icon {
    color: #1a73e8;
    filter: drop-shadow(0 0 5px rgba(26, 115, 232, 0.5));
}

.board-accordion-group.active:has(.icon-shapes) .board-accordion-icon {
    color: #9333ea;
    filter: drop-shadow(0 0 5px rgba(147, 51, 234, 0.5));
}

.board-accordion-group.active:has(.icon-3d) .board-accordion-icon {
    color: #16a34a;
    filter: drop-shadow(0 0 5px rgba(22, 163, 74, 0.5));
}

.board-accordion-group.active:has(.icon-uploads) .board-accordion-icon {
    color: #ea580c;
    filter: drop-shadow(0 0 5px rgba(234, 88, 12, 0.5));
}

.board-dark-mode .board-accordion-group.active:has(.icon-tools) .board-accordion-icon {
    color: #60a5fa;
    filter: drop-shadow(0 0 5px rgba(96, 165, 250, 0.5));
}

.board-dark-mode .board-accordion-group.active:has(.icon-shapes) .board-accordion-icon {
    color: #d8b4fe;
    filter: drop-shadow(0 0 5px rgba(216, 180, 254, 0.5));
}

.board-dark-mode .board-accordion-group.active:has(.icon-3d) .board-accordion-icon {
    color: #4ade80;
    filter: drop-shadow(0 0 5px rgba(74, 222, 128, 0.5));
}

.board-dark-mode .board-accordion-group.active:has(.icon-uploads) .board-accordion-icon {
    color: #fb923c;
    filter: drop-shadow(0 0 5px rgba(251, 146, 60, 0.5));
}

.board-accordion-content {
    display: none;
    padding-top: 8px;
    padding-bottom: 10px;
}

.board-accordion-group.active .board-accordion-content {
    display: block;
}

:root {
    --shape-size: 40px;
    --shape-stroke-color: #8693d1;
    --shape-stroke-hover: #111111;
    --shape-fill-color: transparent;
    --shape-fill-hover: transparent;
    --shape-bg-hover: #f1f5f9;
    --board-grid-color: rgb(71 71 71 / 40%);
    --board-grid-width: 0.8px;
}

#student-board-overlay .board-sidebar .board-tools-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2px !important;
}

.btn-toggle-sidebar {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 15;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: none !important;
    align-items: center;
    justify-content: center;
    color: #475569 !important;
    transition: all 0.2s ease;
}

.btn-toggle-sidebar:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

.btn-toggle-sidebar svg {
    width: 20px !important;
    height: 20px !important;
    stroke: currentColor !important;
}

.board-sidebar.collapsed ~ .btn-toggle-sidebar {
    display: flex !important;
}

.board-sidebar:not(.collapsed) ~ .btn-toggle-sidebar {
    display: none !important;
}

.board-canvas-container {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: default;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}  

#student-board-overlay .board-sidebar .board-tools-grid .btn-board-tool {
    background: transparent !important;
    border: none !important;
    border-width: 0 !important;
    border-radius: 6px !important;
    padding: 2px !important;
    height: auto !important;
    min-height: 38px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease-out !important;
    overflow: visible !important;
    box-shadow: none !important;
    outline: none !important;
}

#student-board-overlay .board-sidebar .board-tools-grid .btn-board-tool:hover {
    background: var(--shape-bg-hover) !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

#student-board-overlay .board-sidebar .board-tools-grid .btn-board-tool.active {
    background: #e8f0fe !important;
    border: none !important;
    color: #1a73e8 !important;
    box-shadow: none !important;
    outline: none !important;
}

.board-sidebar-group:nth-child(2) .board-tools-grid .btn-board-tool svg {
    width: var(--shape-size) !important;
    height: var(--shape-size) !important;
    transition: all 0.2s ease-out !important;
}

.board-sidebar-group:nth-child(3) .board-tools-grid .btn-board-tool svg,
.board-sidebar-group:nth-child(4) .board-tools-grid .btn-board-tool svg {
    width: 42px !important;
    height: 42px !important;
    transition: all 0.2s ease-out !important;
}

.board-tools-grid .btn-board-tool svg * {
    vector-effect: non-scaling-stroke !important;
    stroke-width: 1.2px !important;
    stroke: var(--shape-stroke-color) !important;
    fill: var(--shape-fill-color) !important;
}

.board-tools-grid .btn-board-tool svg [stroke="none"] {
    stroke: none !important;
}

.board-tools-grid .btn-board-tool:hover svg * {
    stroke: var(--shape-stroke-hover) !important;
    fill: var(--shape-fill-hover) !important;
}

.board-tools-grid .btn-board-tool:hover svg [stroke="none"] {
    stroke: none !important;
}

.board-tools-grid .btn-board-tool.active svg * {
    stroke: #1a73e8 !important;
    fill: var(--shape-fill-hover) !important;
}

.board-tools-grid .btn-board-tool.active svg [stroke="none"] {
    stroke: none !important;
}

#student-board-overlay [data-tooltip]::after,
#student-board-overlay [data-tooltip]::before {
    display: none !important;
}

.board-settings-drawer [data-tooltip]::after {
    bottom: auto;
    top: 50%;
    right: calc(100% + 10px);
    left: auto;
    transform: translateY(-50%) translateX(6px);
    background-color: #ffffff;
    color: #334155;
    border: 1px solid #b2b1b0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 500000;
    min-width: 260px;
    max-width: 320px;
    white-space: normal;
    text-align: left;
    line-height: 1.5;
    padding: 14px 18px;
    font-size: 15px;
}

.board-settings-drawer [data-tooltip]::before {
    bottom: auto;
    top: 50%;
    right: calc(100% + 4px);
    left: auto;
    transform: translateY(-50%) translateX(6px);
    border-width: 6px 0 6px 6px;
    border-color: transparent transparent transparent #b2b1b0;
    z-index: 500001;
}

.board-settings-drawer [data-tooltip]:hover::after,
.board-settings-drawer [data-tooltip]:hover::before {
    transform: translateY(-50%) translateX(0);
}

.board-settings-drawer {
    z-index: 500000 !important;
}

.board-settings-body {
    max-height: calc(100vh - 80px);
    overflow-y: auto !important;
    z-index: 500000 !important;
    padding-right: 6px;
}

.board-settings-body::-webkit-scrollbar {
    width: 6px;
}

.board-settings-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.board-setting-item .info-icon-wrapper {
    position: relative;
    z-index: 999999 !important;
}

.board-close-btn {
    margin-left: auto;
    background: #111111;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.board-close-btn:hover {
    background: #333333;
}

.board-freehand-tools-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.board-color-picker-wrapper {
    position: relative;
    display: inline-block;
}

.board-color-preview-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fee0aa;
    cursor: pointer;
    padding: 0;
    outline: none;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.board-color-preview-btn:hover {
    transform: scale(1.08);
    border-color: #94a3b8;
}

.board-color-popover {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 400100;
    width: 165px;
    box-sizing: border-box;
}

.board-color-popover.active {
    display: block;
}

.board-color-palette {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.board-color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.board-color-swatch:hover {
    transform: scale(1.15);
}

.board-custom-color-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.15s ease;
}

.board-custom-color-label:hover {
    background: #f1f5f9;
}

.board-custom-color-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.board-stroke-width-wrapper {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 8px;
    height: 32px;
    box-sizing: border-box;
}

.board-stroke-width-input {
    width: 40px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    text-align: right;
    outline: none;
    -moz-appearance: textfield;
}

.board-stroke-width-input::-webkit-outer-spin-button,
.board-stroke-width-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.board-stroke-width-label {
    font-size: 12px;
    color: #64748b;
    margin-left: 4px;
    font-weight: 500;
}

.freehand-top-tool {
    background: transparent;
    border: none;
    padding: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    transition: all 0.2s;
    color: #334155;
    border-radius: 6px;
}

.board-top-bar svg {
    width: 28px !important;
    height: 28px !important;
}

.board-top-bar svg * {
    stroke-width: 0.8px !important;
    vector-effect: non-scaling-stroke !important;
}

.freehand-top-tool:hover {
    background: #f1f5f9;
}

.freehand-top-tool.active {
    color: #1a73e8;
    background: #e8f0fe;
}

.board-dropdown-select {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px;
    font-size: 13px;
    color: #334155;
    background: #f8fafc;
    outline: none;
    cursor: pointer;
}

.board-top-tools-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.highlighter-polygon {
    stroke-opacity: 0.5;
    stroke-linecap: square;
    stroke-linejoin: round;
    pointer-events: stroke;
    fill: none;
    filter: url(#highlighter-rough-edge);
    vector-effect: none !important;
}

.cursor-highlighter {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><line x1='12' y1='2' x2='12' y2='22' stroke='%23cbd5e1' stroke-width='4' stroke-linecap='round'/></svg>") 12 12, text !important;
}

.board-top-bar {
    flex-wrap: nowrap !important;
}

.board-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.board-top-action-btn {
    position: relative;
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #334155;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.board-top-action-btn:hover {
    background: #f1f5f9;
    color: #111111;
}

.board-dark-mode .board-top-action-btn {
    color: #b0b0b0;
}

.board-dark-mode .board-top-action-btn:hover {
    background: #333333;
    color: #ffffff;
}

.board-top-action-btn.homework-active {
    color: #22c55e !important;
    filter: drop-shadow(0 0 3px rgba(34, 197, 94, 0.45)) !important;
    background: #f0fdf4 !important;
}

.board-dark-mode .board-top-action-btn.homework-active {
    background: #064e3b !important;
}

.board-top-action-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.board-text-tools-container {
    display: flex !important;
    align-items: center;
    gap: 4px;
    border-left: 1px solid #cbd5e1;
    padding-left: 8px;
    margin-left: 4px;
}

#board-font-family {
    max-width: 110px !important;
    text-overflow: ellipsis;
}

#board-font-size {
    max-width: 75px !important;
}

.btn-text-style-tool {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #334155;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-text-style-tool:hover {
    background: #f1f5f9;
    color: #111111;
}

.btn-text-style-tool.active {
    background: #e8f0fe;
    color: #1a73e8;
    border-color: #bfdbfe;
}

.board-text-box-wrapper {
    position: absolute;
    width: 100%;
    min-width: 860px;
    min-height: 40px;
    background: transparent;
    box-sizing: border-box;
}

.board-text-editor {
    width: 100%;
    height: 100%;
    min-width: 310px;
    min-height: 40px;
    outline: none;
    border: 1px solid #9da5ab;
    background: #ffffff;
    border-radius: 6px;
    color: #111111;
    font-family: inherit;
    font-size: 24px;
    line-height: 1.3;
    word-break: break-word;
    white-space: pre-wrap;
    box-sizing: border-box;
    padding: 8px 10px;
    margin: 0;
    resize: none;
    overflow: visible;
}

.board-text-editor.editing {
    border: 1px dashed #1a73e8 !important;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
    border-radius: 4px;
}

.board-dark-mode {
    background: rgb(84, 85, 95) !important;
    color: #e0e0e0;
}

.board-dark-mode .board-top-bar,
.board-dark-mode .board-sidebar,
.board-dark-mode .board-settings-drawer,
.board-dark-mode .board-color-dropdown,
.board-dark-mode .board-color-popover,
.board-dark-mode .board-table-tools-bar {
    background: #2a2d34 !important;
    border-color: #3f434d !important;
}

//*.board-dark-mode #svg-shapes-layer polygon,
.board-dark-mode #svg-shapes-layer line,
.board-dark-mode #svg-shapes-layer path,
.board-dark-mode #svg-shapes-layer circle,
.board-dark-mode #svg-shapes-layer ellipse,
.board-dark-mode #svg-drawing-layer polygon,
.board-dark-mode #svg-drawing-layer line,
.board-dark-mode #svg-drawing-layer path {
    stroke: #e2e8f0 !important;
}*// 

.board-dark-mode #board-startup-spinner > div:last-child {
    background: radial-gradient(circle, rgba(42, 45, 52, 0) 30%, rgba(42, 45, 52, 0.9) 85%) !important;
}

#student-board-overlay.board-dark-mode .board-sidebar .board-tools-grid .btn-board-tool {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#student-board-overlay.board-dark-mode .board-sidebar .board-tools-grid .btn-board-tool:hover {
    background: #383c47 !important;
}

#student-board-overlay.board-dark-mode .board-sidebar .board-tools-grid .btn-board-tool.active {
    background: #3a4252 !important;
    border: none !important;
    box-shadow: none !important;
}

#student-board-overlay.board-dark-mode .board-sidebar .board-tools-grid .btn-board-tool svg * {
    stroke: #e2e8f0 !important;
}

#student-board-overlay.board-dark-mode .board-sidebar .board-tools-grid .btn-board-tool.active svg * {
    stroke: #60a5fa !important;
}

.board-dark-mode .board-settings-header {
    background: #1a1a1a !important;
    border-bottom-color: #333333 !important;
}

.board-dark-mode .board-settings-title,
.board-dark-mode .board-setting-label,
.board-dark-mode .board-accordion-header,
.board-dark-mode .board-sidebar-title,
.board-dark-mode .board-custom-color-label {
    color: #cccccc !important;
}

.board-dark-mode .board-accordion-header:hover {
    color: #ffffff !important;
}

.board-dark-mode .btn-board-tool,
.board-dark-mode .btn-close-settings,
.board-dark-mode .freehand-top-tool {
    color: #b0b0b0 !important;
}

.board-dark-mode .board-tools-grid .btn-board-tool:hover,
.board-dark-mode .btn-close-settings:hover,
.board-dark-mode .freehand-top-tool:hover {
    background: #333333 !important;
    color: #ffffff !important;
}

.board-dark-mode .board-tools-grid .btn-board-tool.active,
.board-dark-mode .freehand-top-tool.active {
    background: #2a3b50 !important;
    color: #6fbaff !important;
}

.board-dark-mode .board-tools-grid .btn-board-tool svg * {
    stroke: #b0b0b0 !important;
}

.board-dark-mode .board-tools-grid .btn-board-tool:hover svg * {
    stroke: #ffffff !important;
}

.board-dark-mode .board-tools-grid .btn-board-tool.active svg * {
    stroke: #6fbaff !important;
}

.board-tabs-bar {
    display: flex;
    align-items: flex-end;
    padding: 2px 3px 2px 3px;
    background: #f2e9f1;
    border-bottom: 1px solid #94a3b8;
}

#board-tabs-list {
    display: flex;
    align-items: flex-end;
    gap: 6px !important;
}

.board-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    border-radius: 8px 8px 0 0;
    border: 1px solid #94a3b8;
    border-bottom: none;
    font-family: 'Inter', 'Montserrat', 'Roboto', 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #1e293b;
    cursor: pointer;
    transition: background-color 0.2s ease, filter 0.2s ease;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.02);
    position: relative;
    max-height: 34px;
    box-sizing: border-box;
}

.board-tab:hover {
    filter: brightness(0.95);
}

.board-tab.active {
    font-weight: 200;
    font-size: 12px;
    color: #5d6066;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
    padding-top: 8px;
    max-height: 25px;
    z-index: 2;
}

.board-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: inherit;
}

.btn-close-tab {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: #64748b;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-family: Arial, sans-serif;
}

.btn-close-tab:hover {
    color: #ffffff;
    background: #ef4444;
}

.btn-add-tab {
    background: #ffffff;
    border: 1px dashed #8e9299;
    color: #64748b;
    stroke-width: 0.5px !important;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    padding: 0 14px;
    height: 25px;
    margin-left: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: none;
}

.btn-add-tab:hover {
    background: #e8f0fe;
    color: #1a73e8;
    border-color: #1a73e8;
}

.board-dark-mode .board-tabs-bar {
    background: #121212 !important;
    border-color: #333333 !important;
}

.board-dark-mode .board-tab {
    background: #2a2a2a !important;
    color: #e2e8f0 !important;
    border-color: #3f434d !important;
}

.board-dark-mode .board-tab:hover {
    background: #333333 !important;
    color: #ffffff !important;
}

.board-dark-mode .board-tab.active {
    background: #1e1e1e !important;
    color: #ffffff !important;
}

.board-dark-mode .btn-close-tab {
    color: #b0b0b0 !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.board-dark-mode .btn-close-tab:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
}

.board-dark-mode .btn-add-tab {
    background: #1e1e1e !important;
    border-color: #3f434d !important;
    color: #b0b0b0 !important;
}

.board-dark-mode .btn-add-tab:hover {
    background: #2a3b50 !important;
    color: #6fbaff !important;
    border-color: #405a7a !important;
}

.board-dark-mode #board-class-timer,
.board-dark-mode #board-members-wrapper {
    background: #1a1a1a !important;
    border-color: #333333 !important;
    color: #e0e0e0 !important;
}

.board-dark-mode #board-member-item {
    color: #e0e0e0 !important;
}

.board-dark-mode #board-member-item div {
    background: #2a2a2a !important;
    border-color: #444444 !important;
    color: #cccccc !important;
}

.board-dark-mode #board-member-name {
    color: #cccccc !important;
}

.board-dark-mode .btn-toggle-sidebar {
    background: #1e1e1e !important;
    border-color: #333333 !important;
    color: #cccccc !important;
}

.board-dark-mode .board-dropdown-select,
.board-dark-mode .board-custom-color-label,
.board-dark-mode .board-stroke-width-wrapper,
.board-dark-mode .board-stroke-width-input {
    background: #2a2a2a !important;
    border-color: #444444 !important;
    color: #cccccc !important;
}

.board-dark-mode .btn-text-style-tool {
    color: #cccccc !important;
}

.board-dark-mode .btn-text-style-tool:hover {
    background: #333333 !important;
    color: #ffffff !important;
}

.board-dark-mode .btn-text-style-tool.active {
    background: #2a3b50 !important;
    color: #6fbaff !important;
    border-color: #405a7a !important;
}

.board-dark-mode #board-precision-input-container {
    background: #1e1e1e !important;
    border-color: #333333 !important;
    color: #e0e0e0 !important;
}

.board-dark-mode #board-precision-input-container span {
    color: #cccccc !important;
}

.board-dark-mode #board-precision-input-container input {
    background: #2a2a2a !important;
    border-color: #444444 !important;
    color: #e0e0e0 !important;
}

.board-dark-mode .board-close-btn {
    background: #333333 !important;
    color: #ffffff !important;
}

.board-dark-mode .board-close-btn:hover {
    background: #444444 !important;
}

.board-dark-mode .board-setting-item {
    border-bottom-color: #333333 !important;
}

.board-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e2e8f0;
    gap: 10px;
}

.board-setting-label {
    flex: 1;
    font-size: 11px;
    color: #475569;
    font-weight: 500;
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #777777;
    cursor: pointer;
    transition: color 0.2s ease;
}

.info-icon-wrapper:hover {
    color: #1a73e8;
}

.info-icon-wrapper svg {
    width: 30px;
    height: 30px;
    stroke-width: 0.8px;
    color: #317bb7;
}

#board-grid-pattern path {
    stroke: var(--board-grid-color);
    stroke-width: var(--board-grid-width);
}

.board-dark-mode #board-grid-pattern path {
    stroke: rgba(255, 255, 255, 0.3) !important;
}

.board-dark-mode .board-text-editor.editing {
    background: rgba(30, 30, 30, 0.85) !important;
    color: #ffffff !important;
}

.board-floating-toolbar {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #f2e9f1;
    border: 1px solid #b4bac1;
    border-radius: 25px;
    padding: 6px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 8px;
    z-index: 400000;
    align-items: center;
    transition: bottom 0.3s ease;
}

#board-action-tooltip {
    position: fixed;
    background: #efd8ec !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    display: none;
    pointer-events: none;
    z-index: 500000;
    max-width: 320px;
    white-space: normal;
    line-height: 1.4;
    text-align: left;
    word-break: break-word;
}

.board-dark-mode #board-action-tooltip {
    background: #2a2d34 !important;
    color: #f8fafc !important;
    border-color: #3f434d !important;
}

.board-floating-toolbar .btn-board-tool {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    transition: all 0.2s;
    color: #595959;
    border-radius: 6px;
}

.board-accordion-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.board-floating-toolbar .btn-board-tool.active {
    background: #e8f0fe;
    color: #1a73e8 !important;
}

.board-dark-mode .board-floating-toolbar .btn-board-tool.active {
    background: #2a3b50 !important;
    color: #6fbaff !important;
}

.board-floating-toolbar .btn-board-tool:hover {
    background: #f1f5f9;
    color: #111111;
}

.board-floating-toolbar .btn-board-tool.active {
    background: #e8f0fe;
    color: #1a73e8;
}

.board-dark-mode .board-floating-toolbar {
    background: #2a2d34 !important;
    border-color: #3f434d !important;
}

.board-detailed-table rect {
    fill: #ffffff;
    stroke: #cbd5e1;
    rx: 6px;
}

.board-detailed-table text.label {
    fill: #475569;
    font-family: sans-serif;
}

.board-detailed-table text.value {
    fill: #111111;
    font-weight: bold;
    font-family: sans-serif;
    text-anchor: end;
}

.board-dark-mode .board-detailed-table rect {
    fill: #2a2d34;
    stroke: #3f434d;
}

.board-dark-mode .board-detailed-table text.label {
    fill: #94a3b8;
}

.board-dark-mode .board-detailed-table text.value {
    fill: #f8fafc;
}

.board-members-accordion-wrapper {
    width: 100%;
    border-radius: 6px;
    box-sizing: border-box;
    overflow: hidden;
}
.board-members-header {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.board-members-header:hover {
    background: #f1f5f9;
}
.board-members-status-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    margin-right: 8px;
}
.board-member-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.board-member-dot.online {
    background-color: #22c55e;
}
.board-member-dot.offline {
    background-color: #ef4444;
}
.board-members-accordion-wrapper.active .board-accordion-icon {
    transform: rotate(180deg);
}
.board-members-content {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 0 14px 14px 14px;
    border-top: 1px solid transparent;
}
.board-members-accordion-wrapper.active .board-members-content {
    display: flex;
    border-top-color: #e2e8f0;
    padding-top: 12px;
}
.board-member-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.board-member-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border-radius: 50%;
    color: #475569;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex-shrink: 0;
}
.board-member-dot-large {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #ffffff;
}
.board-member-dot-large.online {
    background-color: #22c55e;
    box-shadow: 0 0 4px rgba(34, 197, 94, 0.4);
}
.board-member-dot-large.offline {
    background-color: #ef4444;
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.4);
}
.board-member-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.board-member-name {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.board-member-status-text {
    font-size: 10px;
    font-weight: 500;
    margin-top: 2px;
}
.board-member-status-text.online {
    color: #22c55e;
}
.board-member-status-text.offline {
    color: #ef4444;
}

.board-member-status-text.offline {
    color: #ef4444;
}

.board-symbols-drawer {
    position: absolute;
    top: 40px;
    left: 200px;
    width: 360px;
    height: calc(100% - 40px);
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    box-shadow: 10px 0 25px rgba(0,0,0,0.05);
    z-index: 100;
    transform: translateX(-150%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    visibility: hidden;
}

.board-symbols-drawer.open {
    transform: translateX(0);
    visibility: visible;
}

.board-symbols-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.board-symbols-title {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.board-symbols-mode-tabs {
    display: flex;
    padding: 10px 20px;
    gap: 10px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.board-symbols-mode-tab {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.board-symbols-mode-tab.active {
    background: #e8f0fe;
    color: #1a73e8;
    border-color: #3b82f6;
}

.board-symbols-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.board-mathlive-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.board-quick-math-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.btn-quick-math {
    padding: 6px 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-quick-math:hover {
    background: #e8f0fe;
    border-color: #1a73e8;
    color: #1a73e8;
}

#board-math-field {
    width: 100%;
    min-height: 80px;
    font-size: 16px;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
}

.board-dark-mode .btn-quick-math {
    background: #2a2d34 !important;
    border-color: #3f434d !important;
    color: #e0e0e0 !important;
}

.board-dark-mode .btn-quick-math:hover {
    background: #3a4252 !important;
    border-color: #6fbaff !important;
    color: #6fbaff !important;
}

.btn-insert-formula {
    width: 100%;
    padding: 10px;
    background: #1a73e8;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-insert-formula:hover {
    background: #1557b0;
}

.board-unicode-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.board-unicode-cat-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
}

.board-unicode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 6px;
}

.board-unicode-item {
    height: 44px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.board-unicode-item:hover {
    border-color: #1a73e8;
    background: #e8f0fe;
    color: #1a73e8;
    transform: scale(1.05);
}

.board-dark-mode .board-symbols-drawer {
    background: #2a2d34 !important;
    border-color: #3f434d !important;
}

.board-dark-mode .board-symbols-header,
.board-dark-mode .board-symbols-mode-tabs {
    border-color: #3f434d !important;
    background: #1f2228 !important;
}

.board-dark-mode .board-symbols-title {
    color: #e0e0e0 !important;
}

.board-dark-mode .board-symbols-mode-tab {
    background: #2a2d34 !important;
    border-color: #3f434d !important;
    color: #aaaaaa !important;
}

.board-dark-mode .board-symbols-mode-tab.active {
    background: #2a3b50 !important;
    color: #6fbaff !important;
    border-color: #405a7a !important;
}

.board-dark-mode math-field {
    background: #1e1e1e !important;
    border-color: #444444 !important;
    color: #ffffff !important;
}

.board-dark-mode .board-unicode-item {
    background: #2a2d34 !important;
    border-color: #3f434d !important;
    color: #e0e0e0 !important;
}

.board-dark-mode .board-unicode-item:hover {
    background: #3a4252 !important;
    color: #6fbaff !important;
    border-color: #6fbaff !important;
}  

.board-sidebar-header-top {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-bottom: 2px;
    width: 100%;
}

.btn-sidebar-collapse {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    align-self: flex-end;
    transition: all 0.2s ease;
}

.btn-sidebar-collapse:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.board-class-timer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 6px 10px;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
}

.board-timer-time-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.board-timer-time-row svg {
    width: 30px;
    height: 26px;
    stroke-width: 1px;
    color: #13a588;
    margin: 0;
    background: transparent;
    filter: drop-shadow(0 0 4px rgba(234, 88, 12, 0.4));
}

.top-timer-wrapper {
    display: flex;
    align-items: center;
    margin: 0 4px;
    padding: 0 12px;
    border-left: 1px solid #cbd5e1;
    height: 32px;
}

#board-timer-display {
    font-size: 15px;
    font-weight: 100;
    color: #6e756e;
    letter-spacing: 1px;
    font-family: monospace;
    background: #f2e9f1;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
}

.board-dark-mode .top-timer-wrapper {
    border-left-color: #3f434d;
}

.board-dark-mode #board-timer-display {
    background: #2a3b50;
    color: #6fbaff;
}

.board-timer-controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
}

.board-timer-controls-row svg {
    width: 18px !important;
    height: 18px !important;
}

.board-timer-controls-row svg * {
    stroke-width: 1px !important;
}

.btn-timer-action {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-timer-action:hover {
    transform: scale(1.12);
    background: #f1f5f9;
}

.btn-timer-play {
    color: #22c55e;
}

.btn-timer-pause {
    color: #f59e0b;
}

.btn-timer-stop {
    color: #ef4444;
}

.board-sidebar-footer-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 2px;
}

.btn-sidebar-footer-action {
    background: transparent;
    border: none;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
}

.btn-sidebar-footer-action svg {
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease;
}

.btn-sidebar-footer-action svg * {
    stroke-width: 0.8px !important;
}

.btn-sidebar-footer-action:hover {
    background: transparent;
    color: #0f172a;
}

.btn-sidebar-footer-action:hover svg {
    transform: scale(1.1);
}

.board-dark-mode .btn-sidebar-footer-action {
    background: transparent;
    border: none;
    color: #b0b0b0;
}

.board-dark-mode .btn-sidebar-footer-action:hover {
    background: transparent;
    color: #ffffff;
}

.board-floating-toolbar .btn-board-tool {
    width: 56px !important;
    height: 56px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 8px !important;
}

.board-floating-toolbar .btn-board-tool svg {
    width: 40px !important;
    height: 40px !important;
}

.board-floating-toolbar .btn-board-tool svg * {
    stroke-width: 0.8px !important;
}

@media (hover: hover) and (pointer: fine) {
    .board-floating-toolbar .btn-board-tool {
        width: 36px !important;
        height: 36px !important;
        padding: 5px !important;
    }

    .board-floating-toolbar .btn-board-tool svg {
        width: 26px !important;
        height: 26px !important;
    }

    .board-floating-toolbar .btn-board-tool svg * {
        stroke-width: 0.8px !important;
    }
}

.board-top-bar {
    height: 60px;
    background: #f2e9f1;
    border-bottom: 1px solid #b4bac1;
    padding: 0 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    z-index: 400000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    flex-wrap: nowrap !important;
}

.board-members-accordion-wrapper {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
}

.board-members-header {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 8px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer;
}

.board-members-header:hover {
    background: transparent !important;
}

.board-members-content {
    width: 100% !important;
    padding: 6px 0 !important;
    border-top: none !important;
    display: none;
    flex-direction: column !important;
    gap: 8px !important;
}

.board-members-accordion-wrapper.active .board-members-content {
    display: flex !important;
}

.board-member-row {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.board-member-avatar {
    width: 39px !important;
    height: 39px !important;
    flex-shrink: 0 !important;
    position: relative;
}

.board-member-info {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    flex: 1 !important;
}

#student-board-overlay .board-sidebar .board-member-name {
    font-size: 11px !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#student-board-overlay .board-sidebar .board-member-status-text {
    font-size: 12px !important;
}

.cursor-laser {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><circle cx='8' cy='8' r='6' fill='%23ef4444' opacity='0.8'/><circle cx='8' cy='8' r='2' fill='%23ffffff'/></svg>") 8 8, crosshair !important;
}

.laser-path {
    --laser-color: #ef4444;
    --laser-width: 1px;
    --laser-glow-1: 3px;
    --laser-glow-2: 6px;
    --laser-duration: 4s;

    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: var(--laser-color) !important;
    filter: drop-shadow(0 0 var(--laser-glow-1) var(--laser-color)) drop-shadow(0 0 var(--laser-glow-2) var(--laser-color));
    animation: laserFade var(--laser-duration) ease-out forwards;
}

@keyframes laserFade {
    0% {
        opacity: 1;
        stroke-width: var(--laser-width);
    }
    70% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        stroke-width: 0px;
    }
}

.board-context-menu {
    position: fixed;
    background: #ffffff;
    border: 1px solid #b2b1b0;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 6px 0;
    min-width: 200px;
    z-index: 500000;
    font-family: sans-serif;
    font-size: 13px;
    color: #334155;
    display: none;
}

.board-ctx-quick-tools {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    width: 100%;
    box-sizing: border-box;
    gap: 2px;
}

.board-ctx-quick-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    color: #475569;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.board-ctx-quick-icon:hover {
    background-color: #f1f5f9;
    color: #111111;
}

.board-ctx-item {
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: background-color 0.2s ease;
    position: relative;
}

.board-ctx-item:hover {
    background-color: #f1f5f9;
}

.board-ctx-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 4px 0;
}

.board-ctx-submenu {
    position: absolute;
    top: -1px;
    left: 100%;
    background: #ffffff;
    border: 1px solid #b2b1b0;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 6px 0;
    min-width: 180px;
    display: none;
    z-index: 500001;
}

.board-ctx-item.has-submenu:hover > .board-ctx-submenu {
    display: block;
}

.board-ctx-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.board-ctx-icon svg {
    width: 25px;
    height: 25px;
    stroke-width: 0.8px;
}

.board-ctx-arrow {
    margin-left: auto;
}

/* Kolory ikonek */
.board-ctx-item[data-action="copy"] .board-ctx-icon {
    color: #3b82f6;
    filter: drop-shadow(0 0 3px rgba(59, 130, 246, 0.45));
}

.board-ctx-item[data-action="paste"] .board-ctx-icon {
    color: #10b981;
    filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.45));
}

.board-ctx-item[data-action="delete"] .board-ctx-icon {
    color: #ef4444;
    filter: drop-shadow(0 0 3px rgba(239, 68, 68, 0.45));
}

.board-ctx-item.has-submenu .board-ctx-icon {
    color: #8b5cf6;
    filter: drop-shadow(0 0 3px rgba(139, 92, 246, 0.45));
}

/* Strzałki w górę - ZIELONY */
.board-ctx-item[data-action="bring_to_front"] .board-ctx-icon,
.board-ctx-item[data-action="bring_forward"] .board-ctx-icon {
    color: #22c55e;
    filter: drop-shadow(0 0 3px rgba(34, 197, 94, 0.45));
}

/* Strzałki w dół - CZERWONY */
.board-ctx-item[data-action="send_backward"] .board-ctx-icon,
.board-ctx-item[data-action="send_to_back"] .board-ctx-icon {
    color: #ef4444;
    filter: drop-shadow(0 0 3px rgba(239, 68, 68, 0.45));
}

.board-ctx-item[data-action="select_all"] .board-ctx-icon {
    color: #14b8a6;
    filter: drop-shadow(0 0 3px rgba(20, 184, 166, 0.45));
}

.board-ctx-item[data-action="screenshot"] .board-ctx-icon {
    color: #a855f7;
    filter: drop-shadow(0 0 3px rgba(168, 85, 247, 0.45));
}

.board-ctx-item[data-action="add_topic"] .board-ctx-icon {
    color: #38bdf8;
    filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.45));
}

.board-ctx-item[data-action="save_board"] .board-ctx-icon {
    color: #22c55e;
    filter: drop-shadow(0 0 3px rgba(34, 197, 94, 0.45));
}

.board-ctx-item:hover {
    background-color: #f1f5f9;
}

.board-ctx-quick-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    box-sizing: border-box;
    gap: 2px;
}

.board-ctx-quick-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 6px;
    cursor: pointer;
    color: #475569;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.board-ctx-quick-icon:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.board-ctx-quick-icon svg {
    width: 27px;
    height: 30px;
    stroke-width: 0.8px;
}

.board-ctx-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 4px 0;
}

.board-ctx-submenu {
    position: absolute;
    top: -1px;
    left: 100%;
    background: #ffffff;
    border: 1px solid #b2b1b0;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 6px 0;
    min-width: 180px;
    display: none;
    z-index: 500001;
}

.board-ctx-item.has-submenu:hover > .board-ctx-submenu {
    display: block;
}

.pencil-mode-popover {
    display: none;
    position: absolute !important;
    bottom: calc(100% + 8px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 400100;
    width: max-content !important;
    min-width: 140px;
    flex-direction: column;
    gap: 2px;
}

.pencil-mode-popover.active {
    display: none !important;
}

.pencil-mode-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pencil-mode-option > span:first-child {
    display: none !important;
}

.pencil-mode-option:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.pencil-mode-option.active {
    background: #e8f0fe;
    color: #1a73e8;
    font-weight: 600;
}

.board-dark-mode .pencil-mode-popover {
    background: #2a2d34 !important;
    border-color: #3f434d !important;
}

.board-dark-mode .pencil-mode-option {
    color: #cccccc !important;
}

.board-dark-mode .pencil-mode-option:hover {
    background: #383c47 !important;
    color: #ffffff !important;
}

.board-dark-mode .pencil-mode-option.active {
    background: #2a3b50 !important;
    color: #6fbaff !important;
}

.board-selection-frame {
    fill: none;
    stroke: #1a73e8;
    stroke-width: 1;
    stroke-dasharray: 4,4;
}

.board-handle-line {
    stroke: #1a73e8;
    stroke-width: 1;
    stroke-dasharray: 3,3;
}

.board-handle-element {
    transition: transform 0.15s ease, fill 0.15s ease, stroke 0.15s ease, filter 0.15s ease;
    transform-box: fill-box;
    transform-origin: center;
}

.board-handle-element:hover {
    transform: scale(1.4);
}

.board-handle-resize {
    rx: 10px;
    ry: 10px;
    fill: #ffffff;
    stroke: #e8a61a;
    stroke-width: 0.5;
    filter: drop-shadow(0 0 3px rgba(26, 115, 232, 0.45));
}

.board-handle-rotate {
    r: 5px;
    fill: #ff980000;
    stroke: #f60000;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 4px rgba(255, 152, 0, 0.6));
}

.board-rotation-text {
    font-size: 24px;
    font-weight: 300;
    font-family: Arial, sans-serif;
    fill: #0f65bf;
}

#btn-board-mic {
    transition: all 0.2s ease;
    color: #334155; 
}

#btn-board-mic.active {
    color: #1a73e8; 
    filter: drop-shadow(0 0 3px rgba(26, 115, 232, 0.45)); 
    background: #e8f0fe;
}

@keyframes micPulseSpeaking {
    0% {
        transform: scale(1);
        color: #1a73e8;
        filter: drop-shadow(0 0 2px rgba(26, 115, 232, 0.4));
    }
    50% {
        transform: scale(1.2);
        color: #22c55e;
        filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.8));
    }
    100% {
        transform: scale(1);
        color: #1a73e8;
        filter: drop-shadow(0 0 2px rgba(26, 115, 232, 0.4));
    }
}

#btn-board-mic.speaking {
    animation: micPulseSpeaking 0.6s infinite ease-in-out !important;
}

#btn-board-audio {
    transition: all 0.2s ease;
    color: #334155; 
}

#btn-board-audio.active {
    color: #1a73e8; 
    filter: drop-shadow(0 0 3px rgba(26, 115, 232, 0.45));
    background: #e8f0fe;
}

#btn-board-audio.muted {
    color: #ef4444; 
    filter: drop-shadow(0 0 3px rgba(239, 68, 68, 0.45));
    background: #fef2f2;
}

.board-top-action-btn#btn-board-mic svg *,
.board-top-action-btn#btn-board-audio svg * {
    stroke-width: 1px !important;
}


#board-mic-settings-popover input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    height: 16px;
    margin: 0;
    padding: 0;
}

#board-mic-settings-popover input[type="range"]:focus {
    outline: none;
}

#board-mic-settings-popover input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 3px;
    cursor: pointer;
    background: #cbd5e1;
    border-radius: 2px;
    transition: background 0.2s ease;
}

#board-mic-settings-popover input[type="range"]::-webkit-slider-thumb {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #1a73e8;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -4.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

#board-mic-settings-popover input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    background: #1557b0;
}

#board-mic-settings-popover input[type="range"]::-moz-range-track {
    width: 100%;
    height: 3px;
    cursor: pointer;
    background: #cbd5e1;
    border-radius: 2px;
}

#board-mic-settings-popover input[type="range"]::-moz-range-thumb {
    height: 12px;
    width: 12px;
    border: none;
    border-radius: 50%;
    background: #1a73e8;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

#board-mic-settings-popover input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.25);
    background: #1557b0;
}

.board-dark-mode #board-mic-settings-popover {
    background: #2a2d34 !important;
    border-color: #3f434d !important;
    color: #e0e0e0 !important;
}

.board-dark-mode #board-mic-settings-popover div {
    color: #cccccc !important;
    border-color: #3f434d !important;
}

.board-dark-mode #board-mic-settings-popover label {
    color: #aaaaaa !important;
}

.board-dark-mode #board-mic-settings-popover select {
    background: #1e1e1e !important;
    border-color: #3f434d !important;
    color: #ffffff !important;
}

.board-dark-mode #board-mic-settings-popover input[type="range"]::-webkit-slider-runnable-track {
    background: #475569;
}

.board-dark-mode #board-mic-settings-popover input[type="range"]::-moz-range-track {
    background: #475569;
}

.board-dark-mode #board-mic-settings-popover input[type="range"]::-webkit-slider-thumb {
    background: #60a5fa;
}

.board-dark-mode #board-mic-settings-popover input[type="range"]::-moz-range-thumb {
    background: #60a5fa;
}

.board-rate-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 600000;
}

.board-rate-modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    width: 750px;
    max-height: 85vh;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

.board-rate-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    text-align: center;
    flex-shrink: 0;
}

.board-rate-tabs-header {
    display: flex;
    justify-content: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.board-rate-tab-btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.board-rate-tab-btn.active {
    background: #ffffff;
    color: #1a73e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.board-rate-tab-content {
    display: none;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
    overflow-y: auto;
}

.board-rate-tab-content.active {
    display: flex;
}

.board-rate-stars-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.board-rate-stars-label {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    text-align: center;
}

.board-rate-stars-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0;
    flex-shrink: 0;
}

.board-dark-mode .board-rate-tabs-header {
    background: #1f2228;
    border-color: #3f434d;
}

.board-dark-mode .board-rate-tab-btn {
    color: #cbd5e1;
}

.board-dark-mode .board-rate-tab-btn.active {
    background: #2a2d34;
    color: #60a5fa;
}

.board-dark-mode .board-rate-stars-label {
    color: #e2e8f0;
}

.board-rate-tab-content {
    display: none;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

.board-rate-tab-content.active {
    display: flex;
}

.board-rate-stars-label {
    font-size: 14px;
    text-align: center;
    color: #64748b;
    font-weight: bold;
    margin-top: 5px;
}

.board-rate-stars-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0;
    flex-shrink: 0;
}

.board-star-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #cbd5e1;
    transition: transform 0.15s ease, color 0.15s ease;
}

.board-star-btn:hover,
.board-star-btn.active {
    color: #eab308;
    transform: scale(1.15);
}

.board-rate-questions-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}

.board-rate-questions-scroll::-webkit-scrollbar {
    width: 6px;
}
.board-rate-questions-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.board-rate-q-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.board-rate-q-title {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
}

.board-rate-q-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.board-rate-radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
}

.board-rate-radio {
    width: 18px;
    height: 18px;
    accent-color: #1a73e8;
    cursor: pointer;
}

.board-rate-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
    flex-shrink: 0;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.board-dark-mode .board-rate-modal-content {
    background: #2a2d34;
    color: #f8fafc;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.05);
}

.board-dark-mode .board-rate-modal-title,
.board-dark-mode .board-rate-q-title {
    color: #f8fafc;
}

.board-dark-mode .board-rate-q-block {
    background: #1f2228;
    border-color: #3f434d;
}

.board-dark-mode .board-rate-radio-item {
    color: #cbd5e1;
}

.board-dark-mode .board-rate-actions {
    border-top-color: #3f434d;
}

.board-text-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.board-text-move-handle {
    position: absolute;
    bottom: -32px;
    right: 0;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    display: none !important;
    align-items: center;
    justify-content: center;
    cursor: move;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 100;
    color: #1a73e8;
    transition: transform 0.15s ease, background-color 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
}

.active-handle .board-text-move-handle {
    display: flex !important;
}

.board-text-move-handle svg {
    width: 16px;
    height: 16px;
}

.board-text-move-handle:hover {
    transform: scale(1.15);
    background: #e8f0fe;
    color: #1557b0;
}

.board-dark-mode .board-text-move-handle {
    background: #2a2d34;
    border-color: #3f434d;
    color: #60a5fa;
}

.board-dark-mode .board-text-move-handle:hover {
    background: #3a4252;
    color: #93c5fd;
}

.board-text-box-style-wrapper {
    position: fixed;
    display: none;
    z-index: 500000;
    top: 0;
    left: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    align-items: center;
    white-space: nowrap;
}

.board-text-box-style-wrapper.visible {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.board-text-box-style-wrapper .btn-text-style-tool {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #334155;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
}

.board-text-box-style-wrapper .btn-text-style-tool:hover {
    background: #f1f5f9;
    color: #111111;
}

.board-text-box-style-wrapper .btn-text-style-tool.active {
    background: #e8f0fe;
    color: #1a73e8;
    border-color: #bfdbfe;
}

#btn-text-box-delete:hover {
    color: #ef4444;
    background: #fef2f2;
}

#btn-text-box-mic.recording {
    color: #ef4444;
    animation: pulse-mic 1.5s infinite;
}

@keyframes pulse-mic {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.board-dark-mode .board-text-box-style-wrapper {
    background: #2a2d34 !important;
    border-color: #3f434d !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35) !important;
}

.board-dark-mode .board-text-box-style-wrapper .btn-text-style-tool {
    color: #b0b0b0 !important;
    background: transparent !important;
    border-color: transparent !important;
}

.board-dark-mode .board-text-box-style-wrapper .btn-text-style-tool:hover {
    background: #383c47 !important;
    color: #ffffff !important;
}

.board-dark-mode .board-text-box-style-wrapper .btn-text-style-tool.active {
    background: #2a3b50 !important;
    color: #6fbaff !important;
    border-color: #405a7a !important;
}

.board-dark-mode #btn-text-box-delete:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.2) !important;
}

.text-box-style-popover {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 400100;
    box-sizing: border-box;
    width: 220px;
    padding: 12px;
    pointer-events: auto !important;
}

.text-box-style-popover.active {
    display: block;
}

.board-dark-mode .text-box-style-popover {
    background: #2a2d34 !important;
    border-color: #3f434d !important;
}

.text-box-style-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.text-box-style-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.text-box-style-label {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.text-box-style-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: #e2e8f0;
    height: 4px;
    border-radius: 2px;
    outline: none;
}

.text-box-style-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1a73e8;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.text-box-style-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: #1a73e8;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.text-box-style-colors {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.btn-text-box-transparent {
    width: 100%;
    font-size: 11px;
    font-weight: 600;
    padding: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    color: #475569;
}

.btn-text-box-transparent:hover {
    background: #f1f5f9;
}

.board-dark-mode .text-box-style-label {
    color: #94a3b8;
}

.board-dark-mode .text-box-style-slider {
    background: #475569;
}

.board-dark-mode .text-box-style-slider::-webkit-slider-thumb {
    background: #60a5fa;
}

.board-dark-mode .text-box-style-slider::-moz-range-thumb {
    background: #60a5fa;
}

.board-dark-mode .btn-text-box-transparent {
    background: #2a2d34;
    border-color: #3f434d;
    color: #e0e0e0;
}

.board-dark-mode .btn-text-box-transparent:hover {
    background: #383c47;
}

.board-dark-mode .student-view-panel {
    background: rgb(58 68 81 / 91%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-color: rgba(181, 174, 174, 0.2) !important;
    box-shadow: 16px 16px 24px rgba(0, 0, 0, 0.95) !important;
    color: #f3f4f6 !important;
}

.board-dark-mode .panel-header-title,
.board-dark-mode .student-view-header h2,
.board-dark-mode .shortcuts-header h3,
.board-dark-mode .student-info-header-block *,
.board-dark-mode .student-assigned-subject-label {
    color: #f3f4f6 !important;
}

.board-dark-mode .btn-student-action,
.board-dark-mode .btn-student-action svg {
    color: #cbd5e1 !important;
    stroke: #cbd5e1 !important;
}

.board-dark-mode .btn-student-action:hover,
.board-dark-mode .btn-student-action:hover svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.board-dark-mode .panel-header-v-separator,
.board-dark-mode .student-view-divider,
.board-dark-mode .student-view-line {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.board-dark-mode #board-topic-input,
.board-dark-mode #shortcuts-search-input,
.board-dark-mode .custom-dropdown-trigger {
    background-color: #2a2d34 !important;
    border-color: #3f434d !important;
    color: #f3f4f6 !important;
}

.board-dark-mode .custom-dropdown-menu {
    background-color: #1f2228 !important;
    border-color: #3f434d !important;
}

.board-dark-mode .custom-dropdown-item {
    color: #cbd5e1 !important;
}

.board-dark-mode .custom-dropdown-item:hover {
    background-color: #3f434d !important;
    color: #ffffff !important;
}

#board-pen-hover-dot {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 350000;
    display: none;
}

#board-pen-hover-dot.tutor-dot {
    border: 2px solid #1a73e8;
    box-shadow: 0 0 6px rgba(26, 115, 232, 0.6);
}

#board-pen-hover-dot.student-dot {
    border: 2px solid #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

#student-board-overlay,
.board-overlay,
#board-container,
svg {
    touch-action: none !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

#toggle-shape-fill-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

#toggle-shape-fill-wrapper:hover {
    opacity: 0.85;
}

#toggle-shape-fill-wrapper .board-switch {
    margin: 0;
    transform: scale(0.75);
}

.board-dark-mode #toggle-shape-fill-wrapper {
    opacity: 0.9;
}

.board-axes-axis {
    stroke: #94a3b8 !important;
    stroke-width: 1.5px;
    vector-effect: non-scaling-stroke;
}

.board-axes-arrow {
    fill: #94a3b8 !important;
    stroke: #94a3b8 !important;
}

.board-axes-tick {
    stroke: #cbd5e1 !important;
    stroke-width: 1px;
    vector-effect: non-scaling-stroke;
}

.board-axes-text {
    fill: #3f3f40 !important;
    font-size: 8px;
    font-family: Arial, sans-serif;
    user-select: none;
    font-weight: 300;
}

.board-axes-handle {
    fill: #1a73e8;
    stroke: #ffffff;
    stroke-width: 1.5px;
    cursor: pointer;
}

.board-axes-handle:hover {
    transform: scale(1.3);
}

g[data-type="linear-axes"] .board-axes-axis {
    stroke: #94a3b8 !important;
    stroke-width: 1.5px;
    vector-effect: non-scaling-stroke;
}

g[data-type="linear-axes"] .board-axes-arrow {
    fill: #94a3b8 !important;
    stroke: #94a3b8 !important;
}

g[data-type="linear-axes"] .board-axes-tick {
    stroke: #cbd5e1 !important;
    stroke-width: 1px;
    vector-effect: non-scaling-stroke;
}

g[data-type="linear-axes"] .board-axes-text {
    fill: #64748b !important;
    font-size: 11px;
    font-family: Arial, sans-serif;
    user-select: none;
}

.board-dark-mode g[data-type="linear-axes"] .board-axes-axis,
.board-dark-mode g[data-type="linear-axes"] .board-axes-arrow {
    stroke: #475569 !important;
    fill: #475569 !important;
}

.board-dark-mode g[data-type="linear-axes"] .board-axes-tick {
    stroke: #334155 !important;
}

.board-dark-mode g[data-type="linear-axes"] .board-axes-text {
    fill: #94a3b8 !important;
}

.board-axes-grid {
    stroke: #fd2f0078 !important;
    stroke-width: 1px;
    vector-effect: non-scaling-stroke;
}

.board-dark-mode .board-axes-grid {
    stroke: #94a3b8 !important;
}

#board-floating-toolbar-right .board-color-popover {
    bottom: calc(100% + 8px);
    top: auto;
}

#btn-page-color-default:hover {
    background: #f1f5f9 !important;
}

.board-dark-mode #btn-page-color-default {
    background: #2a2d34 !important;
    border-color: #3f434d !important;
    color: #e0e0e0 !important;
}

.board-dark-mode #btn-page-color-default:hover {
    background: #383c47 !important;
}

//*.board-axes-text,
.board-axes-grid,
#board-axes-background-grids {
    pointer-events: all !important;
}*//

.board-precision-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.precision-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.precision-label {
    font-size: 10px;
    color: #43474e;
    font-weight: 400;
    font-family: sans-serif;
    white-space: nowrap;
}

.precision-input {
    width: 55px;
    border: 1px solid #cbd5e1;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 11px;
    text-align: right;
    outline: none;
    background: #ffffff;
    color: #334155;
}

.precision-input:focus {
    border-color: #1a73e8;
}

.board-dark-mode .precision-label {
    color: #94a3b8 !important;
}

.board-dark-mode .precision-input {
    background: #2a2d34 !important;
    border-color: #3f434d !important;
    color: #ffffff !important;
}

#btn-board-upload-resource:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

.board-dark-mode #btn-board-upload-resource {
    background: #2a2d34 !important;
    border-color: #3f434d !important;
    color: #e2e8f0 !important;
}

.board-dark-mode #btn-board-upload-resource:hover {
    background: #383c47 !important;
    border-color: #60a5fa !important;
    color: #ffffff !important;
}

.board-upload-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease;
}

.board-upload-item:hover {
    border-color: #1a73e8;
}

.board-upload-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-upload-icon {
    width: 28px;
    height: 28px;
    color: #64748b;
    margin-bottom: 6px;
}

.board-upload-ext {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
}

.board-upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.board-upload-item:hover .board-upload-overlay {
    opacity: 1;
}

.board-upload-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: transform 0.15s ease;
}

.board-upload-action-btn svg {
    width: 18px;
    height: 18px;
}

.board-upload-action-btn:hover {
    transform: scale(1.15);
}

.board-upload-btn-add {
    background: #1a73e8;
}

.board-upload-btn-add:hover {
    background: #1557b0;
}

.board-upload-btn-del {
    background: #ef4444;
}

.board-upload-btn-del:hover {
    background: #b91c1c;
}

#board-uploads-list::-webkit-scrollbar {
    width: 4px;
}

#board-uploads-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.board-dark-mode .board-upload-item {
    background: #1f2228;
    border-color: #3f434d;
}

.board-dark-mode .board-upload-item:hover {
    border-color: #60a5fa;
}

.board-dark-mode .board-upload-icon {
    color: #94a3b8;
}

.board-dark-mode .board-upload-ext {
    color: #cbd5e1;
}

.board-dark-mode .board-upload-overlay {
    background: rgba(31, 34, 40, 0.85);
}

.board-dark-mode #board-uploads-list::-webkit-scrollbar-thumb {
    background: #475569;
}

.eraser-smoke-particle {
    position: absolute !important;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.85) 0%, rgba(255, 160, 0, 0.4) 45%, rgba(255, 160, 0, 0) 70%) !important;
    border-radius: 50% !important;
    transform: translate(-50%, -50%) scale(1) !important;
    pointer-events: none !important;
    z-index: 999997 !important;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    filter: blur(10px) !important;
}

.eraser-smoke-particle.fade {
    opacity: 0 !important;
}

.board-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 30px;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.board-section-icon svg {
    width: 50px;
    height: 50px;
    stroke-width: 0.8px;
}

.board-section-icon.icon-tools {
    color: #1a73e8;
    background: rgb(26 115 232 / 0%);
    filter: drop-shadow(0 0 4px rgba(26, 115, 232, 0.4));
}

.board-section-icon.icon-shapes {
    color: #9333ea;
    background: rgb(147 51 234 / 0%);
    filter: drop-shadow(0 0 4px rgba(147, 51, 234, 0.4));
}

.board-section-icon.icon-3d {
    color: #16a34a;
    background: rgb(22 163 74 / 0%);
    filter: drop-shadow(0 0 4px rgba(22, 163, 74, 0.4));
}

.board-section-icon.icon-uploads {
    color: #ea580c;
    background: rgb(234 88 12 / 0%);
    filter: drop-shadow(0 0 4px rgba(234, 88, 12, 0.4));
}

.board-accordion-header:hover .board-section-icon {
    transform: scale(1.1);
}

#btn-collapse-sidebar svg {
    color: #13a588;
    animation: iconSpinFixed 0.4s ease-out forwards;
}

@keyframes iconSpinFixed {
    0% {
        transform: rotate(-180deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.board-sidebar-group:has(#setting-toggle-shape-fill:checked) .board-tools-grid .btn-board-tool:not(#btn-board-line, #btn-board-arrow, #btn-board-line-arrow, #btn-board-double-arrow, #btn-board-axes) svg * {
    fill: rgba(147, 51, 234, 0.15) !important;
    stroke: #9333ea !important;
}

.board-dark-mode .board-sidebar-group:has(#setting-toggle-shape-fill:checked) .board-tools-grid .btn-board-tool:not(#btn-board-line, #btn-board-arrow, #btn-board-line-arrow, #btn-board-double-arrow, #btn-board-axes) svg * {
    fill: rgba(216, 180, 254, 0.15) !important;
    stroke: #d8b4fe !important;
}

.board-sidebar-group:has(#setting-toggle-shape-fill:checked) .board-tools-grid .btn-board-tool.active:not(#btn-board-line, #btn-board-arrow, #btn-board-line-arrow, #btn-board-double-arrow, #btn-board-axes) svg * {
    fill: rgba(26, 115, 232, 0.15) !important;
    stroke: #1a73e8 !important;
}

.board-dark-mode .board-sidebar-group:has(#setting-toggle-shape-fill:checked) .board-tools-grid .btn-board-tool.active:not(#btn-board-line, #btn-board-arrow, #btn-board-line-arrow, #btn-board-double-arrow, #btn-board-axes) svg * {
    fill: rgba(111, 186, 255, 0.15) !important;
    stroke: #6fbaff !important;
}

.board-grid-settings-wrapper {
    position: relative;
    display: inline-flex;
}

.board-grid-popover {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 264%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid #bfc7d2;
    border-radius: 25px;
    padding: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 400100;
    width: max-content;
    min-width: 176px;
    flex-direction: column;
    gap: 10px;
}

.board-grid-popover.active {
    display: flex;
}

.board-grid-popover-title {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
}

.board-grid-size-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.board-grid-size-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.board-grid-slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

#board-grid-size-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    background: #e2e8f0;
    height: 4px;
    border-radius: 2px;
    outline: none;
}

#board-grid-size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1a73e8;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

#board-grid-size-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: #1a73e8;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

#board-grid-size-val {
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    min-width: 32px;
    text-align: right;
}

.board-dark-mode .board-grid-popover {
    background: #2a2d34;
    border-color: #3f434d;
}

.board-dark-mode .board-grid-popover-title {
    color: #94a3b8;
    border-color: #3f434d;
}

.board-dark-mode .board-grid-size-label {
    color: #94a3b8;
}

.board-dark-mode #board-grid-size-val {
    color: #f8fafc;
}

.board-dark-mode #board-grid-size-slider {
    background: #475569;
}

.board-dark-mode #board-grid-size-slider::-webkit-slider-thumb {
    background: #60a5fa;
}

.board-dark-mode #board-grid-size-slider::-moz-range-thumb {
    background: #60a5fa;
}

.pencil-width-option {
    transition: all 0.2s ease;
}

.pencil-width-option:hover {
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
}

.board-dark-mode .pencil-width-option {
    background-color: #2a2d34 !important;
    border-color: #3f434d !important;
}

.board-dark-mode .pencil-width-option:hover {
    background-color: #383c47 !important;
    border-color: #60a5fa !important;
}

.board-dark-mode .pencil-width-option div {
    background-color: #e2e8f0 !important;
}

#board-scratchpad-canvas.drawing-mode-active {
    pointer-events: auto !important;
}

.pencil-mode-popover {
    display: none;
    position: absolute !important;
    bottom: calc(100% + 8px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 400100;
    width: 203px !important;
    min-width: 213px;
    flex-direction: column;
    gap: 4px;
}

.pencil-mode-popover.active {
    display: flex !important;
}

.board-group-move-handle {
    cursor: move;
}

.board-group-move-bg {
    fill: #ffffff;
    stroke: #cbd5e1;
    stroke-width: 1.5px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: stroke 0.2s ease, filter 0.2s ease;
}

.board-group-move-handle:hover .board-group-move-bg {
    stroke: #1a73e8;
    filter: drop-shadow(0 2px 6px rgba(26,115,232,0.35));
}

.board-group-move-icon-path {
    stroke: #1a73e8;
    stroke-width: 1.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.board-dark-mode .board-group-move-bg {
    fill: #2a2d34;
    stroke: #3f434d;
}

.board-dark-mode .board-group-move-handle:hover .board-group-move-bg {
    stroke: #60a5fa;
    filter: drop-shadow(0 2px 6px rgba(96,165,250,0.35));
}

.board-dark-mode .board-group-move-icon-path {
    stroke: #60a5fa;
}

@keyframes stripeWaitPulse {
    0%, 80%, 100% {
        opacity: 0;
        transform: scale(0.6);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

.draw-effect-divider {
    border-top: 1px solid #f1f5f9;
    margin: 4px 0;
}

.pencil-width-option.draw-effect-btn {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
}

.pencil-width-option.draw-effect-btn.active {
    background: #e8f0fe;
}

.board-tool-dropdown {
    display: none;
    position: absolute;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 400100;
    width: 210px;
    box-sizing: border-box;
    flex-direction: column;
    gap: 4px;
}

.board-tool-dropdown.active {
    display: flex;
}

.board-tool-dropdown-top {
    top: 48px;
    left: 0;
}

.board-tool-dropdown-float {
    bottom: 52px;
    left: 0;
    box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.1), 0 -8px 10px -6px rgba(0, 0, 0, 0.1);
}

.board-tool-dropdown-title {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
    font-family: sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-left: 4px;
}

.board-tool-dropdown-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.board-tool-dropdown-option:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.board-tool-dropdown-option.active {
    color: #1a73e8;
    background: #e8f0fe;
    font-weight: 600;
}

.board-dark-mode .board-tool-dropdown {
    background: #2a2d34;
    border-color: #3f434d;
}

.board-dark-mode .board-tool-dropdown-title {
    color: #94a3b8;
}

.board-dark-mode .board-tool-dropdown-option {
    color: #cccccc;
}

.board-dark-mode .board-tool-dropdown-option:hover {
    background: #383c47;
    color: #ffffff;
}

.board-dark-mode .board-tool-dropdown-option.active {
    background: #2a3b50;
    color: #6fbaff;
}   

.board-top-bar .btn-board-tool {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    transition: all 0.2s ease;
    color: #334155;
    outline: none;
    box-sizing: border-box;
}

.board-top-bar .btn-board-tool:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.board-top-bar .btn-board-tool.active {
    background: #e8f0fe;
    color: #1a73e8;
}

.board-dark-mode .board-top-bar .btn-board-tool {
    color: #b0b0b0;
}

.board-dark-mode .board-top-bar .btn-board-tool:hover {
    background: #383c47;
    color: #ffffff;
}

.board-dark-mode .board-top-bar .btn-board-tool.active {
    background: #2a3b50;
    color: #6fbaff;
}

.board-setting-color-wrapper {
    position: relative;
    display: inline-block;
}

.board-setting-color-btn {
    width: 28px;
    height: 28px;
}

.board-setting-color-popover {
    top: calc(100% + 8px);
    bottom: auto;
    right: 0;
    left: auto;
    transform: none;
}

@keyframes clockHandSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.board-top-timer-svg .board-timer-hand {
    transform-origin: 12px 12px;
}

.board-top-timer-svg.running .board-timer-hand {
    animation: clockHandSpin 1s linear infinite;
}

.board-sidebar-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    margin-bottom: 6px;
}

.board-sidebar-logo {
    max-width: 110px;
    height: auto;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.board-sidebar-logo:hover {
    opacity: 1;
}

.board-sidebar-logo-wrapper .btn-sidebar-collapse {
    position: absolute;
    right: 0;
    top: 7%;
    transform: translateY(-50%);
}

.board-tutorial-overlay.interactive-tutorial {
    pointer-events: none;
}
.btn-tutorial-finish {
    pointer-events: auto;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #1a73e8;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn-tutorial-finish:hover {
    background-color: #1557b0;
    transform: scale(1.05);
}
.sidebar-dependent {
    transition: opacity 0.3s ease;
}

.board-tutorial-text {
    pointer-events: auto !important;
}

.board-tutorial-center-timer {
    position: absolute;
    top: 70px;
    left: calc(50% - 187px);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    pointer-events: auto !important;
}

.tutorial-arrow-center-timer {
    width: 80px;
    height: 50px;
    color: #94a3b8;
    margin-top: -15px;
}

.board-tutorial-sidebar {
    position: absolute;
    top: 195px;
    left: 76px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    pointer-events: auto !important;
}

.tutorial-arrow-sidebar {
    width: 70px;
    height: 50px;
    color: #94a3b8;
}

.board-tutorial-bottom-tools {
    position: absolute;
    bottom: 134px;
    left: 38%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: auto !important;
}

.tutorial-arrow-bottom-tools {
    width: 80px;
    height: 70px;
    color: #94a3b8;
}

.board-tutorial-tabs {
    position: absolute;
    top: 109px;
    left: 496px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    pointer-events: auto !important;
}

.tutorial-arrow-tabs {
    width: 70px;
    height: 50px;
    color: #94a3b8;
}

.pencil-color-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
}

.pencil-color-teardrop {
    width: 22px;
    height: 22px;
    border-radius: 0 50% 50% 50%;
    transform: rotate(45deg);
    border: 1.5px solid #64748b;
    background: transparent;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.pencil-color-teardrop:hover {
    transform: rotate(-45deg) scale(1.15);
}

.pencil-grayscale-popover {
    display: none;
    position: absolute;
    top: 0;
    left: calc(100% + 8px);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 400200;
    width: 140px;
}

.pencil-grayscale-popover.active {
    display: block;
}

.pencil-grayscale-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.board-dark-mode .pencil-color-row {
    border-top-color: #3f434d !important;
}

.board-dark-mode .pencil-grayscale-popover {
    background: #2a2d34 !important;
    border-color: #3f434d !important;
}

.draw-tools-dropdown {
    width: 250px !important;
    padding: 0 !important;
    overflow: visible !important;
}

.draw-tool-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.draw-tool-item:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

.draw-tool-item:first-child {
    border-radius: 10px 10px 0 0;
}

.draw-tool-item:hover {
    background-color: #f8fafc;
}

.draw-tool-item.active {
    background-color: #f5f5f9;
}

.draw-tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.draw-tool-label {
    font-size: 12px;
    font-weight: 400;
    color: #343a44;
}

.draw-tool-item.active .draw-tool-label {
    color: #1a73e8;
}

.draw-tool-droplet {
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.draw-tool-droplet:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

.draw-tool-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.draw-tool-slider {
    flex: 1 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    height: 24px !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.draw-tool-slider::-webkit-slider-runnable-track {
    width: 100% !important;
    height: 1px !important;
    background: #86898d !important;
    border-radius: 2px !important;
    border: none !important;
}

.draw-tool-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 4px !important;
    height: 17px !important;
    border-radius: 16% !important;
    background: #969cde !important;
    cursor: pointer !important;
    /* box-shadow: 4px 5px 11px rgb(0 0 0 / 32%) !important; */
    margin-top: -8px !important;
    border: none !important;
}

.draw-tool-slider::-moz-range-track {
    width: 100% !important;
    height: 4px !important;
    background: #cbd5e1 !important;
    border-radius: 2px !important;
    border: none !important;
}

.draw-tool-slider::-moz-range-thumb {
    width: 16px !important;
    height: 16px !important;
    border: none !important;
    border-radius: 50% !important;
    background: #1a73e8 !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
}}

.draw-tool-slider-val {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    min-width: 36px;
    text-align: right;
}

.draw-tool-preview {
    width: 239px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* overflow: hidden; */
    margin: -11px 0;
    border-radius: 4px;
}

.draw-tool-preview svg {
    width: 203px;
    height: 50px;
    overflow: hidden;
    flex-shrink: 0;
    margin-top: -10px;
    margin-left: -19px;
}

.draw-tool-waves {
	width: 100%;
	height: 100%;
	display: block;
}

.draw-tool-waves path {
	fill: none !important;
	stroke-width: 8px !important;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.draw-tool-waves .wave-layer-1 { stroke: #00bfff !important; }
.draw-tool-waves .wave-layer-2 { stroke: #1a73e8 !important; }
.draw-tool-waves .wave-layer-3 { stroke: #80d8ff !important; }
.draw-tool-waves .wave-layer-4 { stroke: #0056b3 !important; }

.draw-tool-item.active .draw-tool-waves .wave-layer-1 { 
	stroke: #0056b3 !important;
	filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.1));
}
.draw-tool-item.active .draw-tool-waves .wave-layer-2 {stroke: #ff0032 !important;}
.draw-tool-item.active .draw-tool-waves .wave-layer-3 {stroke: #008525 !important;}
.draw-tool-item.active .draw-tool-waves .wave-layer-4 {stroke: #e4cf07 !important;}

.board-dark-mode .draw-tool-item {
    border-bottom-color: #3f434d;
}

.board-dark-mode .draw-tool-item:hover {
    background-color: #383c47;
}

.board-dark-mode .draw-tool-item.active {
    background-color: #2a3b50;
}

.board-dark-mode .draw-tool-label {
    color: #e2e8f0;
}

.board-dark-mode .draw-tool-item.active .draw-tool-label {
    color: #6fbaff;
}

.board-dark-mode .draw-tool-droplet {
    color: #94a3b8;
}

.board-dark-mode .draw-tool-droplet:hover {
    background-color: #475569;
    color: #f8fafc;
}

.board-dark-mode .draw-tool-slider {
    background: #475569;
}

.board-dark-mode .draw-tool-slider::-webkit-slider-thumb {
    background: #60a5fa;
}

.board-dark-mode .draw-tool-slider::-moz-range-thumb {
    background: #60a5fa;
}

.board-dark-mode .draw-tool-slider-val {
    color: #94a3b8;
}

.board-accordion-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.board-shape-fill-container {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

#toggle-shape-fill-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

#label-shape-fill {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

.board-shape-fill-container .board-switch {
    transform: scale(0.75);
    margin: 0;
    pointer-events: none;
}

.board-uploads-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#btn-board-upload-resource {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#board-uploads-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 4px;
}

.board-tools-grid {
    gap: 8px;
}

.board-tools-grid .btn-board-tool svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

.board-tools-grid .btn-board-tool svg * {
    stroke: #111111;
    stroke-width: 0.8px;
    vector-effect: non-scaling-stroke;
}

#inline-tool-color-popover {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.board-dark-mode #inline-tool-color-popover {
    background: #2a2d34 !important;
    border-color: #3f434d !important;
}

.board-dark-mode #inline-tool-color-popover div[data-i18n] {
    color: #94a3b8 !important;
}