﻿
:root {
    --primary: #0038C6;
    --color-primary: #0038C6;
    --color-primary-5: #0038c60d;
    --color-secondary: #26A9E0;
    --color-secondary-2: #A8DDF3;
    --color-secondary-3: #F0F8FF;
    --color-green: #02bb62;
    --color-third: #E6E7E8;
    --color-white: #ffffff;
    --bar-color-blue: #049ed3;
    --bar-color-green: #37bd9e;
    --bar-color-yellow: #e7b42a;
    --bar-color-orange: #ee8a3e;
    --bar-color-red: #f75755;
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-border-color: #888484;
    --bs-btn-disabled-bg: #888484;
    --bs-btn-hover-border-color: #0038C6;
    --bs-btn-hover-bg: #0038C6;
    --bs-btn-hover-color: #ffffff;
    --ion-font-size-3x: 18px;
    --ion-font-size-2x: 16px;
    --ion-font-size: 14px;
    --ion-font-size-xs: 12px;
    --ion-font-size-2xs: 11px;
    --box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
    --text-green: #009c41;
    --gray-25: #acadae;
    --gray-50: #737374;
    --gray-75: #39393a;
    --white: #ffffff;
    --shadow-soft: 0 2px 12px rgba(0, 56, 198, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 56, 198, 0.12);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --yellow: #f9ce19;
    --yellow-25: #fada53;
    --yellow-50: #fce68c;
    --yellow-75: #fef3c6;
}

html, body {
    height: 100%;
    font-size: 12px;
}

body {
    font-family: "Maven Pro","IBM Plex Sans Thai", sans-serif;
}

.color-primary {
    color: var(--color-primary);
}

.color-secondary {
    color: var(--color-secondary);
}

.color-secondary-2 {
    color: var(--color-secondary-2);
}

.color-green {
    color: var(--color-green);
}

.btn-primary, .btn-secondary, .btn-danger {
    border-radius: 18px;
    min-width: 80px;
}

.btn-primary {
    background: var(--color-primary);
}

.btn-block {
    width: 100%;
}


.header {
}

.container.top {
    padding-bottom: 50px;
}

.container {
    padding: 15px;
    max-width: 450px;
    min-width: 350px;
}

.bg-shadow {
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.radius {
    border-radius: 14px;
}

.container-border {
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    padding-bottom: 0;
}

a:hover, a:active {
    text-decoration: none;
    color: #ffffff !important;
}


.boxinfo img.qr {
    margin-top: 8px;
    width: 80%;
}

#boxVerify .tab-pane {
    padding: 20px 10px;
    min-height: 250px;
}

#boxVerify .img-barcode {
    height: 110px;
}

.btn-back {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--primary);
    border-radius: 18px;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 0.9em;
    padding: 5px;
    border-style: double;
}

    .btn-back img {
        width: 20% !important;
    }

#btnFav i {
    color: #E58F28 !important
}



.boxcreate-head b {
    align-self: center;
    margin-right: 5px;
}

.btn-select-time, .btn-select-change-time {
    background: #F5F5F5;
    box-shadow: 0px 4px 4px rgb(0 0 0 / 25%);
    border-radius: 8px;
    padding: 10px;
}

    .btn-select-time.active, .btn-select-change-time.active {
        background: #E58F28;
        color: #ffffff;
    }

.changeapp .ui-datepicker-trigger {
    width: 15px !important;
    height: 15px !important;
    margin-left: 10px !important;
}

.boxdoctor img {
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    border-radius: 11px;
}

textarea {
    width: 100%;
    background: #F5F5F5;
    border-radius: 8px;
    border: none;
    resize: none;
    padding: 4px;
}

.modal-dialog {
    width: 100% !important;
}

img {
    width: 100%;
}

.row {
    margin-right: -4px;
    margin-left: -4px;
}

[class^='col'] {
    padding-right: 4px;
    padding-left: 4px;
}

.boxinfo {
    background: url(Images/icon-bg-secondary.png) no-repeat;
    background-size: min(50%, 100px);
    background-position: bottom -20px left -20px;
    color: #ffff;
    background-color: var(--primary);
    border-radius: 20px;
    padding: 15px 10px;
}

    .boxinfo .lblName, .boxinfo .lblHN, .boxinfo .lblBD {
        font-size: 1em;
        line-height: 1.5em;
    }

.imglogo {
    padding: 10px 15px;
    max-width: 220px;
}

.logo-image-small {
    width: 20px;
    vertical-align: text-top;
}

.register {
    min-height: 100vh;
    background-image: url("images/bg.png");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-attachment: fixed;
}

.text-red, .field-validation-error {
    color: red;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary, .btn-outline-danger, .btn-outline-success {
    border: 2px solid;
}

.modal-footer {
    padding: 0.5em;
}

.lblhead {
    color: var(--primary);
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1em;
}

.pop-image {
    width: 104px;
    height: 104px;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    border-radius: 62px;
    margin: auto;
}

.pop-appointment .pop-lblhead {
    color: var(--primary);
}

.pop-lbldoctor > .left, .pop-lbldepartment > .left, .pop-lbldate > .left, .pop-lbltime > .left {
    width: 30%;
}

.pop-lbldoctor > .right, .pop-lbldepartment > .right, .pop-lbldate > .right, .pop-lbltime > .right {
    width: 70%;
}

.cc-g {
    background: #009C41;
    width: 74px;
    height: 74px;
    margin: auto;
    border-radius: 50%;
    text-align: center;
}

    .cc-g img {
        width: 60%;
        padding-top: 20%;
    }

.green {
    background: #009C41;
}

.w-80 {
    width: 80px;
}

.w-40 {
    width: 40px;
}

.w-100px {
    width: 100px;
}

.w-40p {
    width: 40%;
}


.f-80 {
    font-size: 80px;
    line-height: 1em;
}

.f-60 {
    font-size: 58px;
    line-height: 1em;
}

.f-16 {
    font-size: 16px;
    line-height: 1em;
}

.f-14 {
    font-size: 14px;
    line-height: 1em;
}

.w-30p {
    width: 30%;
    display: inline-block;
    vertical-align: text-top;
}

.w-45p {
    width: 43%;
    display: inline-block;
    vertical-align: text-top;
}

.w-55p {
    width: 53%;
    display: inline-block;
    vertical-align: text-top;
}

.w-50p {
    width: 48%;
    display: inline-block;
    vertical-align: text-top;
}

.f-ssx {
    font-size: 0.6em;
    line-height: 1.5em;
}

.f-ss {
    font-size: 0.7em;
    line-height: 1.3em;
}

.f-xs {
    font-size: 0.8em;
    line-height: 1.3em;
}

.f-s {
    font-size: 0.9em;
    line-height: 1em;
}

.f-m {
    font-size: 1.1em;
    line-height: 1em;
}

.f-mm {
    font-size: 1.3em;
    line-height: 1em;
}

.f-l {
    font-size: 1.5em;
    line-height: 1em;
}

.f-xl {
    font-size: 2em;
    line-height: 1em;
}

.f-xxl {
    font-size: 3.8em;
    line-height: 1em;
}

.fw-xl {
    font-weight: 600;
}

.fw-xxl {
    font-weight: 800;
}

.b-left {
    border-left: 1px solid;
}

.fc-p {
    color: var(--primary);
}

.fc-y {
    color: #FBD135;
}

.fc-or {
    color: #E58F28;
}

.fc-g {
    color: #D9D9D9;
}

.fc-gr {
    color: #009C41;
}

.fc-gd {
    color: gray;
}

.fc-r {
    color: #E34017 !important;
}

.fc-w {
    color: #ffffff;
}

.f-bold {
    font-weight: bold;
}


.btn-p {
    background: var(--primary);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 30px;
    color: #ffff;
}

.btn-w {
    background: #ffffff;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 30px;
    color: var(--primary);
}

.btn-s {
    color: var(--primary);
    background: #F5F5F5;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 30px;
}

.btn-gray {
    color: var(--primary);
    background: #D9D9D9;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 30px;
}


.btn-r {
    color: #ffffff;
    background: #E34017;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 30px;
}


hr {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.modal-content {
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 18px;
    border: none;
}

.modal-backdrop {
    background: var(--primary);
}

.modal-open .modal {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.loading {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 99999999;
    background: var(--primary);
    opacity: 0.3;
}

#mloading .modal-content {
    width: 150px;
    height: 150px;
    background: transparent;
    border: none;
    box-shadow: none !important;
}

#mloading .modal-dialog {
    -webkit-transform: translate(0,-50%);
    -o-transform: translate(0,-50%);
    transform: translate(0,-50%);
    margin: 0 auto;
    width: 150px;
    box-shadow: none !important;
}

.card-head {
    background: var(--color-secondary-2);
    border-radius: 16px 16px 0px 0px;
    font-size: 1.2em;
    color: var(--color-primary);
    padding: 8px 15px;
}

.card-body {
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 18px;
    background: #ffffff;
    border-radius: 0px 0px 16px 16px !important;
}

.card-item {
    background: #FFFFFF;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 18px;
}

.btn-department .department-img {
    width: 70px;
    height: 70px;
    box-shadow: 0px 4px 4px rgb(0 0 0 / 25%);
    border-radius: 50%;
    text-align: center;
    margin: auto;
}

.btn-inactive {
    opacity: 0.5;
}

.box-button-fav {
    margin-bottom: -40px;
    position: relative;
    z-index: 9;
}

    .box-button-fav a {
        font-size: 1.5rem;
    }

.nav-tabs .nav-item {
    width: 33%;
    text-align: center;
}

    .nav-tabs .nav-item a {
        border-top-right-radius: 14px;
        border-top-left-radius: 14px;
        color: var(--color-white);
        background: var(--color-third);
    }

        .nav-tabs .nav-item a.active {
            background-color: var(--color-secondary-2) !important;
            color: var(--color-primary) !important;
            font-weight: 700;
        }

.tab-content {
    background: #fff;
    padding: 5px;
    border-bottom-right-radius: 14px;
    border-bottom-left-radius: 14px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.ui-datepicker-trigger {
    transform: rotate(90deg);
    height: 25px;
    width: 25px;
    margin-top: 3px;
}

#ui-datepicker-div[style*="position: absolute"] {
    display: block;
    width: 95% !important;
    max-width: 100% !important;
    max-height: 100vh !important;
    left: 10px !important;
    z-index: 9999 !important;
    background: white;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 20px;
}

.ui-state-default {
    height: 40px !important;
}

.ui-datepicker-calendar {
    font-size: 0.7em !important;
}

    .ui-datepicker-calendar tr td {
        width: 25px !important;
    }

.btn-calendar, .btn-calendar-no {
    width: 25%;
    box-shadow: 0px 4px 4px rgb(0 0 0 / 25%);
    border-radius: 20px;
    background: #ffffff;
    color: var(--primary);
    text-align: center;
    height: 70px;
    margin: 5px;
    padding: 10px;
}

    .btn-calendar.active {
        background: var(--primary);
        color: #ffffff;
    }

.btn-calendar-no {
    opacity: 0.8;
    background: #9B9999;
}

.box-doctor.no-item {
    height: 200px;
    padding-top: 90px;
}

.box-doctor {
    padding: 10px;
}

    .box-doctor .left {
        width: 75%;
    }

    .box-doctor .right {
        width: 25%;
    }

    .box-doctor > .right > img {
        filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
        border-radius: 11px;
    }

    .box-doctor .lblDepartment .left, .lblTime .left {
        width: 25%;
    }

    .box-doctor .lblDepartment .right, .lblTime .right {
        width: 75%;
    }

    .box-doctor .lblDepartment .right {
        height: 80px;
    }

.icon-lang {
    width: 20px;
    cursor: pointer;
}

.department-img img {
    width: 50%;
    position: relative;
    top: 22%;
}

.arrow {
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.up {
    transform: rotate(-90deg);
}

.down {
    transform: rotate(90deg);
}

.top-box {
    width: 25%;
    padding: 3px 5px;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
}

    .top-box.gray {
        background: #9B9999;
    }

    .top-box.green {
        background: #009C41;
    }


.jSlider {
    position: relative;
    height: 230px;
}

    .jSlider .slider-content {
        background-color: transparent !important;
    }

.jd-slider .controller .indicate-area a {
    width: 10px;
    height: 10px;
    margin-bottom: 10px;
}

.slider-content-wrapper {
    padding: 5px;
}

.loading {
}

    .loading > div {
        width: 60px;
        height: 60px;
        position: absolute;
        left: 50%;
        margin-left: -30px;
        top: 50%;
        margin-top: -30px;
    }


        .loading > div > div {
            content: '';
            position: absolute;
            width: 16px;
            height: 16px;
            background: #ffffff;
            top: 10px;
            left: 10px;
            transform-origin: 20px 20px;
            border-radius: 8px;
            animation: spin-a 2s infinite cubic-bezier(0.5, 0, 0.5, 1);
        }

        .loading > div > .c2 {
            top: 10px;
            left: auto;
            right: 10px;
            transform-origin: -4px 20px;
            animation: spin-b 2s infinite cubic-bezier(0.5, 0, 0.5, 1);
        }

        .loading > div > .c3 {
            top: auto;
            left: auto;
            right: 10px;
            bottom: 10px;
            transform-origin: -4px -4px;
            animation: spin-c 2s infinite cubic-bezier(0.5, 0, 0.5, 1);
        }

        .loading > div > .c4 {
            top: auto;
            bottom: 10px;
            transform-origin: 20px -4px;
            animation: spin-d 2s infinite cubic-bezier(0.5, 0, 0.5, 1);
        }

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--primary);
    z-index: 2;
}

@keyframes spin-a {
    0% {
        transform: rotate(90deg);
    }

    0% {
        transform: rotate(90deg);
    }

    50% {
        transform: rotate(180deg);
    }

    75% {
        transform: rotate(270deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-b {
    0% {
        transform: rotate(90deg);
    }

    25% {
        transform: rotate(90deg);
    }

    25% {
        transform: rotate(180deg);
    }

    75% {
        transform: rotate(270deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-c {
    0% {
        transform: rotate(90deg);
    }

    25% {
        transform: rotate(90deg);
    }

    50% {
        transform: rotate(180deg);
    }

    50% {
        transform: rotate(270deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-d {
    0% {
        transform: rotate(90deg);
    }

    25% {
        transform: rotate(90deg);
    }

    50% {
        transform: rotate(180deg);
    }

    75% {
        transform: rotate(270deg);
    }

    75% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


@media only screen and (max-width: 375px) {
    .container {
        font-size: 13px !important;
    }
}

.slide-list {
    background: var(--color-third);
    border-radius: 18px;
    padding: 5px;
}

.btn-white, .btn-white:hover {
    color: var(--color-primary);
    background: var(--color-white);
    width: 100%;
    border-radius: 18px;
}


.btn-primary:hover {
    color: #fff;
    background-color: var(--primary);
    border-color: #0062cc;
}

.lblremark {
    display: block !important;
    text-align: center;
    font-size: 0.9em;
    color: red;
    height: 20px;
}

.btn-tab {
    font-weight: bold;
    width: 100%;
}

.bg-secondary-2 {
    background-color: var(--color-secondary-2) !important;
    color: var(--color-primary) !important;
}

.StepProgress {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.StepProgress-item {
    display: flex;
    align-items: flex-start;
    position: relative;
    min-height: 40px;
}

.left-date {
    width: 80px;
    text-align: right;
    padding-right: 10px;
    color: var(--color-primary);
}

.line-and-content {
    position: relative;
    padding-left: 30px;
    flex: 1;
    height: 40px;
}

    .line-and-content::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 10px;
        width: 2px;
        background-color: var(--color-secondary);
        z-index: 0;
    }

.circle {
    position: absolute;
    left: 5px;
    background-color: white;
    border-radius: 50%;
    border: 1px solid white;
    box-shadow: 0 0 0 2px var(--color-primary);
    z-index: 1;
    color: var(--color-primary);
    font-size: 12px;
    top: 4px;
}

.content {
    margin-left: 10px;
    color: #444;
}

.icon-show {
    color: var(--color-primary);
    float: right;
}

.badge-status {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--color-white);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 0.85rem;
}

.badge-content {
    display: flex;
    align-items: center;
    gap: 6px;
}

.glow-icon {
    animation: pulseGlow 1.5s infinite;
    color: red;
}

@keyframes pulseGlow {
    0% {
        text-shadow: 0 0 5px red, 0 0 10px red, 0 0 15px red;
        opacity: 1;
    }

    50% {
        text-shadow: 0 0 15px red, 0 0 30px red, 0 0 40px red;
        opacity: 0.6;
    }

    100% {
        text-shadow: 0 0 5px #ffd700, 0 0 10px #ffd700, 0 0 15px #ffa500;
        opacity: 1;
    }
}

.badge-status {
    padding: 5px 10px;
    width: 95%;
    margin: 5px 0px 5px;
    font-size: 0.9em;
}

    .badge-status.GR1 {
        background: linear-gradient(90deg, #daa520 0%, #fae9c1 100%);
        color: #966919;
    }

    .badge-status.GR2 {
        background: linear-gradient(90deg, #c0c0c0 12%, #ffff 100%);
        color: #4f4e4e;
    }

    .badge-status.GR3 {
        background: linear-gradient(90deg, #e0bfb8 12%, #fae9c1 100%);
        color: #cc5500;
    }



.icon-crown {
    position: absolute;
    top: -10px;
    right: 10px;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.8));
    width: 30px;
    height: 30px;
    transform: rotate(40deg);
}

.avatar-privileged {
    width: 70px;
    height: 70px;
    position: relative;
    border-radius: 50%;
    padding: 3px;
    margin-top: 5px;
}

    .avatar-privileged.GR1 {
        border: 3px solid gold;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    }

    .avatar-privileged.GR2 {
        border: 3px solid #d8d8d8;
        background: linear-gradient(145deg, #e0e0e0, #a9a9a9);
        box-shadow: 0 0 10px rgba(180, 180, 180, 0.7), inset 0 0 5px rgba(255, 255, 255, 0.3);
    }

    .avatar-privileged.GR3 {
        border: 3px solid #e8b7b3;
        background: linear-gradient(160deg, #ffd7c2, #e8b7b3, #c08475);
        box-shadow: 0 0 12px rgba(255, 182, 170, 0.8), inset 0 0 6px rgba(255, 255, 255, 0.3);
    }

div.line-head {
    border-bottom: 2px solid gray;
}

div.line-detail {
    border-bottom: 1px solid #a8ddf3;
}

/* Base Tag Style */
.tag {
    display: inline-block;
    padding: 4px 12px; /* ปรับสัดส่วนให้ดูสวยขึ้น */
    min-width: 60px; /* กว้างขึ้นนิดหน่อยให้ดูไม่กุด */
    border-radius: 50px; /* ใช้ 50px เพื่อความมนแบบสมบูรณ์ */
    font-size: 11px; /* เพิ่มขนาดเล็กน้อยให้อ่านง่ายขึ้น */
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1.5px solid; /* ลดความหนาเส้นลงเล็กน้อยเพื่อให้ดู Clean */
    margin: 4px 2px;
    white-space: nowrap; /* ป้องกันตัวอักษรตกบรรทัด */
}

    /* Hover Effect */
    .tag:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        filter: brightness(1.05); /* เพิ่มความสว่างเวลา Hover */
    }

.btn-success {
    background-color: var(--color-green) !important;
}

/* Tag Variants */
.tag-primary {
    background: var(--color-primary-5, #e0f2f1); /* Fallback color */
    border-color: var(--color-secondary);
    color: var(--color-primary); /* ปกติ Primary Tag ควรสีเดียวกับ Border */
}

.tag-secondary {
    background: rgba(38, 169, 224, 0.1);
    border-color: var(--color-secondary, #26a9e0);
    color: var(--color-secondary);
}

/* เพิ่มเติม: สำหรับสถานะสำเร็จ (เช่น จบขั้นตอน) */
.tag-success {
    background: rgba(40, 199, 111, 0.12);
    border-color: #28c76f;
    color: #28c76f;
}

/* เพิ่มเติม: สำหรับสถานะรอ (เช่น กำลังตรวจ) */
.tag-warning {
    background: rgba(255, 159, 67, 0.12);
    border-color: #ff9f43;
    color: #ff9f43;
}
