@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');
main{
    background-color: #fff;
    max-width: 440px;
    min-height: 100vh;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-family: "Kanit", sans-serif;
}

.login-logo {
    text-align: center;
    padding-top: 45px;
}

.login-logo img{
    max-width: 75%;
    width: 100%;
}

.login-input{
    max-width: 322px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 100%;
    height: 50px;
}

.login-input input::placeholder{
    color: #ffffff;
}

.login-input input {
    background-size: contain;
    height: 100%;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: 0;
    outline: none !important;
    padding-left: 50px;
    color: #ffffff;
    font-weight: 300;
    font-size: 14px;
}

.login-btn{
    background-color: transparent;
    padding: 0;
    border: 0;
    outline: none !important;
    max-width: 322px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.login-policy {
    margin-top: 55px;
    text-align: center;
    max-width: 322px;
    margin-left: auto;
    margin-right: auto;
    font-size: 10px;
    color: #fff;
    font-family: "Sarabun", sans-serif;
    font-weight: 100;
}

.policy-hr{
    background: #B98F3A;
    background: linear-gradient(275deg, rgba(185, 143, 58, 1) 0%, rgba(220, 205, 160, 1) 52%, rgba(185, 143, 58, 1) 100%);
    height: 2px;
    width: 100%;
    max-width: 322px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
    margin-bottom: 15px;
}

.login-policy label{
       line-height: 1.8;
}

.policy{
    font-family: "Sarabun", sans-serif;
    font-weight: 100;
    max-width: 375px;
    margin-left: auto;
    margin-right: auto;
    font-size: 10px;
    color: #fff;
    text-align: center;
    line-height: 1.8;
}

.header {
    background-image: url(../images/bg2.png);
    background-position: bottom;
    background-size: cover;
    height: 280px;
    width: 100%;
    position: relative;
}

.header-nav{
    display: flex;
    align-items: center;
    padding: 15px 25px;
}

.header-nav .logo{
    width: 80px;
}

.header-nav .password-change {
    margin-left: auto;
}

.header-nav .password-change img{
    width: 120px;
}

.history-body h3{
    color: #472a4c;
    font-weight: 400;
}

.history-group{
    display: flex;
    gap: 10px;
    align-items: center;
}

.history-group .history-icon{
    width: 30%;
    height: 120px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
}

.history-detail{
    width: 70%;
}

.history-log{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-image: url(../images/blank.png);
    background-position: center;
    background-size: contain;
    width: 41px;
    font-size: 13px;
    height: 70px;
    background-repeat: no-repeat;
    gap: 0;
    line-height: 17px;
    font-weight: 300;
}

.history-log .date{
    font-size: 18px;
    font-weight: 400;
}

.swiper-pagination {
    bottom: -10px !important;
}

.swiper-pagination-bullet {
    background: #667eea;
}

.swiper-button-next,
.swiper-button-prev {
    color: #667eea;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.history-logs{
    display: flex;
    gap: 7px;
}

.history-arrows{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: transparent;
    padding: 0;
    border: 0;
    outline: none !important;
    width: fit-content;
}

.history-arrows.left{
    left: 1%;
}

.history-arrows.right {
    left: 98%;
}

.history-arrows.slick-disabled{
    display: none !important;
}

.slick-dots {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 3px;
    justify-content: center;
    gap: 4px;
    height: 7px;
}

.slick-dots button{
    padding: 0;
    border: 0;
    outline: none !important;
    color: transparent;
    background-color: #40245f92;
    width: 5px;
    height: 5px;
    border-radius: 5px;
}

.slick-dots .slick-active button{
    background-color: #40245f;
}

.hr{
    background: #B88D37;
    background: linear-gradient(275deg, rgba(184, 141, 55, 1) 0%, rgba(221, 208, 163, 1) 52%, rgba(184, 141, 55, 1) 100%);
    height: 0.09rem;
    width: 100%;
}

.doctor {
    width: 143px;
    left: 28px;
    top: 96px;
    position: absolute;
}

@media (max-width: 768px) {
    .slide-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .slide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 390px) {
    .doctor {
        width: 133px;
        left: 18px;
        top: 103px;
    }
    .history-group .history-icon{
        height: 109px;
    }
    .history-detail img{
        width: 110px;
    }
    .history-log{
        font-size: 12px;
        width: 39px;
    }
}