:root {
    --primary-color: #4B2B74;
    --error: #AA2419;
    --error-bg: #FFEDEF;
    --success: #319060;
    --success-bg: #B9E4CA;
    --success-border: #40AD75;
    --error-light-bg: #FFEDEF;
    --error-light: #FE5957;
    --warning-bg: #FFE9B2;
    --warning-color: #E59A2E;
    --body-text: #27272C;
}


.no-polls-message {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 12px;
    color: #6b7280;
}

.no-polls-message .button {
    margin-top: 20px;
    display: inline-block;
    padding: 12px 24px;
    background: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.polls-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(300px, max-content)); */
    grid-template-columns: repeat(auto-fit, minmax(0, 300px));
    gap: 40px;
    margin-bottom: 40px;
    justify-content: start;

    display: flex;
    flex-wrap: wrap;
    /* align-items: flex-start; */
    justify-content: flex-start;
}

.poll-card {
    background: linear-gradient(180deg, #FFFFFF 0%, #FCF9FF 100%);
    border: 1px solid #F3F0F4;
    box-shadow: 2px 2px 8px 0px #0000000A;
    padding: 16px;
    gap: 20px;
    display: grid;
    transition: all 0.2s ease-in-out;
    width: calc(50% - 20px);
    border-radius: 10px;
}

.poll-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(75, 43, 116, 0.3), 0 3px 6px rgba(0, 0, 0, 0.1);
}

.poll-top-card {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #E0DEE0;
    padding-bottom: 20px;
}

.poll-top-card .poll-badges {
    gap: 5px;
}

@media (min-width: 980px) {
    .poll-top-card {
        flex-wrap: nowrap;
    }
    .poll-top-card .poll-badges {
        flex: 1 0 auto;
        justify-content: flex-end;
    }
}

.poll-top-card .poll-badges .poll-badge {
    margin: 0;
}

.poll-title {
    padding: 0;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 120%;
    text-transform: capitalize;
    vertical-align: middle;
}

.date-value {
    font-weight: 400;
    color: #66748B;
}

.poll-date {
    line-height: 24px;
    display: flex;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--body-text);
    align-items: center;
}

.poll-date img {
    width: 14px;
}

.poll-dates {
    /* display: grid; */
    gap: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
}

.poll-card.visitor-mode {
    border-color: #3b82f6;
    background: linear-gradient(to bottom, white 0%, #eff6ff 100%);
}

.badge-status.status-past {
    background: #e5c3ce;
    color: #92400e;
}

.badge-no-votes {
    background: #f3f4f6;
    color: #374151;
}

.badge-votes {
    background: #d1fae5;
    color: #065f46;
}

.badge-visitor {
    background: #dbeafe;
    color: #1e40af;
}

.poll-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}


.date-value {
    font-size: 14px;
    color: #374151;
    font-weight: 600;
}

.poll-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.poll-button {
    width: 100%;
    padding: 14px 16px;
    background: #FFFFFF;
    border: 1px solid #E3E3E3;
    text-align: center;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    line-height: 120%;
    vertical-align: middle;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease-in-out;
    flex-wrap: wrap;
    flex: 1 0 auto;
    width: auto;
}

.poll-button:hover {
    background: #F7F7F7;
    border: 1px solid #4D4061;
    animation-timing-function: ease-out;
    animation-duration: 300ms;
    transition: all 0.2s ease-in-out;
}

.poll-button:focus,
.poll-button:focus-visible {
    background: #FCF9FF;
    border: 1px solid #4D4061
}

.visitor-note {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin: 8px 0 0 0;
}

.visitor-note a {
    color: var(--primary-color);
    text-decoration: none;
}

.visitor-note a:hover {
    text-decoration: underline;
}

.poll-criteria {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.poll-criteria small {
    color: #6b7280;
    font-size: 12px;
}

/* Pagination */
.polls-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.polls-pagination .page-numbers {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 6px;
    margin: 0;
}

.polls-pagination .page-numbers li {
    display: inline-block;
}

.polls-pagination a,
.polls-pagination span {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    background: white;
    border: 1px solid #d1d5db;
    transition: all 0.2s;
}

.polls-pagination a:hover {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

.polls-pagination .current {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

.visitor-info-banner a {
    color: var(--primary-color);
    text-decoration: underline;
}

.visitor-info-banner a:hover {
    text-decoration: none;
    color: #8655A2;
}

.visitor-info-banner p {
    font-size: 18px;
    color: rgba(39, 39, 44, 1);
    font-weight: 700;
    line-height: 46px;
    padding: 0;
}

.visitor-info-banner {
    background: rgba(248, 247, 250, 1);
    border: 1px solid rgba(75, 43, 116, 1);
    backdrop-filter: blur(10px);
    padding: 14px 8px;
    text-align: center;
    margin-bottom: 40px;
}

/* Summary */
.polls-summary {
    text-align: center;
    margin-top: 20px;
    color: #6b7280;
    font-size: 14px;
}

.polls-summary p {
    margin: 5px 0;
}

.polls-summary small {
    font-size: 12px;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 980px) {
    .visitor-info-banner p {
        font-size: 14px;
        line-height: 30px;
    }
    .polls-grid {
        gap: 20px;
    }
    .poll-card {
        width: 100%;
    }
    .poll-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .polls-page-title {
        font-size: 24px;
    }
}

@media(max-width:653px) {
    .polls-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        align-items: center;
    }
}