body {
    background: #f8f9fa;
    padding-top: 80px;
}
.tool-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.dropdown-item-c {
    display: inline-flex;
    width: 100%;
    padding: .25rem;
    clear: both;
    font-weight: 400;
    color: #fff;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    align-items: center;
    font-size: 14px;
}
.dropdown-item-c:hover{
    color: #fff;
    background-color: rgba(0, 0, 0, 0.404);
}

.bi {
    padding: 0 !important;
    margin: 0 !important;
}



.dropdown-menu.show {
    left: -200px;
}

img {
    max-width: 100%;
}

/* กรอบปุ่มเลือกสไตล์ QR */
.Qrtt {
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.Qrtt:hover {
    border-color: #999;
    transform: scale(1.05);
}

.Qrtt.a {
    border-color: #3500f7 !important;
    background-color: #f0f4ff;
    border-radius: 10px;
}

.bu-qr-a {
    background: none;
    border: none;
    cursor: pointer;
}


/* ปุ่มสลับโหมด active */
#-Qr-button-a.active,
#-Qr-button-b.active {
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    transform: scale(1.05);
}

/* textarea ให้ดูสวย */
#-Qr-text {
    resize: none;
    font-size: 0.95rem;
}

/* ช่องกรอก input */
.form-control:focus,
.form-select:focus {
    border-color: #3500f7;
    box-shadow: 0 0 0 0.2rem rgba(53, 0, 247, 0.25);
}


.Bl {
    position: relative;
    display: inline-block;
}

.Bl span {
    position: absolute;
}


html, body {
            height: 100%;
}
body {
    display: flex;
    flex-direction: column;
}
main {
    flex: 1 0 auto;
}
footer {
    flex-shrink: 0;
}

.atat {
    text-decoration: none !important;
    color: #000;
}
.atat:hover {
    color: #000;
}

.tt-form { max-width:720px; margin:0 auto; }
.tt-result { margin-top:1rem; }
.tt-card { border-radius:12px; overflow:hidden; box-shadow:0 6px 18px rgba(0,0,0,0.08); }
.tt-bg { background-size:cover; background-position:center; min-height:300px; }
.tt-meta { padding:12px; display:flex; gap:12px; align-items:center; }
.tt-avatar { width:64px; height:64px; border-radius:50%; object-fit:cover; }
.tt-desc { white-space:pre-wrap; }
.hidden { display:none !important; }



