body.dark-mode {
    background-color: #212529;
    color: #fff;
}

.dark-mode {
    background-color: #212529 !important;
    color: #fff;
}

.dark-mode .navbar {
    background-color: #343a40 !important;
}

.dark-mode .nav-link {
    color: #fff !important;
}

.dark-mode .btn-outline-dark {
    color: #fff !important;
    border-color: #fff !important;
}

.dark-mode label p {
    color: #f9f9f9;
    font-size: 1rem;
    user-select: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0.8rem;
    padding: 0 0.88rem;
    background: #212529;
    transition: top 0.2s, font-size 0.2s, color 0.2s;
}

.dark-mode label input {
    color: #f9f9f9;
    background: transparent;
    padding: 0.5rem 2.2rem 0.5rem 0.6rem;
    min-width: 24rem;
    border-radius: 0.2rem;
    border: 2px solid #7a7a7a56;
    transition: border-color 0.2s;
}

.dark-mode .title-name {
    font-weight: 700;
    color: #fff !important;
}

.dark-mode .dropdown-menu {
    background-color: #343a40 !important;
    color: #fff !important;
}

.dark-mode .dropdown-menu .premis {
    color: #fff !important;
    border-radius: 5%;
}

.dark-mode .dropdown-menu .danger {
    color: #fff !important;
    border-radius: 5%;
}

.dark-mode .dropdown-menu .premis:hover {
    background-color: #b7e8ff !important;
    color: #00aeff !important;
    border-radius: 5%;
}

.dark-mode .dropdown-menu .danger:hover {
    background-color: #FBE9EB !important;
    color: #f50c2b !important;
    border-radius: 5%;
}

.dark-mode .nav-link {
    position: relative;
    transition: all 0.3s;
}

.dark-mode .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #00aeff !important;
    transition: all 0.3s;
}

.dark-mode .nav-link:hover::after {
    width: 100%;
    left: 0;
}

.dark-mode .nav-link:hover {
    color: #00aeff !important;
    /* สีข้อความเมื่อชี้ */
}

/**/

.wave-group {
    position: relative;
}

.wave-group .input {
    font-size: 16px;
    padding: 10px 10px 10px 5px;
    display: block;
    width: 100%;
    border: none;
    border-bottom: 1px solid #515151;
    background: transparent;
}

.wave-group .input:focus {
    outline: none;
}

.wave-group .label {
    color: #999;
    font-size: 18px;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    left: 5px;
    top: 10px;
    display: flex;
}

.wave-group .label-char {
    transition: 0.2s ease all;
    transition-delay: calc(var(--index) * 0.05s);
}

.wave-group .bar:before {
    left: 50%;
}

.wave-group .bar:after {
    right: 50%;
}

.wave-group .input:focus~.bar:before,
.wave-group .input:focus~.bar:after {
    width: 50%;
}
