.hp-box {
    border: 1px solid #ccc;
    background: #fff;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    border-radius: 5px;
}

.hp-box h3 {
    background: #1a3b6d;
    color: #fff;
    text-align: center;
    padding: 8px;
    margin: -20px -20px 15px -20px;
    border-radius: 5px 5px 0 0;
}

.hp-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.hp-table td {
    padding: 6px;
    border-bottom: 1px solid #eee;
}

.hp-total td {
    font-weight: bold;
    background: #f8f8f8;
}

.hp-qr-section {
    text-align: center;
    margin: 15px 0;
}

.hp-custom {
    text-align: center;
    margin-bottom: 15px;
}

.hp-btn-search, .hp-btn-generate {
    display: block;
    width: 100%;
    background: #1a3b6d;
    color: #fff;
    border: none;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 3px;
}

.hp-btn-search:hover, .hp-btn-generate:hover {
    background: #14305a;
}

/* QR Section Centering */
.hp-qr-section {
    width: 100%;
    display: block;
    margin: 20px 0;
    text-align: center !important;
}

.hp-qr-wrapper {
    display: inline-block;
    position: relative;
    text-align: center;
}

/* Spinner Container */
.hp-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: none;
    z-index: 2;
}

/* Spinner Circle */
.hp-spinner-circle {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(20, 48, 90, 0.2); /* Light version of #14305a */
    border-top: 4px solid #14305a; /* Solid Blue Spin */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Loading Text (NOT spinning) */
.hp-loading-text {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #14305a; /* Blue Text */
}

/* QR Image Styling */
.hp-qr-wrapper img {
    display: block;
    margin: 0 auto;
}

.hp-qr-wrapper img.loading {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Style Distrbition */
.hp-distribution-breakdown ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 5px;
}

.hp-distribution-breakdown li {
    margin-bottom: 3px;
}

/*Search Box Display */
.hp-search-table {
    border-collapse: collapse;
    width: 100%;
    border: none; /* No outer border */
}

.hp-search-table,
.hp-search-table th,
.hp-search-table td {
    border: none !important; /* Remove all borders */
}

.hp-search-table td {
    padding: 5px 8px;
    vertical-align: middle;
}

.hp-search-table input[type="text"] {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.hp-btn-search {
    padding: 9px 20px;
    font-size: 16px;
    white-space: nowrap;
    cursor: pointer;
}

/* Responsive: Stack vertically on tablets & mobile */
@media (max-width: 768px) {
    .hp-search-table, .hp-search-table tr, .hp-search-table td {
        display: block;
        width: 100%;
    }

    .hp-search-table td {
        margin-bottom: 10px;
        padding: 0;
    }

    .hp-search-table td label {
        display: block;
        margin-bottom: 4px;
        font-weight: bold;
    }

    .hp-btn-search {
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
    }
}