﻿.as-text, .as-Date, .as-date, .as-number {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #CFCFCF;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    border-radius: 50px;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.as-text::placeholder {
    color: #BBBBBB;
    opacity: 1; /* Firefox */
}

.as-text::-ms-input-placeholder { /* Edge 12 -18 */
    color: #BBBBBB;
}

.as-text:focus, .as-Date:focus, .as-number:focus {
   border-color: #FC5000;
   box-shadow: 0 0 0 0.25rem rgb(252 80 0 / 25%);
}

.as-select {
    background-image: url(../images/icon/arrow-down.png);
    background-size: 14px 8px;
    background-repeat: no-repeat;
    background-position: right .75rem center;
    border-radius: 50px;
    border: 1px solid #CFCFCF;
    font-size: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.as-select:focus {
    border-color: #FC5000;
    box-shadow: 0 0 0 0.25rem rgb(252 80 0 / 25%);
}

.as-file-preview {
    border-radius: 5px;
    border: 1px solid #CDCDCD;
    background: #FFF;
    object-fit: cover;
    margin-bottom: 1rem !important;
    max-width: 100%;
    display: block;

    width: 100%;
    height: 100%;
}

.as-file-btn {
    color: transparent;
}

.as-file-btn::-webkit-file-upload-button {
    visibility: hidden;
}

.as-file-btn::before {
    content: 'Choose file';
    display: block;
    border-radius: 90px;
    background: #14AE5C;
    outline: none;
    -webkit-user-select: none;
    cursor: pointer;
    padding: 10px;
    color: #FFF;
    font-size: 22px;
    text-align: center;
}

.as-file-btn:active::before {
    background: #228B22;
}

/* Hide the default checkbox appearance */
.as-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.25);
    border-radius: .25em;
    cursor: pointer;
    position: relative;
    top: 5px;
}

/* Style when the checkbox is checked */
.as-checkbox:checked {
    background-color: transparent;
    border-color: rgba(0,0,0,.25);
}

/* Adding a custom checkmark when checked */
.as-checkbox:checked::before {
    content: '';
    background-image: url('../images/icon/check-green.png'); /* Path to your checkmark image */
    background-size: 14px 10px;
    width: 14px;
    height: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Optional: Add hover effect */
.as-checkbox:hover {
    border-color: #CDCDCD;
    box-shadow: none;
}

.as-group-hierarchy .form-control {
    margin-bottom: 1rem !important;
}

