:root {
    --dn-poll-question-size: 1.2rem;
    --dn-poll-option-size: 1rem;
    --dn-poll-bar-color: #2271b1;
    --dn-poll-button-bg: #2271b1;
    --dn-poll-container-bg: #ffffff;
}

.dn-poll-container {
    background: var(--dn-poll-container-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
    border: 1px solid #e1e5e9;
}

.dn-poll-question {
    color: #2c3338;
    font-size: var(--dn-poll-question-size);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f1;
    line-height: normal;
}

.dn-poll-options {
    display: flex !important;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.dn-poll-option {
    background: #f6f7f7;
    border: 2px solid #dcdcde;
    border-radius: 8px;
    padding: 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    font-size: var(--dn-poll-option-size);
}

.dn-poll-option:hover {
    background: #f0f0f1;
    border-color: #c3c4c7;
    transform: translateY(-1px);
}

.dn-poll-option:active {
    transform: translateY(0);
}

.dn-poll-option.selected {
    background: #e8f2ff;
    border-color: var(--dn-poll-bar-color);
    color: var(--dn-poll-bar-color);
}

.dn-vote-button {
    background: var(--dn-poll-button-bg);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dn-vote-button:hover {
    background: #135e96;
    transform: translateY(-1px);
}

.dn-vote-button:disabled {
    background: #a7aaad;
    cursor: not-allowed;
    transform: none;
}

.dn-poll-results {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.dn-results-title {
    font-size: var(--dn-poll-question-size); /* Uporabi isto velikost kot vprašanje */
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3338;
}

.dn-result-row {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dn-result-label {
    flex: 0 0 200px;
    font-weight: 500;
    color: #2c3338;
    font-size: var(--dn-poll-option-size); /* Uporabi isto velikost kot odgovori */
}

/* SAMO ENA definicija za progress bar container */
.dn-result-bar-container {
    flex: 1;
    background: #e1e5e9;
    border-radius: 20px;
    height: 24px;
    overflow: hidden;
    position: relative;
    margin: 4px 0;
    width:200px;
}

/* SAMO ENA definicija za progress bar */
.dn-result-bar {
    background: var(--dn-poll-bar-color);
    height: 100%;
    border-radius: 20px;
    transition: width 1s ease-in-out;
    min-width: 30px; /* Minimalna širina */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 12px;
    box-sizing: border-box;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

/* Za ozke barje prikažemo procente zunaj */
.dn-result-bar.narrow {
    min-width: 20px;
    padding: 0 6px;
}

.dn-result-bar.narrow::after {
    content: attr(data-percent);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 8px;
    color: #2c3338;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.dn-result-count {
    flex: 0 0 120px;
    text-align: right;
    font-size: 0.9rem;
    color: #646970;
    font-weight: 500;
}

.dn-total-votes {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e5e9;
    font-weight: 600;
    color: #2c3338;
    text-align: center;
}

.dn-already-voted {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: #0c5460;
    margin-bottom: 1rem;
}

.dn-loading {
    text-align: center;
    padding: 2rem;
    color: #646970;
}

/* Responsive design - MOBILNE NAPRAVE */
@media (max-width: 768px) {
    .dn-poll-container {
        padding: 1rem;
        margin: 0.5rem 0;
        border-radius: 8px;
    }
    
    .dn-poll-question {
        font-size: calc(var(--dn-poll-question-size) * 0.9);
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .dn-poll-option {
        font-size: calc(var(--dn-poll-option-size) * 0.9);
        padding: 0.5rem;
        margin-bottom: 0.25rem;
    }
    
    .dn-vote-button {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .dn-result-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .dn-result-label {
        flex: none;
        text-align: center;
        font-weight: 600;
        margin-bottom: 0.5rem;
        font-size: calc(var(--dn-poll-option-size) * 0.9);
    }
    
    .dn-result-bar-container {
        width: 100%;
        height: 20px;
        margin: 0.25rem 0;
    }
    
    .dn-result-bar {
        min-width: 25px;
        font-size: 10px;
        padding: 0 8px;
    }
    
    .dn-result-bar.narrow {
        min-width: 15px;
        padding: 0 4px;
    }
    
    .dn-result-bar.narrow::after {
        font-size: 10px;
        margin-left: 4px;
    }
    
    .dn-result-count {
        flex: none;
        text-align: center;
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }
    
    .dn-poll-results {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .dn-results-title {
        font-size: calc(var(--dn-poll-question-size) * 0.9);
        text-align: center;
    }
    
    .dn-total-votes {
        font-size: 0.9rem;
        padding-top: 0.75rem;
        margin-top: 0.75rem;
    }
}

@media (max-width: 480px) {
    .dn-poll-container {
        padding: 0.75rem;
        margin: 0.25rem 0;
    }
    
    .dn-poll-question {
        font-size: calc(var(--dn-poll-question-size) * 0.8);
    }
    
    .dn-poll-option {
        font-size: calc(var(--dn-poll-option-size) * 0.85);
        padding: 0.4rem;
    }
    
    .dn-result-bar-container {
        height: 18px;
    }
    
    .dn-result-bar {
        font-size: 9px;
        padding: 0 6px;
    }
    
    .dn-result-label {
        font-size: calc(var(--dn-poll-option-size) * 0.85);
    }
    
    .dn-results-title {
        font-size: calc(var(--dn-poll-question-size) * 0.8);
    }
}