/* Lista ankiet */
.polls_list_section {
    margin-bottom: 30px;
}

.polls_grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.polls_item_meta {
    color: #666;
    font-size: 14px;
}

.polls_item_article {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.polls_item_article a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.polls_item_article a:hover {
    text-decoration: underline;
}

.polls_item_info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.polls_item_status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.polls_item_status.active {
    color: #28a745;
}

.polls_item_status.active:before {
    content: '●';
    font-size: 10px;
}

.polls_item_status.inactive {
    color: #dc3545;
}

.polls_item_status.inactive:before {
    content: '●';
    font-size: 10px;
}

.polls_item_votes {
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Ikona ankiety */
.polls_icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 1.1em;
    vertical-align: middle;
}

/* Lepsze stylowanie tytułu ankiety */
.polls_item_title a {
    color: #2B73D4;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.polls_item_title a:hover {
    color: #C13940;
}

/* Delikatne tło dla pojedynczej ankiety */
.polls_item {
    background: #fafbfc;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.polls_item:hover {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.polls_item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: #2B73D4;
}

/* Sidebar */
.polls_sidebar_section,
.polls_single_sidebar_section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Widok pojedynczej ankiety */
.polls_single_article_link {
    margin-bottom: 10px;
}

.polls_single_article_link a {
    color: var(--primary-color, #2B73D4);
    text-decoration: none;
}

.polls_single_article_link a:hover {
    text-decoration: underline;
}

.polls_single_info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.polls_single_meta {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.polls_single_valid_until {
    margin-top: 5px;
}

.polls_article_no_link {
    color: #333;
    font-weight: 500;
}

.polls_single_active {
    color: #28a745;
    font-weight: 500;
}

.polls_single_inactive {
    color: #dc3545;
    font-weight: 500;
}

.polls_single_content {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Formularz ankiety */
.polls_form {
    margin-bottom: 15px;
}

.polls_options {
    margin-bottom: 20px;
}

.polls_option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 8px;
    background-color: #fff;
    border-radius: 4px;
}

.polls_option:hover {
    background-color: #f0f0f0;
}

.polls_option input[type="radio"] {
    margin-top: 4px;
    margin-right: 10px;
}

.polls_option label {
    flex: 1;
    font-size: 16px;
    cursor: pointer;
}

.polls_submit {
    width: 100%;
    background-color: var(--primary-color, #2B73D4);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.polls_submit:hover {
    background-color: #2160b3;
}

/* Wyniki ankiety */
.polls_results {
    margin-top: 20px;
}

.polls_result {
    margin-bottom: 15px;
}

.polls_result_text {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    margin-bottom: 5px;
}

.polls_result_text span:last-child {
    font-weight: 500;
}

.polls_result_bar {
    height: 12px;
    background-color: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 5px;
}

.polls_result_bar_fill {
    height: 100%;
    background-color: var(--primary-color, #2B73D4);
    border-radius: 6px;
    width: 0;
    transition: width 0.6s ease-out;
}

/* Stopka ankiety */
.polls_footer_centered {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.polls_back_link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color, #2B73D4);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
}

.polls_back_link:hover {
    background-color: #2160b3;
    color: #fff;
}

/* Ukrycie legendy dla czytników ekranu */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Resetowanie domyślnych stylów fieldset */
.polls_options {
    border: none;
    padding: 0;
    margin: 0 0 20px 0;
}

/* Poprawa dostępności dla progress bar */
.polls_result_bar[role="progressbar"] {
    position: relative;
}