﻿/* Set the size of Font Awesome icons to match Material icons */
.fa-icon-size {
    font-size: 17px; /* Adjust the size as needed to match Material icons */
    line-height: 1; /* Ensure the icon is vertically centered */
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 7px;
}

.app-bar-text {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.app-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 18%, rgba(17, 99, 86, .14), transparent 30%),
        radial-gradient(circle at 16% 82%, rgba(49, 152, 152, .12), transparent 32%),
        #eef4f3;
    z-index: 9999;
}

.app-loader::before,
.app-loader::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(17, 99, 86, .08);
    border-radius: 50%;
}

.app-loader::before {
    top: -170px;
    right: -110px;
    width: 380px;
    height: 380px;
}

.app-loader::after {
    bottom: -210px;
    left: -140px;
    width: 460px;
    height: 460px;
}

.app-loader-card {
    position: relative;
    display: flex;
    width: min(420px, 100%);
    flex-direction: column;
    align-items: center;
    padding: 34px 32px 30px;
    border: 1px solid rgba(17, 99, 86, .10);
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 22px 60px rgba(11, 62, 55, .12);
    text-align: center;
    z-index: 1;
}

.app-loader-logo-wrap {
    position: relative;
    display: flex;
    width: 124px;
    height: 124px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #f5faf9;
}

.app-loader-logo {
    width: 106px;
    height: 106px;
    object-fit: contain;
    z-index: 1;
}

.app-loader-pulse {
    position: absolute;
    inset: 3px;
    border: 2px solid rgba(17, 99, 86, .28);
    border-radius: 50%;
    animation: loader-pulse 1.8s ease-out infinite;
}

.app-loader-copy h1 {
    margin: 0;
    color: #173f39;
    font-family: 'AbdElRady', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
}

.app-loader-copy p {
    margin: 6px 0 22px;
    color: #647873;
    font-family: 'AbdElRady', sans-serif;
    font-size: .95rem;
}

.app-loader-track {
    width: min(250px, 82%);
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfeae8;
}

.app-loader-track span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #116356, #45a99a);
    animation: loader-progress 1.45s ease-in-out infinite;
}

@keyframes loader-progress {
    0% {
        transform: translateX(145%);
    }

    50% {
        transform: translateX(-70%);
    }

    100% {
        transform: translateX(145%);
    }
}

@keyframes loader-pulse {
    0% {
        opacity: .8;
        transform: scale(.92);
    }

    75%, 100% {
        opacity: 0;
        transform: scale(1.14);
    }
}

@media (max-width: 600px) {
    .app-loader-card {
        padding: 28px 22px 26px;
        border-radius: 20px;
    }

    .app-loader-logo-wrap {
        width: 108px;
        height: 108px;
    }

    .app-loader-logo {
        width: 92px;
        height: 92px;
    }

    .app-loader-copy h1 {
        font-size: 1.4rem;
    }
}

.custom-light-card {
    min-height: 300px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #B2DFDB; /* Colors.Teal.Lighten5 */
    border-radius: 12px;
    color: black;
}

.custom-elevated-card {
    background-color: #E0F2F1;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    color: black;
}
