﻿/*Don't forget to add Font Awesome CSS : "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css"*/
input[type="text"] {
    width: 100%;
    border: 1px solid rgb(128, 128, 128,0.25);
    border-radius: 12px;
    margin: 1px 0;
    outline: none;
    padding: 6px;
    box-sizing: border-box;
    transition: 0.3s;
}

    input[type="text"]:focus {
        border-color: dodgerBlue;
        box-shadow: 0 0 8px 0 dodgerBlue;
    }
.inputWithIcon input[type="text"] {
    padding-left: 45px;
}

input[type="number"] {
    width: 100%;
    border: 1px solid rgb(128, 128, 128,0.25);
    border-radius: 12px;
    margin: 1px 0;
    outline: none;
    padding: 6px;
    box-sizing: border-box;
    transition: 0.3s;
}
    input[type="number"]:focus {
        border-color: dodgerBlue;
        box-shadow: 0 0 8px 0 dodgerBlue;
    }
.inputWithIcon input[type="number"] {
    padding-left: 45px;
}


input[type="password"] {
    width: 100%;
    border: 1px solid rgb(128, 128, 128,0.25);
    border-radius: 12px;
    margin: 1px 0;
    outline: none;
    padding: 6px;
    box-sizing: border-box;
    transition: 0.3s;
}


input[type="password"]:focus {
    border-color: dodgerBlue;
    box-shadow: 0 0 8px 0 dodgerBlue;
}



.inputWithIcon input[type="password"] {
    padding-left: 45px;
}
.inputWithIcon {
    position: relative;
}

    .inputWithIcon i {
        position: absolute;
        left: 3px;
        top: 4px;
        padding: 9px 8px;
        color: #aaa;
        transition: 0.3s;
        font-size:1.3em;
    }

    .inputWithIcon input[type="text"]:focus + i {
        color: dodgerBlue;
    }
    .inputWithIcon input[type="password"]:focus + i {
        color: dodgerBlue;
    }
    .inputWithIcon.inputIconBg i {
        background-color: #aaa;
        color: #fff;
        padding: 9px 4px;
        border-radius: 4px 0 0 4px;
    }

    .inputWithIcon.inputIconBg input[type="text"]:focus + i {
        color: #fff;
        background-color: dodgerBlue;
    }
    .inputWithIcon.inputIconBg input[type="password"]:focus + i {
        color: #fff;
        background-color: dodgerBlue;
    }

select {
    /* Removes default native styling (crucial for border-radius) */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Apply custom rounded corners */
    border-radius: 8px;
    /* Required styling to look like a proper dropdown */
    border: 1px solid #ccc;
    padding: 10px 40px 10px 15px;
    background-color: #ffffff;
    /* Custom background arrow since appearance:none removes the native one */
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://w3.org" width="292.4" height="292.4" viewBox="0 0 292.4 292.4"><path fill="%23666" d="M287 69.4a17.6 17.6 0 0 0-13-5.4H18.4c-5 0-9.3 1.8-12.9 5.4A17.6 17.6 0 0 0 0 82.2c0 5 1.8 9.3 5.4 12.9l128 127.9c3.6 3.6 7.8 5.4 12.8 5.4s9.2-1.8 12.8-5.4L287 95c3.5-3.5 5.4-7.8 5.4-12.8 0-5-1.9-9.2-5.5-12.8z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    cursor: pointer;
}

    /* Optional: Smooth transition for interactions */
    select:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    }

.ddl {
    width: 100% !important;
    height: 48px !important;
    border: 2px solid #7d6754;
    border-radius: 12px !important;
    padding: 3px;
    -webkit-appearance: none;
    background-position: 88px;
    background-repeat: no-repeat;
    text-indent: 0.01px; /*In Firefox*/
    text-overflow: ''; /*In Firefox*/

    background-image: url('../../image_png/png/arrow-down-01.png');
}
.dll select {
    background: transparent;
    width: 100% !important;
    padding: 3px;
    font-size: 16px;
    line-height: 1;
    border: 0;
    border-radius: 0;
    height: 30px;
    -webkit-appearance: none;
    font-family: Andalus;
    color: #7d6754;
}

.styled-select {
    width: 100% !important;
    height: 48px !important;
    border: 1px solid rgb(128, 128, 128,0.25);
    border-radius: 12px !important;
    background-color: rgb(239, 237, 237,.5) !important;
    background-image: url('../../image_png/png/arrow-down-01.png');
    overflow: hidden !important;
}

    .styled-select select {
        background: transparent !important;
        width: 180px !important;
        padding: 3px !important;
        font-size: 16px !important;
        line-height: 1 !important;
        border: 0 !important;
        border-radius: 0 !important;
        height: 30px !important;
        -webkit-appearance: none !important;
        font-family: Andalus !important;
        color: #7d6754 !important;
    }
        .styled-select select :hover {
            border: 1px solid rgba(0,212,255, 1.20);
        }

    .checkbox {
        height: 60px;
        width: 300px;
        padding: 20px;
        display: flex;
        /*background: #fff;*/
        align-items: center;
        border-radius: 12px;
        /*box-shadow: 5px 5px 30px rgba(0,0,0,.1);*/
        justify-content: space-between;
    }

    .checkbox input {
        outline: none;
        height: 30px;
        width: 79px;
        border-radius: 50px;
        -webkit-appearance: none;
        position: relative;
        background: #e6e6e6;
        box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
        transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

        .checkbox input:checked {
            background: #664AFF;
        }

        .checkbox input:before {
            position: absolute;
            content: "";
            left: 0;
            height: 100%;
            width: 30px;
            background: linear-gradient(#fff,#f2f2f2,#e6e6e6,#d9d9d9);
            box-shadow: 0 2px 5px rgba(0,0,0,.2);
            border-radius: 50px;
            transform: scale(0.85);
            transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

input:checked:before {
    left: 50px;
}

.checkbox .text:before {
    text-align: left !important;
    content: "(ยกเลิกเสียงตามเวลา)";
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Noto Serif Thai', serif,'rsubold';
    color: #bfbfbf;
}

input:checked ~ .text:before {
    text-align: left !important;
    color: #0b9e07 !important;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Noto Serif Thai', serif,'rsubold';
    content: "(ใช้เสียงตามเวลา)";
}