﻿/* General page overrides */
body {
    background-color: #f8f9fa;
    font-family: system-ui, sans-serif;
    color: #212529;
}

/* Banner with max-height shrink */
.banner img {
    display: block;
    max-height: 40vh;
    width: auto;
    margin: 0 auto;
    transition: max-height 0.8s ease-in-out;
}

.banner.shrink img {
    max-height: 25vh;
}

/* Search input */
.input-group .form-control {
    border-radius: 0.375rem;
}

.input-group-text {
    background-color: #e9ecef;
    border-radius: 0.375rem;
}

/* Clear button styling */
#clearBtn {
    padding: 0 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
}

/* Results list */
#resultsList {
    margin-top: 1rem;
}

.card {
    cursor: pointer;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

    .card .fw-bold {
        font-weight: 600;
    }

    .card .text-muted {
        font-size: 0.9rem;
        color: #495057;
    }

/* Modal overrides */
.modal-content {
    border-radius: 0.5rem;
}

.modal-header {
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}

/* Voter details inside modal */
.voter-details h2 {
    margin-top: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}

.voter-details p {
    margin: 0.4rem 0;
    font-size: 0.95rem;
    color: #343a40;
}

/* Mobile input + error */
#mobileInput {
    margin-top: 0.75rem;
}

#mobileError {
    color: #dc3545;
    font-size: 0.85rem;
    display: none;
    margin-top: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .card {
        padding: 0.75rem;
    }

    .modal-footer {
        flex-direction: column;
    }

        .modal-footer .btn {
            width: 100%;
        }
}
