@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
/**
 * Style chung cho form của các short code : xemhuongnha, xemtuoixaynha
 * */

/* CSS Toggle Chuyển Âm lịch - Dương lịch :: Chuyển Giới tính : Nam Nữ*/
.bt-form-group .toggle-switch{display:flex;align-items:center;gap:10px;font-family:sans-serif}.bt-form-group .switch{position:relative;display:inline-block;width:50px;height:26px}.bt-form-group .switch input{opacity:0;width:0;height:0}.bt-form-group .slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:0.4s;border-radius:34px}.bt-form-group .slider:before{position:absolute;content:"";height:20px;width:20px;left:4px;bottom:3px;background-color:white;transition:0.4s;border-radius:50%}.bt-form-group .switch input:checked + .slider{background-color:#2196F3}.bt-form-group .switch input:checked + .slider:before{transform:translateX(24px)}.bt-form-group .calendar-option{font-weight:bold;margin-left:10px;opacity:0;transition:opacity 0.3s ease;visibility:hidden}.bt-form-group .calendar-option.active{opacity:1;visibility:visible}.bt-form-group .gender-toggle{display:flex;align-items:center;gap:10px;font-family:sans-serif}.bt-form-group .gender-switch{position:relative;display:inline-block;width:50px;height:26px}.bt-form-group .gender-switch input{opacity:0;width:0;height:0}.bt-form-group .gender-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:0.4s;border-radius:34px}.bt-form-group .gender-slider:before{position:absolute;content:"";height:20px;width:20px;left:4px;bottom:3px;background-color:white;transition:0.4s;border-radius:50%}.bt-form-group .gender-switch input:checked + .gender-slider{background-color:#2196F3}.bt-form-group .gender-switch input:checked + .gender-slider:before{transform:translateX(24px)}.bt-form-group .gender-option{font-weight:bold;margin-left:10px;opacity:0;transition:opacity 0.3s ease;visibility:hidden}.bt-form-group .gender-option.active{opacity:1;visibility:visible}
/* CSS Toggle Chuyển Âm lịch - Dương lịch :: Chuyển Giới tính : Nam Nữ*/

.batTrachCanvas_process canvas{
    /*max-width: 100%;*/
    /*height: auto;*/
}
/*Class div ngoài form */
.tpl_shortcode{

}
.tpl_shortcode.xemhuongnha{

}
/* class form */
.tpl_form{
    display: flex;
    flex-direction: column;
    width: 100%;
    flex-wrap: wrap;
    gap: 20px;
}
.tpl_form{
    /*width: 40%;*/
}
.tpl_form input,
.tpl_form select,
.tpl_form input:focus,
.tpl_form select:focus{
    box-shadow: none;
    outline: none;
}

.tpl_form .bt-flex-row{
  display: flex;
  gap: 10px;
  flex-direction: row;
  /*justify-content: space-between;*/
}
.tpl_form .bt-flex-row.col50 > div{
    width: 45%;
}
.tpl_form .bt-flex-row.col33 > div{
    width: 30% !important;
}
.tpl_form .bt-flex-row.col4 > div{
    width: 24%;
}
.bt-xemtuoixaynha .row-year > div{
    width: 100% !important;
}
/* class trả về kết quả của shortcode */
.tpl_result{

}
.bt-form-group input[type=radio],
.bt-form-group input[type=checkbox]{ 
     display: none !important; 
}

.bt-xemhuongnha {
    /*max-width: 600px;*/
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.bt-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bt-form-group label {
    font-weight: bold;
}

.bt-form-group input[type="number"],
.bt-form-group select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 200px;
}

.bt-submit {
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.bt-submit:hover {
    background-color: #005177;
}

.bt-result {
    margin-top: 20px;
}

.bt-error {
    color: #d63638;
    font-weight: bold;
}

/**
 * style kết quả xem hướng nhà
 * */
.xemhuongnha-result .thongtin-giachu{
    display: flex;
    flex-direction: column;
}
.xemhuongnha-result .thongtin-giachu .item{
    display: flex;
    flex-direction: row;
    /*justify-content: space-between;*/
    /*gap: 10px;*/
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}
.xemhuongnha-result .thongtin-giachu .item .item-label{
    min-width: 300px;
}

@media (max-width: 480px){
    .tpl_form .bt-flex-row.col4{flex-wrap: wrap}
    .tpl_form .bt-flex-row.col4 > div{width: 48%}
    .bt-xemtuoixaynha .row-year > div{width: 100%}
}
.bt-xaynha-output .item{
    margin: 1rem 0;
    padding: 1rem 0;
    border-bottom: 1px dashed #f5f5f5;
}
/* .bt-xaynha-output .item{display:flex;flex-wrap:wrap;align-items:center;gap:6px} */
.bt-xaynha-output .section-head{display:flex;align-items:center;gap:8px}
.bt-xaynha-output .section-title{display:inline-block;font-weight:700;white-space:nowrap}
.bt-xaynha-output .bt-bullet{display:inline-block;width:10px;height:10px;border-radius:50%;vertical-align:middle;animation:btPulse 1.8s ease-in-out infinite}
@keyframes btPulse{
  0%{box-shadow:0 0 0px currentColor,0 0 0px currentColor;opacity:.85}
  50%{box-shadow:0 0 6px currentColor,0 0 14px rgba(0,0,0,.12);opacity:1}
  100%{box-shadow:0 0 0px currentColor,0 0 0px currentColor;opacity:.85}
}
.bt-xaynha-intro{margin-bottom:12px}
.bt-guide-actions{display:flex;justify-content:flex-end;margin-bottom:10px}
.bt-btn-guide{padding:6px 10px;border:1px solid #ddd;background:#fff;border-radius:4px;cursor:pointer}
.bt-guide-modal{position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:9999;opacity:0;pointer-events:none;transition:opacity .2s ease}
.bt-guide-modal.open{opacity:1;pointer-events:auto}
.bt-guide-modal .inner{background:#fff;max-width:640px;width:90%;padding:16px;border-radius:8px;max-height:80vh;overflow:auto}
.bt-guide-close{margin-top:10px;display:inline-block;padding:6px 10px;border:1px solid #ddd;background:#fff;border-radius:4px;cursor:pointer}

.bt-loading-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: fit-content;
    margin: 20px auto;
}

/* Spinner styling */
.bt-loading {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid #3498db; /* Primary color: blue */
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-radius: 50%;
    animation: bt-spin .7s linear infinite;
}

/* Keyframes for the spinning animation */
@keyframes bt-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#tooltip {
    position: absolute;
    /*background: rgba(0, 0, 0, 0.85);*/
    background: #FFF;
    color: #2D2A2E;
    padding: 8px 12px;
    border-radius: 3px;
    font-size: 14px;
    display: none;
    pointer-events: none;
    white-space: nowrap;
    /*border: 1px solid #0ff;*/
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}


/* css bổ sung  */

.short_meaning{
    background: orange;
    padding: 0.2rem 1rem;
    color: white;
}

.item.que_menh .item-value,
.item.menh_trach .item-value {
    background: linear-gradient(45deg, #ff6b6b, #f06595, #845ec2, #4ea8de, #56cfe1);
    background-size: 300% 300%;
  animation: gradient 8s ease infinite;
    padding: 0.3rem 1rem;
    border-radius: 2px;
    color: white;
    text-transform: uppercase;
}
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.bt-submit {
    background: radial-gradient(circle, #ff6a95, #f8b400, #06beb6, #00d4ff);
    background-size: 100% 100%;
    animation: breathing-gradient 6s ease-in-out infinite;
}
@keyframes breathing-gradient {
    0%, 100% { background-size: 100% 100%; }
    50% { background-size: 200% 200%; }
}
.xemhuongnha-result .thongtin-giachu .item{
    align-items: center;
}
@media only screen and (max-width:468px){
    .xemhuongnha-result .thongtin-giachu .item{
        display: flex;
        flex-direction: column;
        justify-content: center !important;
        align-items: flex-start;
        width: 100%;
    }
    .xemhuongnha-result .thongtin-giachu .item *{
        width: 100%;
    }
    .bt-flex-row{
        justify-content: space-between;
    }
    .bt-form-group .toggle-switch{
        font-size: .9rem;
    }

    .tpl_result ul{
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .tpl_result ul li{
        padding: 0;
        margin: 0;
    }
    .short_meaning{
        display: block;
    }
}

.batTrachCanvas_process {
/*   display: block; */
  position: relative;
    z-index: 0;
}
#tooltip {
/*   z-index: 9999; */
/*  width: 400px; */
    position: absolute;
    background-color: #2D2A2E;
    color: #fff;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    max-width: 400px;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    z-index: 1000;
    pointer-events: none;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    font-size: 1rem;
    padding-top: 25px;
}
#tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    right: 10px;
    width: 28px;
    height: 28px;
    background-image: url('https://cdn-icons-png.flaticon.com/512/3982/3982361.png');
    background-size: contain;
    background-repeat: no-repeat;
}
