body{
    font-family:Arial,sans-serif;
    background:#f4f6fa;
    margin:0;
    padding:30px;
}

.container{
    max-width:1000px;
    margin:auto;
}

h1{
    color:#1e3a8a;
}

.search-box{
    background:white;
    padding:20px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
}

input{
    width:100%;
    box-sizing:border-box;
    margin-bottom:10px;
    padding:12px;
    border:1px solid #ccc;
    border-radius:8px;
    font-size:16px;
}

button{
    background:#2563eb;
    color:white;
    border:none;
    padding:12px 20px;
    border-radius:8px;
    cursor:pointer;
}

.card{
    margin-top:20px;
    background:white;
    padding:20px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
}

.title{
    font-size:28px;
    font-weight:bold;
    color:#1e3a8a;
    margin-bottom:20px;
}

table{
    width:100%;
    border-collapse:collapse;
}

td{
    padding:10px;
    border-bottom:1px solid #eee;
}

.pdf-btn{
    display:inline-block;
    padding:10px 15px;
    background:#dc2626;
    color:white;
    text-decoration:none;
    border-radius:8px;
}

.notfound{
    margin-top:20px;
    background:#fff0f0;
    color:#b00020;
    padding:20px;
    border-radius:10px;
}

.loading{
    margin-top:20px;
    background:#fff8db;
    padding:20px;
    border-radius:10px;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:15px;
}

.stat-box{
    background:#eef3ff;
    padding:15px;
    border-radius:10px;
    text-align:center;
}

.stat-value{
    font-size:32px;
    font-weight:bold;
    color:#2563eb;
}

.party-row{
    margin-top:12px;
}

.bar{
    height:22px;
    background:#ddd;
    border-radius:20px;
    overflow:hidden;
}

.fill{
    height:100%;
    background:#2563eb;
}

.votes{
    text-align:right;
    font-weight:bold;
}

.date-picker{
    display:grid;
    grid-template-columns:
        1fr
        1fr
        1fr;
    gap:10px;
    margin-bottom:15px;
}

.date-picker select{

    width:100%;

    padding:12px;

    border:1px solid #d1d5db;

    border-radius:8px;

    font-size:16px;

    background:white;

    cursor:pointer;

    transition:.2s;
}

.date-picker select:hover{

    border-color:#2563eb;
}

.date-picker select:focus{

    outline:none;

    border-color:#2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37,99,235,.15);
}

.date-picker option{

    font-size:16px;
}

.date-label{

    display:block;

    margin-bottom:8px;

    font-weight:bold;

    color:#1e3a8a;
}