/* Spremenljivke */
:root {
    --nm-line-mult: 1;
    --nm-letter-space: 0px;
}

/* Poudarjene povezave in naslovi */
body.nm-highlight-links a {
    outline: 2px solid #ffcc00;
    background: rgba(255, 204, 0, 0.15);
}

body.nm-highlight-headings h1,
body.nm-highlight-headings h2,
body.nm-highlight-headings h3,
body.nm-highlight-headings h4,
body.nm-highlight-headings h5,
body.nm-highlight-headings h6 {
    outline: 2px solid #00c4ff;
    background: rgba(0, 196, 255, 0.1);
}

/* Branik zaslona */
body.nm-screen-mask::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    pointer-events: none;
    z-index: 9980;
}

/* Bralna pisava */
body.nm-readable-font {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
}

/* Kontrastni načini – zelo kontrastno */
body.nm-mode-contrast-dark,
body.nm-mode-contrast-dark * {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

body.nm-mode-contrast-light,
body.nm-mode-contrast-light * {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #000 !important;
}

/* Overlay za invert / mono / saturacijo */
.nm-access-filter-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2147483500;
    display: none;
}

/* Pretvori barve */
body.nm-mode-invert .nm-access-filter-layer {
    display: block;
    background: #ffffff;
    mix-blend-mode: difference;
}

/* Enobarvno */
body.nm-mode-mono .nm-access-filter-layer {
    display: block;
    background: rgba(0,0,0,0.001);
    -webkit-backdrop-filter: grayscale(1);
    backdrop-filter: grayscale(1);
}

/* Nizka / visoka nasičenost */
body.nm-mode-sat-low .nm-access-filter-layer {
    display: block;
    background: rgba(0,0,0,0.001);
    -webkit-backdrop-filter: saturate(0.4);
    backdrop-filter: saturate(0.4);
}

body.nm-mode-sat-high .nm-access-filter-layer {
    display: block;
    background: rgba(0,0,0,0.001);
    -webkit-backdrop-filter: saturate(1.7);
    backdrop-filter: saturate(1.7);
}

/* Višina vrstice in presledek med črkami – samo na tekstu */
body.nm-line-adjust p,
body.nm-line-adjust span,
body.nm-line-adjust li,
body.nm-line-adjust a,
body.nm-line-adjust h1,
body.nm-line-adjust h2,
body.nm-line-adjust h3,
body.nm-line-adjust h4,
body.nm-line-adjust h5,
body.nm-line-adjust h6,
body.nm-line-adjust button,
body.nm-line-adjust input,
body.nm-line-adjust textarea {
    line-height: calc(var(--nm-line-mult) * 1.4);
}

body.nm-letter-adjust p,
body.nm-letter-adjust span,
body.nm-letter-adjust li,
body.nm-letter-adjust a,
body.nm-letter-adjust h1,
body.nm-letter-adjust h2,
body.nm-letter-adjust h3,
body.nm-letter-adjust h4,
body.nm-letter-adjust h5,
body.nm-letter-adjust h6,
body.nm-letter-adjust button,
body.nm-letter-adjust input,
body.nm-letter-adjust textarea {
    letter-spacing: var(--nm-letter-space);
}

/* ==== UI elementa ==== */

.nm-access-toggle {
    position: fixed;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: #8BBF64;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nm-access-toggle:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.nm-access-toggle-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
}

.nm-access-toggle-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.4;
}

.nm-access-toggle-icon svg circle:first-child {
    stroke: #ffffff;
    fill: none;
}

.nm-access-toggle-icon svg circle:nth-child(2),
.nm-access-toggle-icon svg path {
    stroke: #ffffff;
    fill: none;
}

/* custom image icon */
.nm-access-toggle-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

/* Panel */
.nm-access-panel {
    position: fixed;
    width: 380px;
    max-width: calc(100% - 48px);
    background: #202124;
    color: #fff;
    border-radius: 24px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.5);
    padding: 20px 20px 16px;
    z-index: 2147483600;
    display: none;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nm-access-panel.is-open {
    display: block;
}

.nm-access-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.nm-access-header h2 {
    font-size: 20px;
    margin: 0;
    color: #ffffff;
}

.nm-access-header-actions {
    display: flex;
    gap: 8px;
}

.nm-access-reset,
.nm-access-close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

/* Grid gumbov */

.nm-access-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.nm-access-btn {
    border-radius: 12px;
    background: #303134;
    border: 1px solid transparent;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.nm-access-btn span {
    display: block;
}

.nm-access-btn:hover {
    background: #3c4043;
}

.nm-access-btn.is-active {
    border-color: #8ab4f8;
    background: #1f2933;
}

/* Sliders */

.nm-access-sliders {
    border-top: 1px solid #3c4043;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nm-access-slider-row label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.nm-access-slider-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nm-access-slider-control input[type="range"] {
    flex: 1;
}

.nm-access-slider-value {
    min-width: 40px;
    text-align: right;
    font-size: 13px;
}

/* +/- gumbi za sliderje */
.nm-slider-btn {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: none;
    background: #3c4043;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Wrapper za vsebino, ki jo povečujemo */
#nm-page-wrapper {
    position: relative;
}

/* Položaji gumba in panela */

/* desno spodaj (privzeto) */
.nm-pos-right_bottom.nm-access-toggle {
    right: 32px;
    bottom: 32px;
}

.nm-pos-right_bottom.nm-access-panel {
    right: 24px;
    bottom: 110px;
}

/* levo spodaj */
.nm-pos-left_bottom.nm-access-toggle {
    left: 32px;
    bottom: 32px;
}

.nm-pos-left_bottom.nm-access-panel {
    left: 24px;
    bottom: 110px;
}

/* desno sredina */
.nm-pos-right_middle.nm-access-toggle {
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
}

.nm-pos-right_middle.nm-access-panel {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

/* levo sredina */
.nm-pos-left_middle.nm-access-toggle {
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
}

.nm-pos-left_middle.nm-access-panel {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

/* desno zgoraj */
.nm-pos-right_top.nm-access-toggle {
    right: 32px;
    top: 32px;
}

.nm-pos-right_top.nm-access-panel {
    right: 24px;
    top: 96px;
}

/* levo zgoraj */
.nm-pos-left_top.nm-access-toggle {
    left: 32px;
    top: 32px;
}

.nm-pos-left_top.nm-access-panel {
    left: 24px;
    top: 96px;
}
