/* RESPONSIVE: simu na tablet ndogo */
@media (max-width: 768px) {
    .sh-header {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 8px 10px;
        gap: 4px;
    }

    .sh-header-left {
        width: 100%;
    }

    .sh-header-right {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 4px;
    }

    .sh-brand h1 {
        font-size: 16px;
    }

    .sh-header-right a {
        font-size: 12px;
        margin-left: 0;
        padding-right: 8px;
    }

    .sh-main {
        padding: 10px 6px 14px;
        max-width: 100%;
    }

    .sh-card {
        padding: 12px 10px;
        margin-bottom: 14px;
        box-shadow: 0 6px 16px rgba(0,0,0,0.10);
        overflow-x: auto; /* table ikizidi, scroll ndani ya card tu */
    }

    .sh-card h2 {
        font-size: 16px;
    }

    .sh-card p {
        font-size: 13px;
    }

    input[type=text],
    input[type=password],
    select {
        font-size: 13px;
        padding: 6px 5px;
    }

    table {
        font-size: 12px;
    }

    table th,
    table td {
        padding: 4px;
    }

    .btn {
        width: 100%;          /* buttons ziwe mstari mmoja kwenye simu */
        text-align: center;
        margin: 6px 0;
    }

    /* Collapsible header + icon ziboreshwe kwenye simu */
    .sh-collapse-toggle {
        padding: 4px 0 2px;
        font-size: 14px;
    }

    .sh-collapse-toggle .sh-collapse-icon {
        font-size: 14px;
    }
}

/* SUPER SMALL (max-width: 480px) */
@media (max-width: 480px) {
    .sh-header {
        padding: 6px 8px;
    }

    .sh-brand h1 {
        font-size: 14px;
    }

    .sh-main {
        padding: 8px 4px 10px;
    }

    .sh-card {
        padding: 10px 8px;
    }

    table {
        display: block;
        overflow-x: auto;   /* ruhusu kuscroll table pekee yake */
        white-space: nowrap;
    }
}

/* Collapsible card (Recent Results) */
.sh-card-collapsible {
    overflow: hidden; /* ili slide effect iwe safi */
}

.sh-collapse-toggle {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    margin: 0;
    font: inherit;
    cursor: pointer;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0 4px;
    color: #003366;
}

.sh-collapse-toggle .sh-collapse-icon {
    font-weight: bold;
    font-size: 16px;
}

.sh-collapse-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.sh-collapse-body.open {
    max-height: 600px; /* adjust ukitaka; inatosha kwa rows nyingi */
}