.lds-ripple {
    display: inline-block;
    /* position: relative; */
    width: 80px;
    height: 80px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.lds-ripple div {
    position: absolute;
    border: 4px solid #7743db;
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.lds-ripple div:nth-child(2) {
    animation-delay: -0.5s;
}
@keyframes lds-ripple {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }
    4.9% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }
    5% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}

/* another ripple */

.lds-ripple1 {
    display: inline-block;
    /* position: relative; */
    width: 80px;
    height: 80px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* z-index: 9999; */
}
.lds-ripple1 div {
    position: absolute;
    border: 4px solid #7743db;
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple1 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.lds-ripple1 div:nth-child(2) {
    animation-delay: -0.5s;
}
@keyframes lds-ripple1 {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }
    4.9% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }
    5% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}

.hidden {
    display: none;
}

.footer {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.5);
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-size: small;
}

.highlight {
    background: yellow;
    color: #000;
    border-radius: 2px;
    padding: 0 2px;
    /* Animation */
    animation: highlight-pulse 6s;
    /* transition: background 0.7s; */
}

@keyframes highlight-fadein {
    from {
        background: #fff3cd;
    }
    to {
        background: yellow;
    }
}

@keyframes highlight-pulse {
    0% {
        background: #fff3cd;
    }
    50% {
        background: #ffe066;
    }
    100% {
        background: yellow;
    }
}

/* search */
.global-search {
    width: 150px;
    border: none;
    /* background: none; */
    outline: none;
}

.global-search:focus {
    width: 600px;
    -webkit-transition: width 0.4s ease-in-out;
    transition: width 0.4s ease-in-out;
}

.searchBox {
    /* position: absolute; */
    position: relative;
    /* top: 60%; */
    /* left: 60%; */
    /* transform:  translate(-50%,50%); */
    background: #2f3640;
    height: 40px;
    border-radius: 40px;
    padding: 0px;
}

.searchBox:hover > .searchInput {
    width: 240px;
    padding: 0 6px;
}

.searchBox:hover > .searchButton {
    background: white;
    color: #2f3640;
}

.searchButton {
    color: white;
    float: right;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2f3640;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
}

.searchInput {
    border: none;
    background: none;
    outline: none;
    float: left;
    padding: 0;
    color: white;
    font-size: 16px;
    transition: 0.4s;
    line-height: 40px;
    width: 0px;
}

@media screen and (max-width: 620px) {
    .searchBox:hover > .searchInput {
        width: 150px;
        padding: 0 6px;
    }
}

/* scroll to top starts */
/* .back-to-top {
    position: fixed;
    bottom: -40px;
    right: 40px;
    display: block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: #a2dbfa;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 50%;
    opacity: 0;
    -webkit-transform: scale(0.3);
    -ms-transform: scale(0.3);
    transform: scale(0.3);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 9;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
} */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    text-align: center;
    line-height: 48px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.back-to-top:focus {
    color: #fff;
}
.back-to-top.show {
    bottom: 40px;
    right: 40px;
    opacity: 1;
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}
.back-to-top.show:hover {
    color: #fff;
    bottom: 30px;
    opacity: 1;
}
.arrow {
    background-image: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHN0eWxlPi5zdDB7ZmlsbDojZmZmfTwvc3R5bGU+PHBhdGggY2xhc3M9InN0MCIgZD0iTTMxOS4xIDIxN2MyMC4yIDIwLjIgMTkuOSA1My4yLS42IDczLjdzLTUzLjUgMjAuOC03My43LjZsLTE5MC0xOTBjLTIwLjEtMjAuMi0xOS44LTUzLjIuNy03My43UzEwOSA2LjggMTI5LjEgMjdsMTkwIDE5MHoiLz48cGF0aCBjbGFzcz0ic3QwIiBkPSJNMzE5LjEgMjkwLjVjMjAuMi0yMC4yIDE5LjktNTMuMi0uNi03My43cy01My41LTIwLjgtNzMuNy0uNmwtMTkwIDE5MGMtMjAuMiAyMC4yLTE5LjkgNTMuMi42IDczLjdzNTMuNSAyMC44IDczLjcuNmwxOTAtMTkweiIvPjwvc3ZnPg==);
    position: absolute;
    width: 12px;
    height: 12px;
    background-size: contain;
    transform: rotate(-90deg);
    top: 30%;
    left: 40%;
}
.arrow:nth-child(2) {
    top: 42%;
}

@keyframes bounceAlpha {
    0% {
        opacity: 1;
        transform: rotate(-90deg) translateX(0px) scale(1);
    }
    25% {
        opacity: 0;
        transform: rotate(-90deg) translateX(10px) scale(0.9);
    }
    26% {
        opacity: 0;
        transform: rotate(-90deg) translateX(-10px) scale(0.9);
    }
    55% {
        opacity: 1;
        transform: rotate(-90deg) translateX(0px) scale(1);
    }
}

.back-to-top:hover .arrow {
    animation-name: bounceAlpha;
    animation-duration: 1.4s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
.back-to-top:hover .arrow:nth-child(2) {
    animation-name: bounceAlpha;
    animation-duration: 1.4s;
    animation-delay: 0.2s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@media only screen and (max-width: 575px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
    .back-to-top.show {
        bottom: 10px;
        right: 10px;
    }
    .back-to-top.show:hover {
        bottom: 10px;
    }
    .arrow {
        top: 27%;
        left: 37%;
    }
}
/* scroll to top ends */

/* image-rotate */
.img_rotate {
    animation: rotation 15s infinite linear;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(359deg);
    }
}

/* Dark-mode CSS: for layouts.blade */
body.dark-mode,
.dark-mode {
    background-color: #181a1b !important;
    color: #e0e0e0 !important;
}
.navbar,
.card-header {
    background-color: var(--app-color) !important;
}
.dark-mode .card,
.dark-mode .modal-content,
.dark-mode .dropdown-menu,
.dark-mode .table {
    background-color: #23272b !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}
.dark-mode .form-control,
.dark-mode input,
.dark-mode textarea {
    background-color: #23272b !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}
.dark-mode .btn {
    background-color: #343a40 !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}
.dark-mode .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #202225 !important;
}
.dark-mode .alert {
    background-color: #222 !important;
    color: #f8d7da !important;
}

body.dark-mode table {
    background-color: #23272b;
    color: #f8f9fa;
    border-color: #343a40;
}

body.dark-mode th,
body.dark-mode td {
    background-color: #23272b;
    color: #f8f9fa;
    border-color: #343a40;
}

body.dark-mode thead th {
    background-color: #343a40;
    color: #ffe066;
}

body.dark-mode tbody tr:nth-child(even) {
    background-color: #2c3035;
}

body.dark-mode tbody tr:hover {
    background-color: #495057;
}

body.dark-mode {
    background-color: #181a1b;
    color: #f8f9fa;
}

body.dark-mode .welcome-container {
    background: #23272b;
    color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    padding: 2rem 2.5rem;
    margin: 2rem auto;
    max-width: 600px;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
    color: #ffe066;
}

body.dark-mode a {
    color: #4dc9ff;
}

body.dark-mode a:hover {
    color: #ffe066;
    text-decoration: underline;
}

body.dark-mode .btn-primary {
    background: #343a40;
    color: #ffe066;
    border: none;
}

body.dark-mode .btn-primary:hover {
    background: #ffe066;
    color: #23272b;
}
