/* Level of Detail (LOD) Styles */

/* Medium LOD (approx < 150px on screen) */
/* Simplify rendering, remove expensive effects */
.note.lod-medium {
    box-shadow: none !important;
    border-radius: 2px !important;
    /* Sharper/simpler */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: none !important;
    /* Disable transitions for performance */
}

/* Also simplify lines */
.drawn-line.lod-medium {
    shape-rendering: optimizeSpeed;
}

/* Low LOD (approx < 50px on screen) */
/* Obscure content, show only high-level shape/color */
.note.lod-low {
    box-shadow: none !important;
    border-radius: 0 !important;
    background: var(--note-bg, #ffffff) !important;
    /* Ensure solid opacity */
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Simple border instead of shadow */
    overflow: hidden !important;
}

/* Hide internal structure */
.note.lod-low .note-body {
    display: none !important;
}

.note.lod-low .note-header {
    border-bottom: none !important;
    background: transparent !important;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Simplify title */
.note.lod-low .note-title {
    font-size: 2em !important;
    /* Larger relative to the tiny note */
    opacity: 0.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note.lod-low .note-lang-label {
    display: none !important;
}

/* Lines at Low LOD */
.drawn-line.lod-low {
    opacity: 0.5;
    shape-rendering: crispEdges;
    /* No anti-aliasing */
    stroke-dasharray: none !important;
    /* Simplify dashes to solid if very small? Or maybe just keep them */
}

/* --- Voice Note Specific Overrides --- */

/* Medium LOD: Keep Pill Shape */
.note[data-type="voice"].lod-medium {
    border-radius: 999px !important;
    /* Force pill shape */
}

/* Low LOD: Keep content visible but simplified */
.note[data-type="voice"].lod-low {
    border-radius: 999px !important;
}

.note[data-type="voice"].lod-low .note-body {
    display: block !important;
    /* Show body */
    border: none !important;
}

.note[data-type="voice"].lod-low .voice-note-container {
    padding: 0 4px;
    /* Tighten padding */
}

/* Hide waveform at low detail to same performance, but keep time */
.note[data-type="voice"].lod-low .voice-waveform {
    display: none !important;
}

.note[data-type="voice"].lod-low .voice-duration {
    font-size: 1.5em !important;
    /* Make time readable */
    font-weight: bold;
}

.note[data-type="voice"].lod-low .voice-play-btn {
    transform: scale(0.8);
    /* Slightly smaller button */
}