.vote-counter-frontend {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

.vote-counter-frontend h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 300;
}

.constituency-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.constituency-header {
    background: linear-gradient(135deg, #242c3575 0%, #eddc32 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.constituency-header h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
}

.constituency-header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 1.1em;
}

.vc-no-candidates {
    padding: 40px;
    text-align: center;
    color: #666;
}

.vc-no-candidates p {
    font-size: 1.2em;
    margin: 0;
}

.candidates-table {
    padding: 0;
}

.candidate-row {
    background: #fff;
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
    display: grid;
    grid-template-columns: 80px 1fr 120px;
    gap: 15px;
    align-items: center;
    transition: all 0.2s ease;
}

.candidate-row.top-candidate {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
}

.candidate-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.candidate-logo img {
    max-width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    margin-bottom: 0;
}

.vc-no-logo {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.8em;
    text-align: center;
}

.candidate-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    word-wrap: break-word;
    max-width: 200px;
}

.vc-party-name {
    display: block;
    color: #6c757d;
    font-weight: 400;
    font-size: 0.9em;
    margin-bottom: 2px;
}

.vc-leading-badge {
    background: #ffc107;
    color: #000;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.candidate-votes {
    text-align: center;
}

.vote-count {
    font-size: 1.8em;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 5px;
}

.vote-label {
    font-size: 0.8em;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vc-candidate-divider {
    line-height: 0;
    overflow: hidden;
}

.vc-candidate-divider img {
    width: 100%;
    height: auto;
    display: block;
}

 .constituency-header img {
    width: 130px;
    padding: 10px;
    margin: 0 !important;
}
.constituency-header {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.constituency-header p {
    margin: 0 !important;
}

/* Tablet */
@media (max-width: 768px) {

 .candidate-name { 
    max-width: 150px;
}
    .vote-counter-frontend h1 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .constituency-header h2 {
        font-size: 1.5em;
    }

    .candidate-row {
        grid-template-columns: 70px 1fr 100px;
        gap: 12px;
    }

      .candidate-logo img {
        max-width: 56px;
        height: 56px;
    }

    .candidates-table img {
        margin-bottom: 0 !important;
    }
     .candidate-row { 
        padding: 4px;
    }
    .constituency-header p { margin:0;}
}

/* Mobile */
@media (max-width: 480px) {
    .vote-counter-frontend h1 {
        font-size: 1.5em;
        margin-bottom: 16px;
    }

    .constituency-header {
        padding: 0px 12px;
    }

    .constituency-header h2 {
        font-size: 1.2em;
    }

    .constituency-header p {
        font-size: 0.9em;
    }

    .candidate-row {
        grid-template-columns: 56px 1fr 80px;
        gap: 8px;
        padding: 8px;
    }

  

    .vc-no-logo {
        width: 44px;
        height: 44px;
        font-size: 0.7em;
    }

    .candidate-name {
        font-size: 1em;
        max-width: 100%;
    }

    .vc-leading-badge {
        display: inline-block;
        margin-left: 0;
        margin-top: 4px;
    }

    .vote-count {
        font-size: 1.4em;
    }

    .vote-label {
        font-size: 0.75em;
    }

    .vc-no-candidates {
        padding: 24px 12px;
    }
}
