/* =============================================
   SNGPL Bill Checker - Plugin Styles
   ============================================= */

#sngpl-bill-wrap {
    max-width: 750px;
    margin: 30px auto;
    background: #fff;
    padding: 25px;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    box-sizing: border-box;
}

.sngpl-header {
    background-color: #0b6b9e;
    color: #fff;
    display: inline-block;
    padding: 12px 22px;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    border-radius: 3px;
}

#sngpl-error {
    color: #c0392b;
    font-weight: bold;
    text-align: center;
    margin-bottom: 12px;
    min-height: 20px;
}

.sngpl-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dcdcdc;
    margin-bottom: 20px;
}

.sngpl-table td {
    padding: 14px;
    border: 1px solid #dcdcdc;
    vertical-align: middle;
}

.sngpl-label {
    width: 35%;
    font-weight: bold;
    color: #333;
    font-size: 15px;
    white-space: nowrap;
}

.sngpl-star {
    color: red;
}

.sngpl-input {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    color: #555;
    border-radius: 3px;
}

.sngpl-captcha-wrap {
    text-align: center;
}

.sngpl-captcha-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 8px;
}

.sngpl-captcha-img {
    height: 50px;
    width: 185px;
    background: #e3e3e3;
    border: 1px solid #ccc;
}

.sngpl-refresh {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: #555;
    flex-shrink: 0;
}

.sngpl-captcha-note {
    color: red;
    font-weight: bold;
    font-size: 13px;
    margin: 6px 0;
}

.sngpl-mandatory {
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.sngpl-actions {
    text-align: center;
    margin-top: 18px;
}

.sngpl-btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 12px 38px;
    font-size: 15px;
    cursor: pointer;
    margin: 5px 5px;
    border-radius: 3px;
    transition: background 0.2s;
}

.sngpl-btn:hover {
    background-color: #555;
}

.sngpl-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

#sngpl-loading {
    display: inline-block;
    margin-left: 10px;
    font-size: 14px;
    color: #555;
}

/* ---- Modal ---- */
.sngpl-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72);
    z-index: 999999;
    overflow-y: auto;
    box-sizing: border-box;
}

.sngpl-modal-content {
    background: #fff;
    width: 92%;
    max-width: 920px;
    margin: 28px auto;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.sngpl-modal-header {
    background: #0b6b9e;
    color: #fff;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sngpl-modal-header h3 {
    margin: 0;
    font-size: 17px;
}

.sngpl-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

.sngpl-modal-body {
    width: 100%;
    height: calc(100vh - 110px);
    border: none;
    display: block;
}

/* =============================================
   Responsive / Mobile Styles
   ============================================= */

@media (max-width: 600px) {
    #sngpl-bill-wrap {
        padding: 15px 12px;
        margin: 10px auto;
    }

    .sngpl-header {
        font-size: 16px;
        padding: 10px 14px;
        display: block;
        text-align: center;
    }

    /* Stack table rows vertically on mobile */
    .sngpl-table,
    .sngpl-table tbody,
    .sngpl-table tr,
    .sngpl-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .sngpl-table tr {
        border-bottom: 2px solid #dcdcdc;
    }

    .sngpl-label {
        width: 100%;
        padding: 10px 14px 4px;
        border-bottom: none;
        font-size: 14px;
        white-space: normal;
    }

    .sngpl-table td:last-child {
        padding-top: 4px;
        padding-bottom: 12px;
    }

    .sngpl-input {
        font-size: 14px;
        padding: 10px 8px;
    }

    .sngpl-captcha-row {
        justify-content: flex-start;
    }

    .sngpl-captcha-img {
        width: 150px;
        height: 44px;
    }

    .sngpl-btn {
        width: 100%;
        margin: 6px 0;
        padding: 13px 10px;
        font-size: 15px;
    }

    .sngpl-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    #sngpl-loading {
        text-align: center;
        margin: 8px 0 0;
    }

    /* Modal on mobile: full screen */
    .sngpl-modal-content {
        width: 98%;
        margin: 10px auto;
    }

    .sngpl-modal-body {
        height: calc(100vh - 70px);
    }

    .sngpl-modal-header {
        padding: 10px 14px;
    }

    .sngpl-modal-header h3 {
        font-size: 14px;
    }
}