/* ── DSS Manager Frontend Styles ──────────────────────────── */

:root {
    --dss-primary:    #1a1a2e;
    --dss-accent:     #e94560;
    --dss-accent-hover: #c73652;
    --dss-bg:         #f4f6f9;
    --dss-surface:    #ffffff;
    --dss-border:     #e2e8f0;
    --dss-text:       #1a1a2e;
    --dss-text-muted: #64748b;
    --dss-radius:     10px;
    --dss-shadow:     0 2px 12px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; }

.dss-wrap {
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--dss-text);
    min-height: 100vh;
    background: var(--dss-bg);
    padding: 0;
    margin: 0;
}

/* ── LOGIN ─────────────────────────────────────────────────── */

.dss-login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.dss-login-box {
    background: var(--dss-surface);
    border-radius: var(--dss-radius);
    box-shadow: var(--dss-shadow);
    padding: 48px 40px;
    width: 100%;
    max-width: 400px;
}

.dss-login-logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dss-accent);
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.dss-login-box h2 {
    margin: 0 0 28px;
    font-size: 1.3rem;
    color: var(--dss-text-muted);
    font-weight: 400;
}

/* ── HEADER ────────────────────────────────────────────────── */

.dss-header {
    background: var(--dss-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dss-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dss-logo {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--dss-accent);
}

.dss-unit-name {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* ── DASHBOARD GRID ────────────────────────────────────────── */

.dss-dashboard-wrap {
    display: block;
}

.dss-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    padding: 28px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── PANELS ────────────────────────────────────────────────── */

.dss-panel {
    background: var(--dss-surface);
    border-radius: var(--dss-radius);
    box-shadow: var(--dss-shadow);
    padding: 24px;
}

.dss-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.dss-panel h2 {
    margin: 0 0 20px;
    font-size: 1.1rem;
    font-weight: 700;
}

.dss-panel-header h2 {
    margin: 0;
}

/* ── FORM ──────────────────────────────────────────────────── */

.dss-form,
.dss-news-form {
    margin-bottom: 24px;
}

.dss-news-form {
    background: #f8fafc;
    border: 1px solid var(--dss-border);
    border-radius: var(--dss-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.dss-field {
    margin-bottom: 16px;
}

.dss-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dss-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dss-field input[type="text"],
.dss-field input[type="password"],
.dss-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--dss-border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--dss-text);
    background: #fff;
    transition: border-color 0.2s;
    outline: none;
}

.dss-field input:focus,
.dss-field textarea:focus {
    border-color: var(--dss-accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.dss-field textarea {
    resize: vertical;
}

.dss-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

/* ── BUTTONS ───────────────────────────────────────────────── */

.dss-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    line-height: 1;
}

.dss-btn:active { transform: scale(0.98); }

.dss-btn-primary {
    background: var(--dss-accent);
    color: #fff;
}
.dss-btn-primary:hover { background: var(--dss-accent-hover); color: #fff; }

.dss-btn-outline {
    background: transparent;
    color: var(--dss-text);
    border: 1px solid var(--dss-border);
}
.dss-btn-outline:hover { background: var(--dss-bg); color: var(--dss-text); }

.dss-btn-danger {
    background: transparent;
    color: var(--dss-accent);
    border: 1px solid var(--dss-accent);
}
.dss-btn-danger:hover { background: var(--dss-accent); color: #fff; }

.dss-btn-sm { padding: 6px 14px; font-size: 0.82rem; }

/* Header odjava gumb */
.dss-header .dss-btn-outline {
    color: rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.3);
}
.dss-header .dss-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* ── NEWS LIST ─────────────────────────────────────────────── */

.dss-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dss-news-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--dss-border);
    border-radius: 8px;
    background: #fafbfc;
    transition: border-color 0.2s;
}

.dss-news-item:hover { border-color: #cbd5e1; }

.dss-news-item-top {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.dss-news-item-body {
    flex: 1;
    min-width: 0;
}

.dss-news-item-body strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.dss-news-item-body p {
    margin: 0 0 6px;
    font-size: 0.85rem;
    color: var(--dss-text-muted);
    line-height: 1.4;
}

.dss-date {
    font-size: 0.78rem;
    color: var(--dss-text-muted);
}

.dss-news-item-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── NAV BUTTONS ───────────────────────────────────────────── */

.dss-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dss-nav-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--dss-bg);
    border: 1px solid var(--dss-border);
    border-radius: var(--dss-radius);
    text-decoration: none;
    color: var(--dss-text);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
}

.dss-nav-btn:hover {
    background: var(--dss-primary);
    color: #fff;
    border-color: var(--dss-primary);
    transform: translateX(4px);
}

.dss-nav-icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* ── ALERTS ────────────────────────────────────────────────── */

.dss-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.dss-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.dss-empty {
    text-align: center;
    color: var(--dss-text-muted);
    padding: 32px;
    font-size: 0.9rem;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */

@media (max-width: 768px) {
    .dss-dashboard-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .dss-header {
        padding: 0 16px;
    }

    .dss-login-box {
        padding: 32px 24px;
    }
}

/* ── NEWS IMAGE THUMB ──────────────────────────────────────── */

.dss-news-item {
    align-items: flex-start;
}

.dss-news-item-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
}

.dss-news-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dss-news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.dss-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    background: #e0f2fe;
    color: #0369a1;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.dss-badge-from {
    background: #f0fdf4;
    color: #15803d;
}

.dss-news-item-shared {
    opacity: 0.85;
    border-style: dashed;
}

/* ── IMAGE UPLOAD ──────────────────────────────────────────── */

.dss-file-input {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.dss-field-hint {
    font-size: 0.78rem;
    color: var(--dss-text-muted);
}

.dss-current-image {
    margin-bottom: 10px;
}

.dss-current-image img {
    display: block;
    max-width: 200px;
    max-height: 120px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--dss-border);
    margin-bottom: 6px;
}

.dss-remove-image {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--dss-accent);
    cursor: pointer;
    font-weight: 600;
}

/* ── CHECKBOXES ────────────────────────────────────────────── */

.dss-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid var(--dss-border);
    border-radius: 6px;
    padding: 12px 16px;
}

.dss-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
    color: var(--dss-text);
}

.dss-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--dss-accent);
    cursor: pointer;
}

/* ── TINYMCE WRAPPER ───────────────────────────────────────── */

.dss-field .wp-editor-wrap {
    border: 1px solid var(--dss-border);
    border-radius: 6px;
    overflow: hidden;
}

.dss-field .wp-editor-wrap:focus-within {
    border-color: var(--dss-accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

/* ── DISPLAY SHORTCODE (zaslon) ────────────────────────────── */

.dss-display-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.dss-display-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    overflow: hidden;
}

.dss-display-card-img {
    flex-shrink: 0;
    width: 180px;
}

.dss-display-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dss-display-card-body {
    padding: 20px 20px 20px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dss-display-card:not(:has(.dss-display-card-img)) .dss-display-card-body {
    padding: 20px;
}

.dss-display-card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

.dss-display-card-content {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

.dss-display-card-content p { margin: 0; }

.dss-display-card-date {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: auto;
}

.dss-display-empty {
    text-align: center;
    color: #94a3b8;
    padding: 40px;
}

/* ── POPUP ─────────────────────────────────────────────────── */

.dss-display-card {
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.dss-display-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}

.dss-display-card-excerpt {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

.dss-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: flex-start;
    justify-content: center;
    padding: 20vh 24px 24px;
    overflow-y: auto;
}

.dss-popup-overlay.active {
    display: flex;
}

.dss-popup-box {
    background: #fff;
    border-radius: 14px;
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.dss-popup-close {
    position: sticky;
    top: 0;
    float: right;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1rem;
    cursor: pointer;
    margin: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    z-index: 1;
}

.dss-popup-close:hover { background: #e2e8f0; }

.dss-popup-inner,
#dss-popup-inner {
    padding: 24px 28px 28px;
    clear: both;
}

.dss-popup-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
    line-height: 1.3;
}

.dss-popup-date {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 16px;
}

.dss-popup-img {
    margin-bottom: 18px;
    border-radius: 8px;
    overflow: hidden;
}

.dss-popup-img img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

.dss-popup-content {
    font-size: 1rem;
    color: #334155;
    line-height: 1.7;
}

.dss-popup-content p { margin: 0 0 12px; }
.dss-popup-content p:last-child { margin-bottom: 0; }

/* ── INACTIVE NEWS ─────────────────────────────────────────── */

.dss-panel-inactive {
    margin-top: 0;
}

.dss-news-item-inactive {
    opacity: 0.6;
}

.dss-news-item-inactive strong {
    text-decoration: line-through;
}

/* ── SHOW ALL BUTTON ───────────────────────────────────────── */

.dss-display-card-hidden {
    display: none;
}

.dss-show-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: #fff;
    border: 2px dashed var(--dss-border);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dss-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.dss-show-all-btn:hover {
    border-color: var(--dss-accent);
    color: var(--dss-accent);
    background: #fff5f5;
}

.dss-show-all-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dss-accent);
    color: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 2px 8px;
    min-width: 24px;
}

/* ── EXPANDED / COLLAPSE ───────────────────────────────────── */

.dss-display-expanded {
    /* not used anymore */
}

.dss-all-news-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    overflow-y: auto;
    padding: 40px 20px;
}

.dss-all-news-overlay.active {
    display: block;
}

.dss-all-news-box {
    max-width: 860px;
    margin: 0 auto;
}

.dss-all-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.dss-all-news-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.4rem;
}

.dss-all-news-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.dss-all-news-close:hover {
    background: rgba(255,255,255,0.25);
}

/* ── FILTER BAR ────────────────────────────────────────────── */

.dss-filter-bar {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--dss-border);
}

.dss-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dss-filter-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dss-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dss-filter-select {
    padding: 6px 12px;
    border: 1px solid var(--dss-border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--dss-text);
    background: #fff;
    cursor: pointer;
    outline: none;
}

.dss-filter-select:focus {
    border-color: var(--dss-accent);
}

.dss-filter-clear {
    font-size: 0.85rem;
    color: var(--dss-accent);
    text-decoration: none;
    font-weight: 600;
}

.dss-filter-clear:hover {
    text-decoration: underline;
}

/* ── MISLI ─────────────────────────────────────────────────── */

.dss-thoughts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dss-thought-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--dss-border);
    border-radius: 8px;
    background: #fafbfc;
}

.dss-thought-body p {
    margin: 0 0 6px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dss-text);
    font-style: italic;
}

/* ── POST-IT MISEL ─────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500&display=swap');

.dss-postit-wrap {
    display: block;
    width: 100%;
    padding: 20px 10px 16px;
    box-sizing: border-box;
}

.dss-postit {
    position: relative;
    background: #f7b034;
    padding: 40px 28px 32px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 2px;
    transform: rotate(-1.5deg);
    box-shadow:
        3px 3px 8px rgba(0,0,0,0.18),
        inset 0 -3px 6px rgba(0,0,0,0.06);
}

/* Zgib na dnu desno */
.dss-postit::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(225deg, #c8881a 45%, #f7b034 45%);
    border-radius: 0 0 2px 0;
}

/* Pin */
.dss-postit-pin {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 40% 40%, #e0e0e0, #888);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.35);
    z-index: 2;
}

.dss-postit-pin::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 14px;
    background: #999;
    border-radius: 0 0 2px 2px;
}

.dss-postit-text {
    font-family: 'Caveat', 'Comic Sans MS', cursive;
    font-size: 3.4rem;
    font-weight: 500;
    line-height: 1.6;
    color: #3a2800;
    word-break: break-word;
}

/* ── DISPLAY FONT SIZES ────────────────────────────────────── */

.dss-display-card-title {
    font-size: 2rem !important;
    line-height: 1.2;
}

.dss-display-title {
    font-size: 3.5rem !important;
    font-weight: 900;
    margin: 0 0 20px;
    line-height: 1.1;
}

/* Povečaj WP page title kjer je shortcode dss_novice */
h1.entry-title, h1.page-title, h1.title, .page-header h1, .entry-header h1 {
    font-size: 3.5rem !important;
    line-height: 1.1;
}

.dss-display-title {
    font-size: 3.5rem !important;
    font-weight: 900;
    margin: 0 0 20px;
    line-height: 1.1;
}

/* ── THOUGHT GROUPS ────────────────────────────────────────── */

.dss-thought-group {
    margin-bottom: 24px;
}

.dss-thought-group-label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dss-text-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--dss-border);
    margin-bottom: 12px;
}

.dss-group-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dss-group-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--dss-border);
    border-radius: 6px;
    cursor: pointer;
    font-weight: normal !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 0.95rem !important;
    color: var(--dss-text) !important;
    transition: border-color 0.15s, background 0.15s;
}

.dss-group-option:has(input:checked) {
    border-color: var(--dss-accent);
    background: #fff5f5;
}

.dss-group-option input[type="radio"] {
    accent-color: var(--dss-accent);
}

/* ── TABS ──────────────────────────────────────────────────── */

.dss-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--dss-border);
    padding-bottom: 0;
}

.dss-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--dss-text-muted);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.dss-tab:hover {
    color: var(--dss-text);
}

.dss-tab.active {
    color: var(--dss-accent);
    border-bottom-color: var(--dss-accent);
}

.dss-tab-panel {
    min-height: 60px;
}

/* ── ANKETE ADMIN ──────────────────────────────────────────── */

.dss-polls-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.dss-polls-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--dss-border);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dss-text-muted);
}

.dss-polls-table td {
    padding: 12px;
    border-bottom: 1px solid var(--dss-border);
    vertical-align: middle;
}

.dss-polls-table tr:last-child td { border-bottom: none; }

.dss-poll-link {
    font-weight: 600;
    color: var(--dss-text);
    text-decoration: none;
}
.dss-poll-link:hover { color: var(--dss-accent); }

.dss-poll-actions { display: flex; gap: 6px; }

.dss-toggle-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s;
}
.dss-toggle-badge.active { background: #dcfce7; color: #15803d; }
.dss-toggle-badge.inactive { background: #f1f5f9; color: #94a3b8; }
.dss-toggle-badge:hover { opacity: 0.75; }

.dss-poll-question-big {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.dss-poll-stats { display: flex; flex-direction: column; gap: 16px; }

.dss-poll-stat-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dss-poll-stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dss-text);
}

.dss-poll-stat-bar-wrap {
    background: #f1f5f9;
    border-radius: 20px;
    height: 12px;
    overflow: hidden;
    width: 100%;
}

.dss-poll-stat-bar {
    height: 100%;
    background: var(--dss-accent);
    border-radius: 20px;
    transition: width 0.5s ease;
    min-width: 4px;
}

.dss-poll-stat-num {
    font-size: 0.82rem;
    color: var(--dss-text-muted);
}

.dss-poll-option-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.dss-poll-option-row input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--dss-border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}

/* ── ANKETA FRONTEND ───────────────────────────────────────── */

.dss-poll-wrap {
    padding: 20px;
}

.dss-poll-question {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.3;
    color: var(--dss-text);
}

.dss-poll-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.dss-poll-option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 2px solid var(--dss-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
    color: var(--dss-text);
    transition: border-color 0.15s, background 0.15s;
}

.dss-poll-option-label:hover {
    border-color: var(--dss-accent);
    background: #fff5f5;
}

.dss-poll-option-label input {
    accent-color: var(--dss-accent);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.dss-poll-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

.dss-poll-thanks {
    text-align: center;
    padding: 40px 20px;
}

.dss-poll-thanks-icon {
    width: 60px;
    height: 60px;
    background: #dcfce7;
    color: #15803d;
    border-radius: 50%;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.dss-poll-thanks h3 {
    font-size: 1.4rem;
    margin: 0 0 8px;
}

.dss-poll-thanks p {
    color: var(--dss-text-muted);
    margin: 0;
}

.dss-poll-countdown {
    color: var(--dss-text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}
