:root {
    --main-color: #1e9ff2;
}

* {
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif !important;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
}

.spinner {
    border: 10px solid #f3f3f3;
    border-top: 10px solid #3498db;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 46%;
    left: 46%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

table td, table th {
    text-align: center;
    vertical-align: middle !important;
}

.form-floating .required::after {
    content: '*';
    color:red;
    padding:2px;
}

h1 {
    position: relative;
    padding: 0;
    margin: 0;
    font-weight: 300;
    font-size: 40px;
    color: #333;
    -webkit-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;
}

.dataTable td{
    min-height:60px !important;
}

.accordion-button::after {
    margin-left: 0 !important;
}

.page-title {
    margin-bottom: 40px;
}

    .page-title h1 {
        font-size: 28px;
        font-weight: 500;
        letter-spacing: 0;
        line-height: 1.5em;
        padding-bottom: 15px;
        position: relative;
    }

        .page-title h1:before {
            content: "";
            position: absolute;
            right: 0;
            bottom: 0;
            height: 5px;
            width: 55px;
            background-color: var(--main-color);
        }

        .page-title h1:after {
            content: "";
            position: absolute;
            right: 0;
            bottom: 2px;
            height: 1px;
            width: 95%;
            max-width: 255px;
            background-color: var(--main-color);
        }

.btn-label {
    position: relative;
    right: -16px;
    display: inline-block;
    padding: 8px 12px;
    background: rgba(0,0,0,0.15);
    border-radius: 3px 0 0 3px;
}

.btn-labeled {
    padding-top: 0;
    padding-bottom: 0;
}

.accordion-button::after {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.form-select {
    background-position: left .75rem center !important;
}

.section-title {
    margin-bottom: 30px;
}

    .section-title h2 {
        display: inline-block;
    }

        .section-title h2::after {
            content: '';
            display: block;
            transition: .3s;
            height: 2px;
            margin-top: 10px;
            width: 60%;
            background: var(--main-color);
            border-radius: 10px;
        }


        .section-title h2:hover::after {
            width: 100%;
        }

.branch-service-card a {
    margin: 0 !important;
}

.branch-service-card {
    padding: 10px !important;
    box-shadow: 0px 0px 12px -3px #33333375 !important;
}

.branch-imgs .owl-stage-outer, .branch-imgs .item {
    max-height: 146px;
}

.branch-imgs-slider .buttons-group , .branch-imgs .buttons-group {
    transform: translate(-50%,-50%);
    left: 50% !important;
    transition: .3s;
    top: -1000px;
}

.branch-imgs-slider .item:hover .buttons-group, .branch-imgs .item:hover .buttons-group {
    top: 50% !important;
}



/*chat page*/


::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    width: 5px;
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    width: 1em;
    background-color: #ddd;
    outline: 1px solid slategrey;
    border-radius: 1rem;
}

.text-small {
    font-size: 0.9rem;
}

.messages-box,
.chat-box {
    height: 510px;
    overflow-y: scroll;
}

.rounded-lg {
    border-radius: 0.5rem;
}

textarea:focus {
    box-shadow: none !important;
    outline: none;
    border: none;
}

.last-message {
    white-space: nowrap;
    width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
}