body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif; 
    text-align: center;
    background: white;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif; 
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; 
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.content {
        padding: 10px 0px;
        flex: 1;
}

.wrap-noidung {
    flex: 1;
    width: 1000px;
    margin: 0 auto;
    padding: 10px 20px;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    color: Black;
    text-align: center;
    padding: 15px 0;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
}


.footer h1 {
    font-weight: bold;
    color: Black;
    font-size: 15px;
    display: block;
}

.header h1 {
    font-family: "Segoe UI Black", sans-serif;
    font-weight: bold;
    color: #FF6B35;
    font-size: 28px;
}

.h2 {
    font-weight: bold;
    color: black;
    font-size: 25px;
    margin-bottom: 0;
}

.h3 {
    font-weight: bold;
    color: black;
    font-size: 20px;
}

body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;   
    height: 600px;
    background: url('../image/logo.png') no-repeat center; 
    background-size: contain;
    opacity: 0.02;      
    transform: translate(-50%, -50%);
    z-index: 0;         
    pointer-events: none; 
}
.rs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 15px;
  background: #fff;
}
.rs-table th, .rs-table td {
  border: 1px solid #ccc;
  padding: 6px 8px;
  text-align: center;
}
.rs-table th {
  background: #ff6b35;
  color: #fff;
}
.rs-table tr:nth-child(even) {
  background: #f8f8f8;
}

@media only screen and (max-width: 600px) {
    
    body::before {
        width: 400px;
        height: 400px;
    }
    
    .header {
        height: 70px;
    }
    .header h1 {
        font-size: 16px;
    }

    .h2 {
        width: 90%;
    }

    .h3 {
        width: 90%;
    }
    
    .logo {
        width: 30px;
        height: auto;
        padding: 10px;
    }

}


.logo {
    width: 30px;
    height: auto;
    padding: 10px;
}


#content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 10px;
    box-sizing: border-box;
}

#gplx-wrap {
    width: 100%;
    max-width: 520px;
}

#frm-gplx {
    display: grid;
    gap: 12px;
    background: #fff; 
    padding: 16px;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
    position: relative;
    z-index: 1; 
}

#frm-gplx .row {
    display: grid;
    grid-template-columns: 120px 1fr auto auto;
    gap: 8px;
    align-items: center;
}

#frm-gplx .row.cccd-row {
    grid-template-columns: 120px 1fr;
}

#frm-gplx .row.captcha-row {
    display: grid;
    grid-template-columns: 120px 190px minmax(90px, auto) auto;
    gap: 8px;
    align-items: center;
}

@media (max-width: 600px) {
    #frm-gplx {
       box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
    }

    #frm-gplx .row.cccd-row {
        grid-template-columns: 90px 1fr;
        font-size: 15px;
    }

    #frm-gplx .row.captcha-row {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 15px;
    }

    #frm-gplx .row.captcha-row label {
        flex: 0 0 90px; 
        font-size: 15px;
    }

    #frm-gplx .row.captcha-row input {
        flex: 1; 
        min-width: 70px;
    }

    #capbox {
        flex: 0 0 100px; 
        text-align: center;
        font-size: 14px;
    }

    #reload {
        flex: 0 0 36px; 
        padding: 0;
    }
}

#frm-gplx select {
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0 10px;
    outline: none;
    background: #fff;
    font-size: 16px;
}
#frm-gplx select:focus {
    border-color: #007bff;
}


#frm-gplx label {
    font-weight: 600;
    text-align: left;
}

#frm-gplx input {
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0 10px;
    outline: none;
    font-size: 16px;
}

#reload {
    height: 38px;
    border: 1px solid #ddd;
    background: #fafafa;
    border-radius: 10px;
    padding: 0 12px;
    width: 40px;
    cursor: pointer;
}

#btn-check {
    height: 42px;
    border: 0;
    background: #FF6B35;
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    width: 97%;
    font-size: 15px;
}

#frm-gplx .row.captcha-row {
    display: grid;
    grid-template-columns: 120px 1fr 100px 50px; 
    gap: 8px;
    align-items: center;
}

#frm-gplx .row.captcha-row input {
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0 10px;
    font-size: 15px;
}

#capbox {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 38px;
    background: #f5f5f5;
    border-radius: 10px;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 2px;
}

#reload {
    height: 38px;
    width: 38px;
    border: none;
    border-radius: 10px;
    background: #eee;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
}

#reload:hover {
    background: #ddd;
}

#result.panel{
    background:#fff;
    position:relative;
    z-index:1;
}

#result .panel-hd,
#result .panel-bd{
    background:#fff;
}

#rsStatus.ok {
  background: #e6ffed;
  border: 1px solid #28a745;
  color: #155724;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

#rsStatus.no {
  background: #ffe6e6;
  border: 1px solid #dc3545;
  color: #721c24;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-align: center;
}
#rsStatus b {
  display: inline-block;
  width: 90px; 
  color: #333;
}

#view-counter {
position: fixed;
    right: 15px;
    bottom: 15px;
    color: #c4b7b7;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    display: flex
;
    align-items: center;
    z-index: 9999;
}
#view-counter i {
  margin-right: 6px;
}


.panel {
    margin-top: 16px;
    overflow: hidden;
}

.panel-hd {
    padding: 12px 16px;
    background: #f9fafb;
    font-weight: 700;
}

.panel-bd {
    padding: 0px;
}

.rs-status {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    display: inline-block;
}
#captcha {
    text-transform: uppercase;
}
.ok {
    color: #0a7a2f;
    background: #e8f8ee;
}

.no {
    color: #8a1020;
    background: #ffecef;
}

.hidden {
    display: none;
}
.badge {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f7f7f8;
    font-weight: 700;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif; 
}

.badge.block {
    display: block;
    text-align: left;
    white-space: pre-line;
}

.badge.ok {
    color: #0a7a2f;
    background: #e8f8ee;
    border-color: #bfead1;
}

.badge.no {
    color: #8a1020;
    background: #ffecef;
    border-color: #ffd0d8;
}

