.prm-vote-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    animation: prm-slide-in-right 0.3s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow: hidden;
}

.prm-vote-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    color: #155724;
}

.prm-vote-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.prm-vote-message.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    color: #856404;
}

.prm-vote-message.info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.prm-vote-message-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 14px;
}

.prm-vote-message-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.prm-vote-message-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
}

.prm-vote-message-close {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
    opacity: 0.8;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 10;
    pointer-events: auto;
}

.prm-vote-message-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.prm-vote-message-close:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0,123,255,0.3);
    color: white;
}

.prm-vote-message-close:hover::before {
    opacity: 1;
}

.prm-vote-message-close span {
    position: relative;
    z-index: 1;
    font-weight: 600;
}

@keyframes prm-slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.prm-vote-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.prm-vote-btn.btn-secondary,
.prm-vote-button.btn-secondary {
  pointer-events: auto !important;
  opacity: 1 !important;
  cursor: pointer !important;
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
  border-color: #6c757d !important;
  color: white !important;
}

.prm-vote-btn.btn-secondary:hover,
.prm-vote-button.btn-secondary:hover {
  background: linear-gradient(135deg, #5a6268 0%, #343a40 100%) !important;
  transform: none !important;
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3) !important;
}

.prm-filter-container {
    background: linear-gradient(268deg, #032f62ab 0%, #00000000 100%);
    border-radius: 12px;
    padding: 20px 0 0 0;
    margin-bottom: 25px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: none;
    margin-bottom: 0 !important;
}

.prm-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prm-filter-btn {
    border-radius: 20px;
    font-weight: 600;
    padding: 8px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid;
    min-width: 80px;
}

.prm-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.prm-filter-btn.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: #fff;
    color: white !important;
}

.prm-filter-btn.btn-outline-primary {
    background: transparent;
    border-color: #007bff;
    color: #007bff;
}

.prm-filter-btn.btn-outline-primary:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: #007bff;
    color: white;
}

.prm-search-input-group {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
}

.prm-search-input {
    background: white;
    font-size: 17px !important;
    height: 46px !important;
    border-radius: 15px 0 0 15px !important;
    border: none !important;
    padding: 12px 20px !important;
}

.prm-search-input:focus {
    box-shadow: none;
    border-color: #007bff;
    background: white;
}

.prm-search-button {
    border: none;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 10px 20px !important;
    border-radius: 0 25px 25px 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.prm-search-button:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    color: white;
    transform: translateX(2px);
}

.prm-search-results-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #bee5eb !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    padding: 5px 10px 0px 10px !important;
    display: flex;
    align-items: center;
    gap: 5px;
}
.prm-search-results-info.mb-3{
    margin: 5px 0 5px !important;
    padding: 5px 10px 0px 10px !important;
}
.prm-search-results-info button{
    background-color: #a98a53;
    color: #fff;
    border: none;
}
.prm-search-results-info i {
    font-size: 18px;
    color: #17a2b8;
}
.prm-no-results {
    padding: 40px 20px;
}
.prm-no-results .alert {
    background: linear-gradient(135deg, #fff3cd54 0%, #ffeaa700 100%);
    border: 1px solid #fff3cd54;
    border-radius: 12px;
    color: #fff;
}
.section .section-content .col-inner .prm-no-results p {
    text-align: center;
}
.prm-no-results i {
    font-size: 24px;
    color: #ffc107;
    margin-right: 10px;
}

.prm-top3-chart-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.08);
    margin: 20px 0;
}

.prm-top3-chart-header {
    text-align: center;
    margin-bottom: 20px;
}

.prm-top3-chart-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.prm-top3-chart-wrapper {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

.prm-top3-chart-canvas {
    max-width: 100%;
    height: auto !important;
    border-radius: 8px;
}

.prm-top3-chart-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.prm-top3-chart-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 16px;
}

.prm-top3-chart-loading p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.prm-vote-message.centered {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    z-index: 9999;
    max-width: 560px;
    min-width: 360px;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.25),
        0 8px 32px rgba(0,0,0,0.15),
        0 4px 16px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    animation: prm-fade-in-scale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.prm-vote-message.centered .prm-vote-message-content {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 16px;
    position: relative;
}

.prm-vote-message.centered .prm-vote-message-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    animation: iconBounce 0.6s ease-out 0.2s both;
}

@keyframes iconBounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-8px,0);
    }
    70% {
        transform: translate3d(0,-4px,0);
    }
    90% {
        transform: translate3d(0,-2px,0);
    }
}

.prm-vote-message.centered .prm-vote-message-text {
    flex: 1;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: -0.01em;
    text-align: center;
    animation: textSlideIn 0.5s ease-out 0.3s both;
}

@keyframes textSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.prm-vote-message.centered .prm-vote-message-close {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 20px;
    cursor: pointer;
    color: #6c757d;
    opacity: 0.8;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: closeButtonFadeIn 0.5s ease-out 0.4s both;
    z-index: 10;
    pointer-events: auto;
    margin: 0;
}

@keyframes closeButtonFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 0.8;
        transform: scale(1);
    }
}

.prm-vote-message.centered .prm-vote-message-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.prm-vote-message.centered .prm-vote-message-close:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,123,255,0.3);
    color: white;
}

.prm-vote-message.centered .prm-vote-message-close:hover::before {
    opacity: 1;
}

.prm-vote-message.centered .prm-vote-message-close span {
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.prm-vote-message.centered.success { 
    border-left: 8px solid #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #f8fff9 100%);
}

.prm-vote-message.centered.error { 
    border-left: 8px solid #dc3545;
    background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
}

.prm-vote-message.centered.warning { 
    border-left: 8px solid #ffc107;
    background: linear-gradient(135deg, #ffffff 0%, #fffef8 100%);
}

.prm-vote-message.centered.info { 
    border-left: 8px solid #17a2b8;
    background: linear-gradient(135deg, #ffffff 0%, #f8fdff 100%);
}

.prm-voting-status-inline {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid rgba(0,0,0,0.08);
    border-radius: 0 0 20px 20px;
    padding: 15px 15px 10px 15px;
    margin: 0;
    font-size: 15px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    animation: statusSlideUp 0.6s ease-out 0.5s both;
}

@keyframes statusSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prm-voting-status-inline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}

.prm-voting-status-inline h4 {
    color: #495057;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px 0;
}

.prm-voting-status-inline h4::before {
    display: none;
    content: '🗳️';
    font-size: 20px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 10px 0;
    /*border-bottom: 1px solid rgba(0,0,0,0.06);*/
    transition: all 0.2s ease;
}

.status-item:hover {
    background: rgba(255,255,255,0.5);
    border-radius: 8px;
    padding-left: 12px;
    padding-right: 12px;
    margin-left: -12px;
    margin-right: -12px;
}

.status-item:last-child { 
    border-bottom: none; 
}

.status-label {
    color: #333;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: normal;
}

.status-value { 
    color: #1976d2;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: normal;
}

.text-success { 
    color: #28a745 !important; 
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(40,167,69,0.1);
}

.text-danger { 
    color: #dc3545 !important; 
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(220,53,69,0.1);
}

@keyframes prm-fade-in-scale {
    from { 
        opacity: 0; 
        transform: translate(-50%, -60%) scale(0.9);
    }
    to { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1);
    }
}

@media (max-width: 600px) {
    .prm-vote-message.centered {
        min-width: 92vw;
        max-width: 96vw;
        padding: 0;
        border-radius: 16px;
    }
    
    .prm-vote-message-content, 
    .prm-voting-status-inline {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .prm-vote-message-text {
        font-size: 16px;
    }
    
    .prm-vote-message-icon {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
    
    .prm-vote-message-close {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .prm-top3-chart-container {
        padding: 16px;
        margin: 15px 0;
    }
    
    .prm-top3-chart-wrapper {
        height: 250px;
    }
    
    .prm-filter-container {
        padding: 15px;
    }
    
    .prm-filter-buttons {
        justify-content: center;
    }
    
    .prm-search-input-group {
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .prm-vote-message.centered {
        min-width: 94vw;
        max-width: 98vw;
        border-radius: 12px;
    }
    
    .prm-vote-message-content, 
    .prm-voting-status-inline {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .prm-vote-message-text {
        font-size: 15px;
    }
    
    .prm-voting-status-inline h4 {
        font-size: 16px;
    }
    
    .prm-top3-chart-container {
        padding: 12px;
    }
    
    .prm-top3-chart-wrapper {
        height: 200px;
    }
    
    .prm-top3-chart-header h3 {
        font-size: 1.3rem;
    }
    
    .prm-filter-container {
        padding: 12px;
    }
    
    .prm-filter-btn {
        padding: 6px 16px;
        font-size: 14px;
        min-width: 70px;
    }
}

.prm-vote-message.centered:hover {
    transform: translate(-50%, -50%) scale(1.02);
    box-shadow: 
        0 25px 80px rgba(0,0,0,0.3),
        0 12px 40px rgba(0,0,0,0.2),
        0 6px 20px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-item {
    animation: slideInFromRight 0.3s ease-out;
    animation-fill-mode: both;
}

.status-item:nth-child(1) { animation-delay: 0.6s; }
.status-item:nth-child(2) { animation-delay: 0.7s; }
.status-item:nth-child(3) { animation-delay: 0.8s; }
.status-item:nth-child(4) { animation-delay: 0.9s; }
.status-item:nth-child(5) { animation-delay: 1.0s; }

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.prm-vote-message-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.prm-vote-message-close:active::after {
    width: 100%;
    height: 100%;
}

.prm-voting-status-inline::-webkit-scrollbar {
    width: 6px;
}

.prm-voting-status-inline::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 3px;
}

.prm-voting-status-inline::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.prm-voting-status-inline::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
}

.prm-vote-message.centered.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107, #dc3545);
    background-size: 200% 100%;
    animation: loadingBar 2s linear infinite;
    z-index: 1;
}

@keyframes loadingBar {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.prm-vote-message-icon.pulse {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.prm-vote-message-close:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
    .prm-vote-message.centered {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        color: #ecf0f1;
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .prm-vote-message-text {
        color: #ecf0f1;
    }
    
    .prm-voting-status-inline {
        background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
        color: #ecf0f1;
    }
    
    .status-label {
        color: #bdc3c7;
    }
    
    .status-value {
        color: #ecf0f1;
    }
    
    .prm-top3-chart-container {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        color: #ecf0f1;
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .prm-top3-chart-header h3 {
        color: #ecf0f1;
    }
    
    .prm-filter-container {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .prm-search-input {
        background: #34495e;
        color: #ecf0f1;
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .prm-search-input::placeholder {
        color: #bdc3c7;
    }
}
@media (max-width: 449px) {
    .prm-vote-message.centered .prm-vote-message-text {
        font-size: 17px;
    }
}
@media (max-width: 414px) {
    .prm-vote-message.centered .prm-vote-message-text {
        font-size: 15px;
    }
}
@media (max-width: 375px){
    .prm-vote-message.centered .prm-vote-message-text{
        font-size: 16px;
    }
    .status-label, .status-value{
        font-size: 14px;
    }
}
@media (max-width: 360px){
    .status-label, .status-value{
        font-size: 13px;
    }
}
@media (max-width: 320px){
    .prm-vote-message.centered .prm-vote-message-text{
        font-size: 14px;
    }
    .status-label, .status-value{
        font-size: 12px;
    }
}
