body {
    margin: 0;
    overflow: hidden;
    font-family: 'Mali';
    box-sizing: border-box;
    position: relative;
    overscroll-behavior: none;
    -webkit-user-select: none;
    user-select: none;
}

html {
    overflow: hidden;
    overscroll-behavior: none;
}


#toolbar {
    position: fixed;
    top: 10px;
    left: 10px;
    padding: 0px 10px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    z-index: 10;
    display: flex;
    gap: 4px;
    background-color: #666666;
}

#toolbar button {
    border-radius: 3px;
    font-size: 14px;
    color: white;
    border: none;
    background-color: transparent;
    padding: 4px 6px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Add Content Dropdown */
.add-content-dropdown {
    position: relative;
}

.add-content-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 4px 0;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 1000;
}

.add-content-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: #ddd;
    font-size: 13px;
    font-family: 'Mali', sans-serif;
    cursor: pointer;
    text-align: left;
}

.add-content-menu button:hover {
    background: #3a3a3a;
}

.add-content-menu button i {
    font-size: 16px;
    color: #888;
}

/* AI Toggle wrapper styled like a toolbar button */
#toolbar .aiToggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 5px;
    padding: 4px 6px;          /* matches #toolbar button */
    height: 100%;              /* perfect vertical centering */
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
}

/* Hide raw checkbox */
#toolbar .aiToggle input {
    display: none;
}

/* Slider */
#toolbar .aiSlider {
    width: 32px;
    height: 16px;
    background: #aaa;
    border-radius: 20px;
    position: relative;
    transition: background 0.25s;
}

/* Slider knob */
#toolbar .aiSlider::before {
    content: "";
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.25s;
}

/* ON State */
#toolbar .aiToggle input:checked + .aiSlider {
    background: #4caf50;
}

#toolbar .aiToggle input:checked + .aiSlider::before {
    transform: translateX(16px);
}

/* Label text (14px EXACT) */
#toolbar .aiText {
    font-size: 14px;
    line-height: 14px;    /* ← this ensures the visual height is truly 14px */
    height: 14px;         /* ← explicit height as you requested */
    display: flex;
    align-items: center;  /* keeps the text vertically perfect */
    color: white;
    user-select: none;
}
/* Main toggle container (height = 14px EXACT) */
#toolbar .aiToggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    height: 14px;        /* ← THE HEIGHT YOU WANT */
    padding: 0 4px;      /* keeps spacing similar */
    border-radius: 3px;
    cursor: pointer;
}
/* Hide checkbox */
#toolbar .aiToggle input {
    display: none;
}

/* Slider fits the 14px height */
#toolbar .aiSlider {
    width: 24px;
    height: 12px;
    background: #aaa;
    border-radius: 12px;
    position: relative;
    transition: background 0.25s;
}

/* Knob fits inside 12px track */
#toolbar .aiSlider::before {
    content: "";
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 1px;
    transition: transform 0.25s;
}

/* ON state */
#toolbar .aiToggle input:checked + .aiSlider {
    background: #4caf50;
}

#toolbar .aiToggle input:checked + .aiSlider::before {
    transform: translateX(12px);
}

/* Label scaled to match 14px height */
#toolbar .aiText {
    font-size: 12px;
    line-height: 14px;
    height: 14px;
    color: white;
    user-select: none;
}

#toolbar button:hover {
    background-color: #444444;
}

#toolbar .break {
    height: 70%;
    width: 2px;
    border-radius: 1px;
    background-color: #999999;
}

#viewer {
    display: none;
    opacity: 1;
}

#viewer.show {
    display: none; 
}

.canvasGroup {
    width: 100vw;
    height: 100vh;
    position: relative;
    touch-action: none;
    -ms-touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    overscroll-behavior: none;
}

.canvas {
    display: block;
    touch-action: none;
    -ms-touch-action: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

#liveCanvas {
    z-index: 3; 
}
#drawCanvas {
    z-index: 2;
}
#backgroundCanvas {
    z-index: 1;
    pointer-events: none; /* Prevent interaction with the background canvas */
}

/* ═══════════════════════════════════════════════════════════════
   FLOATING ZOOM INDICATOR
   ═══════════════════════════════════════════════════════════════ */
.zoom-indicator {
    position: fixed;
    top: 10px;
    left: 250px;
    display: flex;
    align-items: center; 
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #3a3a3a 0%, #2d2d2d 100%);
    border: 1px solid #4a4a4a;
    border-radius: 20px;
    color: #fff;
    font-family: 'Mali', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    user-select: none;
}

.zoom-indicator.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.zoom-indicator:hover {
    background: linear-gradient(135deg, #454545 0%, #383838 100%);
    border-color: #5a5a5a;
}

.zoom-indicator:active {
    transform: scale(0.97);
}

.zoom-indicator i {
    font-size: 16px;
    color: #7eb8da;
}

.zoom-indicator #zoomPercent {
    min-width: 38px;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   TABLE OF CONTENTS PANEL (Top Right, Slide-in)
   ═══════════════════════════════════════════════════════════════ */
.toc-panel {
    position: fixed;
    top: 68px;
    right: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    z-index: 999;
    pointer-events: auto;
}

/* The clickable tab - thin vertical notch on right edge */
.toc-tab {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 5px;
    background: #666666;
    border: none;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.toc-tab:hover {
    background: #777777;
}

/* Stacked lines icon */
.toc-tab-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.toc-line {
    width: 12px;
    height: 2px;
    background: white;
    border-radius: 1px;
}

.toc-line.short {
    width: 7px;
}

.toc-tab-label {
    font-family: 'Mali', sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: white;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* The sliding content panel - slides in from right using transform */
.toc-content {
    position: absolute;
    top: 0;
    right: 100%;
    max-width: 460px;
    max-height: 80vh;
    background: #3a3a3a;
    border: 1px solid #555;
    border-right: none;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    pointer-events: none;
    box-shadow: -3px 3px 12px rgba(0, 0, 0, 0.25);
}

.toc-panel.open .toc-content {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #555;
    color: #fff;
    font-family: 'Mali', sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.toc-header i {
    font-size: 14px;
    color: #fff;
}

.toc-list {
    padding: 6px 0;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(80vh - 42px);
}

.toc-list::-webkit-scrollbar {
    width: 5px;
}

.toc-list::-webkit-scrollbar-track {
    background: transparent;
}

.toc-list::-webkit-scrollbar-thumb {
    background-color: rgba(150, 150, 150, 0.5);
    border-radius: 3px;
}

.toc-empty {
    padding: 16px 12px;
    color: #999;
    font-family: 'Mali', sans-serif;
    font-size: 11px;
    font-style: italic;
    text-align: center;
}

.toc-item {
    display: block;
    padding: 6px 10px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    overflow-x: auto;
    overflow-y: hidden;
}

.toc-item:hover {
    background: #4a4a4a;
}

/* Thumbnail preview */
.toc-item-preview {
    display: block;
    width: auto;
    height: 52px;
    min-width: 100px;
    max-width: none;
    border-radius: 4px;
    background: #2a2a2a;
    object-fit: contain;
}

/* Thin horizontal scrollbar for TOC items */
.toc-item::-webkit-scrollbar {
    height: 4px;
}

.toc-item::-webkit-scrollbar-track {
    background: transparent;
}

.toc-item::-webkit-scrollbar-thumb {
    background-color: rgba(150, 150, 150, 0.4);
    border-radius: 2px;
}

.toc-item::-webkit-scrollbar-thumb:hover {
    background-color: rgba(150, 150, 150, 0.6);
}

.toc-item-text {
    display: none;
}

/* TOC level indentation */
.toc-level-1 {
    padding-left: 10px;
}

.toc-level-2 {
    padding-left: 26px;
}

.toc-level-3 {
    padding-left: 42px;
}

/* ------------tool box style -------------- */
.penTools {
    position: absolute;
    top: 220px;
    right: 300px;
    width: 80px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    z-index: 77777;
}
.penTools.show {
    opacity: 1;
    pointer-events: auto;
}
.penTools.show .nav-content span {
    pointer-events: auto;
}
.nav-content span a {
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.nav-content span a:hover {
    background-color: lightblue;
    transform: scale(1.1) rotate(45deg);
    color: white;
}
.nav-content span a.hovered {
    background-color: lightblue;
    transform: scale(1.1) rotate(45deg);
    color: white;
}
.penTools .nav-content {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-45deg);
}
.nav-content .toggle-btn,
.nav-content span a {
    height: 50px;
    width: 50px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}
.nav-content .toggle-btn {
    font-size: 35px;
    color: #0e2431;
    z-index: 100;
    cursor: pointer;
    transform: rotate(-225deg);
    transition: all 0.3s ease;
    opacity: 1;
}
.nav-content .toggle-btn {
    transition: background-color 0.7s ease;
}
.nav-content .toggle-btn.hidden {
    opacity: 0;
    pointer-events: none;
}
.nav-content .toggle-btn.countdown {
    background-color: #333333;
}
.penTools.open .toggle-btn {
    transform: rotate(0deg);
}
.nav-content span {
    position: absolute;
    transition: all 0.3s ease;
    opacity: 0;
}
.penTools.open .nav-content span {
    transform: rotate(calc(var(--i) * (360deg/8))) translateY(90px);
    opacity: 1;
}
.nav-content span a {
    text-decoration: none;
    transform: rotate(45deg);
}
.nav-content span a i {
    font-size: 24px;
    color: #0e2431;
    transform: rotate(calc(var(--i) * (360deg/ -8)));
    opacity: 0.8;
    transition: 0.1s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.nav-content span a i::after {
    content: attr(data-display);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: white;
    background-color: rgba(32,31,30, 0.7);
    padding: 2px 5px;
    border-radius: 3px;
    white-space: nowrap;
}
.nav-content span a:hover i {
    opacity: 1;
}


/* ------------ Custom Color Panel -------------- */
.custom-color-panel {
    position: fixed;
    width: 200px;
    border-radius: 12px;
    padding: 14px;
    background: #2a2a2a;
    border: 1px solid #444;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    z-index: 100001;
    font-family: 'Mali', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.custom-color-panel .ccp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 6px;
    border-bottom: 1px solid #444;
}
.custom-color-panel .ccp-title {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
}
.custom-color-panel .ccp-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}
.custom-color-panel .ccp-close-btn:hover {
    color: #fff;
}
.custom-color-panel .ccp-section label {
    font-size: 11px;
    color: #888;
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.custom-color-panel #ccpColorPicker {
    width: 100%;
    height: 40px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #3a3a3a;
    cursor: pointer;
    padding: 3px;
}
.custom-color-panel .ccp-color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.custom-color-panel .ccp-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #555;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.custom-color-panel .ccp-swatch:hover {
    transform: scale(1.15);
    border-color: #ccc;
}
.custom-color-panel .ccp-swatch.selected {
    border-color: #fff;
    transform: scale(1.15);
}
.custom-color-panel .ccp-visibility-section {
    padding-top: 2px;
}
.custom-color-panel .ccp-visibility-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #e0e0e0;
    text-transform: none;
}
.custom-color-panel .ccp-visibility-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4a90d9;
    cursor: pointer;
}
.custom-color-panel .ccp-apply-btn {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 8px;
    background: #4a90d9;
    color: white;
    font-size: 14px;
    font-family: 'Mali', sans-serif;
    cursor: pointer;
    margin-top: 2px;
    transition: background 0.15s ease;
}
.custom-color-panel .ccp-apply-btn:hover {
    background: #5aa0e9;
}

/* ------------note navbar style -------------- */
#openNavBtn {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1001;
    padding: 0px 10px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #666666;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#openSettingBtn {
    position: fixed;
    top: 20px;
    right: 110px;
    z-index: 1001;
    padding: 9px 10px; 
    background-color: #666666;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#notenavbar {
    position: fixed;
    top: 0;
    right: -100%;
    /* right: 0; */
    width: 500px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    border-left: 1px solid #e0e0e0;
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

#notenavbar.open {
    right: 0;
}
.buttonGroup {
    width: 420px;
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.buttonGroup button {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}

.buttonGroup #driveGroup{
    display: flex;
    flex-direction: row;
    gap: 4px;
    width: 340px;
}
.buttonGroup #functionGroup{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 4px;
    width: 90px;
    margin-right: 4px;
}
.buttonGroup button {
    background-color: whitesmoke;
    color: black;
    border: 2px lightgray solid;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    height: 32px;
}
#functionGroup button{
    width: 39px;
    margin: 0;
    padding: 0;
    border: 0px;
    display: flex;
    color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #666666;
}
#driveGroup button{
    width: 164px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



#notenavbar .shelf {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin-bottom: 10px;
    padding: 0;
    margin: 0;
}
.shelf .folder {
    width: 160px;
    height: 100%;
    gap: 0px;
    display: flex;
    flex-direction: column;
    gap: 0px;
}
.shelf .folder-button {
    background-color: #666666;
    width: 100%;
    height: 32px;
    margin: 0;
    font-size: 14px;
    border: solid 2px #444444;
    border-radius: 6px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    margin-bottom: -2px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3-dot kebab menu button for folder actions */
.shelf .folder-button .folder-menu-btn {
  width: 16px;
  height: 16spx;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 4px;
  margin-right: 0;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.shelf .folder-button .folder-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.shelf .folder-button .folder-menu-btn:active {
  background-color: rgba(255, 255, 255, 0.25);
  transform: scale(0.95);
}

.shelf .folder-button .folder-menu-btn .menu-dot {
  width: 4px;
  height: 4px;
  background-color: #ffffff;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Folder context menu popup */
.folder-context-popup {
  position: fixed;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 4px 0;
  min-width: 140px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 10001;
  opacity: 0;
  transform: scale(0.95) translateY(-4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  pointer-events: none;
}

.folder-context-popup.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.folder-context-popup .context-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: #e0e0e0;
  font-family: 'Mali', sans-serif;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background-color 0.1s ease;
}

.folder-context-popup .context-item:hover {
  background-color: #3a3a3a;
}

.folder-context-popup .context-item i {
  font-size: 16px;
  color: #aaa;
}

.folder-context-popup .context-item.danger {
  color: #ff6b6b;
}

.folder-context-popup .context-item.danger i {
  color: #ff6b6b;
}

.folder-context-popup .context-divider {
  height: 1px;
  background: #444;
  margin: 4px 0;
}

.shelf .folder-button:hover p{
    color: black;
    background-color: #e0e8ff;
}
.folder-button.selected p{
    color: black;
    background-color: #e0e8ff;
}
.folder-button p {
    width: 164px;
    margin-left: 4px;
    height: 64%;
    display: flex;
    justify-content: center;
    font-family: 'Mali';
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 8px;
}
.folder i{
    font-size: 20px;
    color: white;
}
.shelf .notes {
    width: 330px;
    height: 97%;
    margin-right: 8px;
    border: #d3d3d3 solid 2px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}
.notes #menubar {
    margin: 10px 0;
    width: 90%;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    gap: 4px;
    background-color: #666666;
}
#menubar button {
    border-radius: 3px;
    font-size: 14px;
    color: white;
    border: none;
    background-color: transparent;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#menubar button:hover {
    background-color: #444444;
}
#menubar .break {
    height: 70%;
    width: 2px;
    border-radius: 1px;
    background-color: #999999;
}

#note-list {
    width: 90%;
    overflow-y: auto;
}
#note-list button:hover {
    background-color: #e0e8ff;
}

/* Button in button (action for each) note */
.note-button {
    position: relative;
    padding: 5px 5px;
    width: 100%;
    font-size: 14px;
    position: relative;
    z-index: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    margin: 0;
    background-color: transparent;
    
    /* add border */
    border: 1.5px solid #dcdcdc;
    margin-bottom: 1px;
    font-family: 'Mali';
    border-radius: 6px;

    font-family: 'Mali';
    border-radius: 6px;
    /* border: 2px lightgray dashed; */
}
.note-button.noteSelected {
    background-color: #e0e8ff;
    border: #d3d3d3 solid 2px;
}
.note-button::after {
    position: absolute;
    /* content: "...................................................................................................................................................."; */
    flex-grow: 1;
    margin-left: 2px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
}

.note-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
}

.note-button .note-date {
  opacity: 0.55;
  font-size: 12px;
}

/* Summary note special styling - standout monotone theme */
.note-button.summary-note {
  background: linear-gradient(135deg, #e3eaf3 0%, #d4dfe9 100%);
  border: 2px solid #8ba3bd;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(100, 120, 150, 0.15);
  position: relative;
}

.note-button.summary-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #6b8cae 0%, #4a6d8c 100%);
  border-radius: 6px 0 0 6px;
}

.note-button.summary-note span:first-child {
  padding-left: 6px;
}

.note-button.summary-note:hover {
  background: linear-gradient(135deg, #d6e1ed 0%, #c5d4e3 100%);
  border-color: #7a94b0;
  box-shadow: 0 3px 6px rgba(100, 120, 150, 0.2);
}

.note-button.summary-note.noteSelected {
  background: linear-gradient(135deg, #c8d8e8 0%, #b5c9dc 100%);
  border: 2px solid #5c7a9a;
  box-shadow: 0 2px 8px rgba(80, 100, 130, 0.25);
}

.subnote-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end; 
    position: relative;
    padding: 0;
    margin: 0;
}

.delete-button,
.new-button {
    position: absolute;
    background: transparent;
    border-radius: 2px;
    height: fit-content;
    border: none;
    cursor: pointer;
    font-size: 16px;
    z-index: 2;
    color: black
}

.subnote-container .delete-button {
    position: absolute;
    top: 2px;
    right: 0px;
}

.folder-container .new-button {
    top: 10px;
    right: 4px;
    font-size: 20px;
}

.subfolder-note {
    background-color: #ffe8a1;
    font-style: italic;
    font-size: 0.9em;
}
.subfolder-note-list {
    margin-left: 1.5em;
    border-left: 2px dashed #ccc;
    padding-left: 1em;
}

.folder-btn {
    font-size: 20px;
    font-weight: bold;
    background-color: white;
    text-align: left;
    border: none;
    border-bottom: 2px solid gray;
}
.folder-btn i {
    transition: all 0.3s;
}

.hidden {
    display: none;
}
.settings-wrapper.show {
    display: block;
}
button#export {
    margin-bottom: 30px;
}

/* -----------------Setting page------------------------------ */
.settings-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1280px;
    width: 80vw;
    margin: 30px auto;
    margin-top: 60px;
    padding: 30px;
    background-color: #3a3a3a;
    border-radius: 20px;
    height: 80vh;
    overflow: auto;
    z-index: 1000;
    color: #f1f1f1;
    display: none;
}

.settings-wrapper::-webkit-scrollbar {
    width: 10px;
}

.settings-wrapper::-webkit-scrollbar-track {
    background: transparent;  /* Transparent track (background) */
}

.settings-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(150, 150, 150, 0.5); /* Thumb with opacity */
    border-radius: 8px;
    border: 2px solid transparent; /* Adds spacing for thumb edge */
    background-clip: padding-box;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
}

label {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

select,
input[type="color"],
input[type="range"] {
    width: 100%;
    padding: 5px;
    background-color: #444;
    border: 1px solid #666;
    color: #fff;
    border-radius: 6px;
    max-width: 350px;
}

.grid-section,
.modifier-section {
    margin-bottom: 40px;
}
.modifier-section h2 p{
    margin: 0;
}

.reset-settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #3a3a3a;
    color: #ccc;
    border: 1px solid #555;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.reset-settings-btn:hover {
    background-color: #4a4a4a;
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.reset-settings-btn i {
    font-size: 18px;
}

/* Admin Flag Button */
.admin-flag-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 16px;
    background-color: #2a3a4a;
    color: #7aa8c0;
    border: 1px solid #4a5a6a;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.admin-flag-btn:hover {
    background-color: #3a4a5a;
    border-color: #7aa8c0;
    color: #9ac8e0;
}

.admin-flag-btn i {
    font-size: 18px;
}

/* Flag Misclassified Popup */
.flag-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(3px);
}

.flag-popup {
    background: #1f1f1f;
    color: #fff;
    padding: 24px;
    border-radius: 16px;
    font-family: 'Mali', sans-serif;
    min-width: 360px;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
}

.flag-popup h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: #7aa8c0;
}

.flag-popup-preview {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flag-popup-preview canvas {
    border: 1px solid #444;
    border-radius: 6px;
    background: #1a1a1a;
}

.flag-popup-preview .no-stroke {
    color: #888;
    font-style: italic;
    padding: 40px;
}

.flag-popup-info {
    margin-top: 12px;
    font-size: 12px;
    color: #888;
    text-align: center;
}

.flag-popup-class-select {
    margin-bottom: 16px;
}

.flag-popup-class-select label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
    font-size: 14px;
}

.flag-popup-class-select select {
    width: 100%;
    padding: 10px 12px;
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.flag-popup-class-select select:focus {
    outline: none;
    border-color: #7aa8c0;
}

.flag-popup-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.flag-popup-actions button {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flag-popup-actions .cancel-btn {
    background: #3a3a3a;
    color: #aaa;
    border: 1px solid #555;
}

.flag-popup-actions .cancel-btn:hover {
    background: #4a4a4a;
    color: #fff;
}

.flag-popup-actions .submit-btn {
    background: #2a5a7a;
    color: #fff;
    border: 1px solid #4a7a9a;
}

.flag-popup-actions .submit-btn:hover {
    background: #3a6a8a;
}

.flag-popup-actions .submit-btn:disabled {
    background: #2a2a2a;
    color: #666;
    border-color: #444;
    cursor: not-allowed;
}

.grid-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.grid-section label {
    margin-top: 15px;
}

.grid-style-options {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.grid-style-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background-color: #333;
    color: #888;
    padding: 10px 16px;
    border: 2px solid #444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.grid-style-btn svg {
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.grid-style-btn span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grid-style-btn:hover {
    background-color: #3a3a3a;
    border-color: #555;
    color: #aaa;
}

.grid-style-btn:hover svg {
    opacity: 0.8;
}

.grid-style-btn.active {
    background-color: #404040;
    border-color: #6a9fd6;
    color: #fff;
}

.grid-style-btn.active svg {
    opacity: 1;
    stroke: #6a9fd6;
}

.range-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.range-row span {
    font-size: 0.9rem;
}

/* Number input styling for settings */
.range-row input[type="number"],
.modifier-card input[type="number"] {
    width: 36px;
    padding: 5px 4px;
    background: #444;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    font-family: 'Mali', sans-serif;
    font-size: 12px;
    text-align: center;
}

/* Tape Presets UI */
#tapePresets {
    margin-top: 8px;
}

#tapePresets label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #aaa;
}

.tape-preset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.tape-preset-btn {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid #444;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.tape-preset-btn:hover {
    border-color: #888;
    transform: scale(1.08);
}

.tape-preset-btn.active {
    border-color: #ff69b4;
    box-shadow: 0 0 8px rgba(255, 105, 180, 0.5);
}

.tape-preview-canvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 4px;
}

.range-row input[type="number"]:focus,
.modifier-card input[type="number"]:focus {
    outline: none;
    border-color: #777;
    background: #4a4a4a;
}

/* Range slider styling */
.range-row input[type="range"] {
    flex: 1;
    height: 6px;
    background: #444;
    border-radius: 3px;
    -webkit-appearance: none;
    appearance: none;
}

.range-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #888;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #666;
}

.range-row input[type="range"]::-webkit-slider-thumb:hover {
    background: #999;
}

.range-row input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #888;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #666;
}

.modifier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 180px); 
    gap: 16px;
    justify-content: center;
}

.modifier-card {
    background-color: #2b2b2b;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    position: relative;
}

.modifier-title {
    font-weight: bold;
    margin-bottom: 12px;
}

.toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #555;
    border-radius: 22px;
    transition: 0.3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: #2196F3;
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(18px);
}

.modifier-footer {
    margin-top: 10px;
}

/* ---------- Sync Stroke Toggle ---------- */
.sync-stroke-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #2b2b2b;
    border-radius: 10px;
    max-width: fit-content;
}

.sync-stroke-toggle .sync-label {
    font-size: 14px;
    color: #ccc;
}

/* ---------- Stroke Size Dropdown ---------- */
.stroke-size-section {
    margin-top: 8px;
}

.stroke-dropdown-container {
    position: relative;
    margin-top: 6px;
}

.stroke-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: #3a3a3a;
    border: 1px solid #555;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    font-family: 'Mali', sans-serif;
    font-size: 10px;
    transition: all 0.15s ease;
}

.stroke-dropdown-btn:hover {
    background: #444;
    border-color: #666;
}

.stroke-dropdown-btn .dropdown-arrow {
    margin-left: auto;
    font-size: 8px;
    color: #888;
    transition: transform 0.2s ease;
}

.stroke-preview-line {
    width: 40px;
    min-height: 1px;
    background: #fff;
    border-radius: 2px;
    flex-shrink: 0;
}

.stroke-label {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    color: #ffffff;
}

.stroke-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #2a2a2a;
    border: 1px solid #555;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.stroke-dropdown-menu.show {
    display: block;
}

.stroke-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 12px;
}

.stroke-option:hover {
    background: #3a3a3a;
}

.stroke-option.selected {
    background: #1a3a5a;
}

.stroke-option.selected .stroke-label {
    color: #6ab0ff;
}

.stroke-custom-option {
    border-top: 1px solid #444;
}

.stroke-custom-option .stroke-label {
    font-style: italic;
    color: #aaa;
}

/* Custom stroke input */
.custom-stroke-input {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.custom-stroke-input .custom-size-input {
    flex: 1;
    padding: 6px 8px;
    background: #3a3a3a;
    border: 1px solid #555;
    border-radius: 6px;
    color: #fff;
    font-family: 'Mali', sans-serif;
    font-size: 13px;
    text-align: center;
}

.custom-stroke-input .custom-size-input:focus {
    outline: none;
    border-color: #6ab0ff;
    background: #404040;
}

.custom-stroke-input .custom-size-unit {
    font-size: 12px;
    color: #888;
}

/* ----------scroll bar ---------------- */
#scrollbar {
    position: absolute;
    right: 5px;
    top: 0;
    height: 86vh;
    width: 8px;
    margin-top: 7vh;
    background: #eee;
    border-radius: 4px;
    z-index: 10000;
    display: "none";
}
#thumb {
    width: 100%;
    height: 0px;
    background: #888;
    border-radius: 4px;
    position: absolute;
    top: 0;
}

/* Old TOC dropdown removed - now using .toc-panel */

#toolboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, 250px); 
    row-gap: 20px;
    column-gap: 60px;
    justify-content: center;
    align-items: center;
}

.toolbox-dial {
    position: relative;
    width: 250px;
    height: 250px;
    border: 20px solid #2b2b2b;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    background-color: #2b2b2b;
  }

/* Sync overlay for synced bracket toolboxes */
.toolbox-sync-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 43, 43, 0.92);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.sync-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    color: #888;
}

.sync-overlay-content i {
    font-size: 28px;
    color: #6ab0ff;
}

.sync-overlay-content span {
    font-size: 13px;
    color: #aaa;
}

.sync-overlay-content small {
    font-size: 10px;
    color: #666;
}

  .tool {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #888;
    font-size: 24px;
    color: #0e2431;
  }

  .tool i::after {
    content: attr(data-label);
    position: absolute;
    font-family: 'Mali';
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: white;
    background-color: 'rgba(32,31,30, 0.7)';
    padding: 2px 5px;
    border-radius: 3px;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   TOOL SELECTION POPUP - Compact Dark Theme
   ═══════════════════════════════════════════════════════════════ */
.tool-popup {
    position: absolute;
    bottom: 56px;
    left: 50%;
    transform: translateX(-50%);
    width: 170px;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    background: #2a2a2a;
    border: 1px solid #444;
    display: none;
    z-index: 100000;
    margin: 0;
    flex-direction: column;
    gap: 6px;
    font-family: 'Mali', sans-serif;
}

.tool-popup * {
    pointer-events: auto;
}

.tool-popup .modifier-title {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
    margin: 0 0 4px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #444;
}

.tool-popup label {
    font-size: 14px;
    color: #999;
    margin: 0;
    display: block;
}

.tool-popup select,
.tool-popup input[type="color"] {
    width: 100%;
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid #444;
    background: #3a3a3a;
    color: #e0e0e0;
    font-size: 14px;
    font-family: 'Mali', sans-serif;
    margin-top: 2px;
}

.tool-popup select:focus,
.tool-popup input:focus {
    outline: none;
    border-color: #666;
}

.tool-popup input[type="color"] {
    height: 26px;
    padding: 2px;
    cursor: pointer;
}

.tool-popup .range-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.tool-popup .range-row input[type="range"] {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    background: #444;
    border-radius: 2px;
    margin: 0;
}

.tool-popup .range-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #888;
    border-radius: 50%;
    cursor: pointer;
}

.tool-popup .range-row input[type="number"] {
    width: 42px;
    padding: 2px 4px;
    border-radius: 4px;
    border: 1px solid #444;
    background: #3a3a3a;
    color: #e0e0e0;
    font-size: 14px;
    text-align: center;
}

.tool-popup .modifier-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid #444;
}

.tool-popup .modifier-footer label {
    margin: 0;
}

/* Compact toggle switch for popup */
.tool-popup .toggle-switch {
    position: relative;
    width: 32px;
    height: 16px;
}

.tool-popup .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.tool-popup .toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #444;
    border-radius: 16px;
    transition: 0.2s;
}

.tool-popup .toggle-switch .slider:before {
    content: "";
    position: absolute;
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background: #888;
    border-radius: 50%;
    transition: 0.2s;
}

.tool-popup .toggle-switch input:checked + .slider {
    background: #666;
}

.tool-popup .toggle-switch input:checked + .slider:before {
    transform: translateX(16px);
    background: #e0e0e0;
}

/* Close button */
.tool-popup .delete-modifier-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 14px;
    color: #888;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.tool-popup .delete-modifier-btn:hover {
    color: #e0e0e0;
}

.toolbox-title {
    font-weight: bold;
    text-transform: capitalize;
}
.toolbox-title-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    pointer-events: none; /* prevents drag/select issues */
    margin-top: 14px;
}


/* ═══════════════════════════════════════════════════════════════
   MEDIA (Images & PDFs) STYLES
   ═══════════════════════════════════════════════════════════════ */

/* Media Overlay (shared by PDF page selector and crop interface) */
.media-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}

/* PDF Page Selector */
.pdf-page-selector {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 24px;
  min-width: 280px;
  color: #fff;
  font-family: sans-serif;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.pdf-page-selector h3 {
  margin: 0 0 16px;
  font-size: 16px;
  text-align: center;
  font-weight: 500;
}

.pdf-page-selector input[type="number"] {
  flex: 1;
  padding: 10px 14px;
  background: #3a3a3a;
  border: 1px solid #555;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.pdf-page-selector input[type="number"]:focus {
  border-color: #007aff;
}

.pdf-page-selector button {
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.pdf-page-selector button:hover {
  transform: translateY(-1px);
}

.pdf-page-selector button:active {
  transform: scale(0.98);
}

/* Media Edit Popup */
.media-edit-popup {
  position: fixed;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 14px;
  z-index: 100000;
  min-width: 200px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  font-family: sans-serif;
  color: #fff;
}

.media-edit-popup button {
  background: #3a3a3a;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 6px 10px;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.media-edit-popup button:hover {
  background: #4a4a4a;
}

.media-edit-popup button:active {
  transform: scale(0.96);
}

.media-edit-popup input[type="range"] {
  flex: 1;
  accent-color: #007aff;
  cursor: pointer;
}

.media-edit-popup input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #007aff;
  cursor: pointer;
}

/* Crop Overlay */
.crop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 200000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.crop-canvas {
  max-width: 90vw;
  max-height: 70vh;
  border: 2px solid #555;
  cursor: crosshair;
}

.crop-controls {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

.crop-controls button {
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   GOOGLE AUTH & SYNC UI
   ═══════════════════════════════════════════════════════════════ */

.settings-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #444, transparent);
  margin: 20px 0;
}

/* ═══════════════════════════════════════════════════════════════
   CLOUD SYNC (Simple Monotone Design)
   ═══════════════════════════════════════════════════════════════ */

.cloud-card {
  background: #2b2b2b;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.cloud-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cloud-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #999;
  font-family: 'Mali', sans-serif;
  font-size: 14px;
}

.cloud-info i {
  font-size: 18px;
}

/* Cloud Button */
.cloud-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #666;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-family: 'Mali', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.cloud-btn:hover {
  background: #777;
}

.cloud-btn i {
  font-size: 15px;
}

.cloud-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #888;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cloud-btn-icon:hover {
  background: #444;
  color: #fff;
}

.cloud-btn-icon i {
  font-size: 18px;
}

/* User info row */
.cloud-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.cloud-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #444;
}

.cloud-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cloud-name {
  font-family: 'Mali', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cloud-email {
  font-size: 11px;
  color: #777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sync actions row */
.cloud-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #444;
}

.cloud-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Mali', sans-serif;
  font-size: 12px;
  color: #666;
}

.cloud-status i {
  font-size: 14px;
}

.cloud-status.syncing {
  color: #888;
}

.cloud-status.syncing i {
  animation: spin 1s linear infinite;
}

.cloud-status.synced {
  color: #6a6;
}

.cloud-status.error {
  color: #a66;
}

.cloud-status.idle {
  color: #666;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cloud-btns {
  display: flex;
  gap: 6px;
}

/* Hide driveGroup by default - controlled by JS */
#driveGroup {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════
   OFFLINE INDICATOR
   ═══════════════════════════════════════════════════════════════ */
.offline-indicator {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #333;
  border: 1px solid #555;
  border-radius: 24px;
  color: #fff;
  font-family: 'Mali', sans-serif;
  font-size: 13px;
  z-index: 100000;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.offline-indicator.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.offline-indicator i {
  font-size: 16px;
  color: #f5a623;
}

.offline-indicator span {
  color: #ccc;
}

/* ═══════════════════════════════════════════════════════════════
   REMINDER SYSTEM STYLES
   ═══════════════════════════════════════════════════════════════ */

/* Reminder Button (Right of Toolbar) */
.reminder-btn {
  position: fixed;
  top: 10px;
  right: 90px;
  height: 32px;
  display: none; /* Hidden by default, shown via JS when reminders exist */
  align-items: center;
  background-color: #666666;
  color: white;
  border: none;
  border-radius: 6px;
  z-index: 10;
  font-family: 'Mali', sans-serif;
  font-size: 13px;
  transition: all 0.25s ease;
  overflow: hidden;
}

.reminder-btn-main {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  height: 100%;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.reminder-btn-main:hover {
  background-color: #777777;
}

.reminder-btn-main i {
  font-size: 16px;
  color: #ff6b6b;
}

.reminder-btn #reminderCount {
  white-space: nowrap;
}

/* Fold toggle button */
.reminder-fold-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 100%;
  background: transparent;
  border: none;
  border-right: 1px solid #555;
  color: #aaa;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.reminder-fold-btn:hover {
  background-color: #555;
  color: #fff;
}

.reminder-fold-btn i {
  font-size: 14px;
  transition: transform 0.2s ease;
}

/* Folded state - icon only */
.reminder-btn.folded {
  width: 32px;
}

.reminder-btn.folded .reminder-btn-main {
  padding: 0 8px;
  justify-content: center;
}

.reminder-btn.folded #reminderCount {
  display: none;
}

.reminder-btn.folded .reminder-fold-btn {
  display: none;
}

/* Reminder count badge for folded state */
.reminder-btn .reminder-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #ff6b6b;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
}

.reminder-btn.folded .reminder-badge {
  display: flex;
}

/* Reminder Date/Time Picker Modal */
.reminder-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100001;
}

.reminder-picker-overlay.show {
  display: flex;
}

.reminder-picker {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 24px;
  min-width: 300px;
  color: #fff;
  font-family: 'Mali', sans-serif;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.reminder-picker h3 {
  margin: 0 0 20px;
  font-size: 18px;
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.reminder-picker h3::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff6b6b'%3E%3Cpath d='M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z'/%3E%3C/svg%3E") no-repeat center;
}

.reminder-picker-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.reminder-picker-content label {
  font-size: 13px;
  color: #aaa;
  margin-bottom: -8px;
}

.reminder-picker-content input {
  padding: 10px 14px;
  background: #3a3a3a;
  border: 1px solid #555;
  border-radius: 6px;
  color: #fff;
  font-family: 'Mali', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.reminder-picker-content input:focus {
  border-color: #ff6b6b;
}

.reminder-picker-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.reminder-picker-actions button {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: 'Mali', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.reminder-btn-cancel {
  background: #444;
  color: #ccc;
}

.reminder-btn-cancel:hover {
  background: #555;
}

.reminder-btn-confirm {
  background: #ff6b6b;
  color: #fff;
}

.reminder-btn-confirm:hover {
  background: #ff5252;
}

/* Reminder Panel */
.reminder-panel {
  position: fixed;
  top: 50px;
  right: 90px;
  width: 380px;
  max-height: calc(100vh - 70px);
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Mali', sans-serif;
}

.reminder-panel.show {
  display: flex;
}

.reminder-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #333;
  border-bottom: 1px solid #444;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.reminder-panel-header i {
  font-size: 18px;
  color: #ff6b6b;
}

.reminder-panel-header span {
  flex: 1;
}

.reminder-close-btn {
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.reminder-close-btn:hover {
  background: #444;
  color: #fff;
}

.reminder-close-btn i {
  font-size: 20px;
  color: inherit;
}

.reminder-list {
  padding: 12px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reminder-list::-webkit-scrollbar {
  width: 6px;
}

.reminder-list::-webkit-scrollbar-track {
  background: transparent;
}

.reminder-list::-webkit-scrollbar-thumb {
  background-color: rgba(150, 150, 150, 0.4);
  border-radius: 3px;
}

.reminder-empty {
  padding: 24px 16px;
  color: #666;
  font-size: 13px;
  text-align: center;
  font-style: italic;
}

/* Notebook/Note structure in reminder list */
.reminder-notebook {
  background: #333;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 4px;
}

.reminder-notebook-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #3a3a3a;
  cursor: pointer;
  transition: background 0.15s ease;
}

.reminder-notebook-header:hover {
  background: #444;
}

.reminder-notebook-header i {
  font-size: 16px;
  color: #888;
}

.reminder-notebook-header span {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #ddd;
}

.reminder-notebook-header .chevron {
  font-size: 14px;
  color: #666;
  transition: transform 0.2s ease;
}

.reminder-notebook.collapsed .reminder-notebook-header .chevron {
  transform: rotate(-90deg);
}

.reminder-notebook.collapsed .reminder-notebook-notes {
  display: none;
}

.reminder-notebook-notes {
  padding: 4px 8px 8px 8px;
  max-height: 200px;
  overflow-y: auto;
}

.reminder-notebook-notes::-webkit-scrollbar {
  width: 6px;
}

.reminder-notebook-notes::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.reminder-notebook-notes::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.reminder-notebook-notes::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.reminder-note {
  margin-bottom: 6px;
}

.reminder-note-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  color: #aaa;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.reminder-note-header:hover {
  background: #3a3a3a;
}

.reminder-note-header i {
  font-size: 14px;
}

.reminder-note.collapsed .reminder-items {
  display: none;
}

.reminder-items {
  padding-left: 16px;
}

/* Individual Reminder Item */
.reminder-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: #3a3a3a;
  border-radius: 6px;
  margin-bottom: 6px;
  border-left: 3px solid #ff6b6b;
}

.reminder-item-preview {
  width: 100%;
  height: 80px;
  border-radius: 4px;
  background: #2a2a2a;
  object-fit: contain;
  cursor: pointer;
}

.reminder-item-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.reminder-item-due {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #aaa;
}

.reminder-item-due i {
  font-size: 14px;
  color: #ff6b6b;
}

.reminder-item-due.overdue {
  color: #ff6b6b;
}

.reminder-item-due.overdue i {
  color: #ff6b6b;
}

.reminder-item-due.soon {
  color: #f5a623;
}

.reminder-item-due.soon i {
  color: #f5a623;
}

.reminder-delete-btn {
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.reminder-delete-btn:hover {
  background: #5a2a2a;
  color: #ff6b6b;
}

.reminder-delete-btn i {
  font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   FLASHCARD SYSTEM STYLES
   ═══════════════════════════════════════════════════════════════ */

/* Flashcard Button in Notes Section */
.flashcard-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 90%;
  margin: 8px auto;
  padding: 10px 14px;
  background: #faa08d;
  border: 1.5px solid #dcdcdc;
  border-radius: 6px;
  color: #333;
  font-family: 'Mali', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: none;
}

.flashcard-btn:hover {
  color: #444;
}

.flashcard-btn:active {
  background: #2a2a2a;
}

.flashcard-btn i {
  font-size: 15px;
}

/* Flashcard Modal */
.flashcard-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100002;
}

.flashcard-modal.show {
  display: flex;
}

.flashcard-modal-content {
  width: 94%;
  max-width: 720px;
  max-height: 90vh;
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* Flashcard Header */
.flashcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #252525;
  border-bottom: 1px solid #333;
}

.flashcard-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #b0b0b0;
}

.flashcard-header h2 i {
  color: #888;
}

.flashcard-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #666;
  cursor: pointer;
  transition: all 0.15s ease;
}

.flashcard-close-btn:hover {
  background: #333;
  color: #999;
}

.flashcard-close-btn i {
  font-size: 20px;
}

/* Progress Bar */
.flashcard-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #252525;
}

.flashcard-progress span {
  font-family: 'Mali', sans-serif;
  font-size: 11px;
  color: #666;
  min-width: 50px;
}

.flashcard-progress-bar {
  flex: 1;
  height: 3px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
}

.flashcard-progress-fill {
  height: 100%;
  background: #555;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Flashcard Container */
.flashcard-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  perspective: 1200px;
  min-height: 400px;
  cursor: pointer;
}

/* Flashcard */
.flashcard {
  width: 100%;
  height: 340px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.flashcard.flipped {
  transform: rotateY(180deg);
}

.flashcard-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Front side (keywords) - warm accent border */
.flashcard-front {
  background: #2a2a2a;
  border: 2px solid #4a4a4a;
  border-left: 3px solid #8a7a6a;
}

/* Back side (content) - cool accent border */
.flashcard-back {
  background: #2a2a2a;
  border: 2px solid #4a4a4a;
  border-left: 3px solid #6a7a8a;
  transform: rotateY(180deg);
}

.flashcard-source {
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.2);
  font-family: 'Mali', sans-serif;
  font-size: 10px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 5px;
}

.flashcard-source i {
  font-size: 10px;
}

.flashcard-canvas {
  flex: 1;
  width: 100%;
  background: transparent;
  pointer-events: none;
}

.flashcard-hint {
  padding: 6px;
  text-align: center;
  font-family: 'Mali', sans-serif;
  font-size: 10px;
  color: #444;
  font-style: italic;
  pointer-events: none;
}

/* Flashcard Actions */
.flashcard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: #252525;
  border-top: 1px solid #333;
}

.flashcard-nav-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: #333;
  border: none;
  border-radius: 6px;
  color: #999;
  font-family: 'Mali', sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.flashcard-nav-btn:hover:not(:disabled) {
  background: #3a3a3a;
  color: #bbb;
}

.flashcard-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.flashcard-nav-btn i {
  font-size: 14px;
}

.flashcard-source-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  color: #666;
  font-family: 'Mali', sans-serif;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.flashcard-source-btn:hover {
  background: #2a2a2a;
  border-color: #444;
  color: #888;
}

.flashcard-source-btn i {
  font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Data Collection Opt-in Modal
   ═══════════════════════════════════════════════════════════════════════════ */

.data-optin-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100003;
  padding: 20px;
}

.data-optin-content {
  width: 100%;
  max-width: 420px;
  background: #2a2a2a;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.data-optin-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.data-optin-icon i {
  font-size: 32px;
  color: white;
}

.data-optin-content h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}

.data-optin-content > p {
  margin: 0 0 20px;
  font-size: 14px;
  color: #aaa;
  line-height: 1.5;
}

.data-optin-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}

.data-optin-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: #ccc;
}

.data-optin-list li i {
  font-size: 18px;
}

.data-optin-list li i.bx-check {
  color: #4ade80;
}

.data-optin-list li i.bx-x {
  color: #f87171;
}

.data-optin-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.data-optin-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-family: 'Mali', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.data-optin-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.data-optin-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.data-optin-btn.secondary {
  background: #444;
  color: #aaa;
}

.data-optin-btn.secondary:hover {
  background: #555;
  color: #fff;
}

.data-optin-note {
  margin: 0;
  font-size: 12px;
  color: #666;
}

/* Settings description text */
.settings-description {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EMBEDDED LINK FRAME STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Embed frame container */
.embed-frame {
  font-family: 'Mali', sans-serif;
}

/* Embed frame header hover effects */
.embed-frame-header button:hover {
  background: #3a3a3a !important;
}

/* Embed address bar */
.embed-address-bar {
  transition: border-color 0.15s;
}

.embed-address-bar:hover {
  border-color: #555 !important;
}

.embed-address-bar:focus-within {
  border-color: #666 !important;
  background: #222 !important;
}

.embed-address-bar input {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Embed URL input popup */
.embed-url-popup input:focus {
  outline: none;
  border-color: #666;
}

/* Embed loader animation */
.embed-loader i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Embed error state */
.embed-error button:hover {
  background: #555 !important;
}

/* Embed resize handle hover */
.embed-resize-handle:hover {
  background: linear-gradient(135deg, transparent 50%, #666 50%);
}

/* Embed frame header grab cursor */
.embed-frame-header {
  cursor: grab;
}

.embed-frame-header:active {
  cursor: grabbing;
}
