@charset "utf-8";
/* CSS Document */

/*=====Animated Background=====*/ 
body {
    background: #f9fbf4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
}

body.welcome {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Layer */
body.welcome::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;

    background: url('../images/shaklee-protein-background-v2.jpg') center no-repeat;

    animation: bgMove 18s ease-in-out infinite alternate;
    /* faster */
    transform: scale(1.08);
    /* slightly less zoom */
}

/* Softer overlay (LESS WHITE) */
body.welcome::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.25),
            /* reduced from 0.85 */
            rgba(255, 255, 255, 0.35)
            /* reduced from 0.95 */
        );
}

/* Animation (more dynamic) */
@keyframes bgMove {
    0% {
        transform: scale(1.08) translate(0px, 0px);
    }

    50% {
        transform: scale(1.12) translate(-12px, -12px);
    }

    100% {
        transform: scale(1.08) translate(12px, 12px);
    }
}

/* ===== Mobile Background ===== */
@media (max-width: 768px) {

    body.welcome::before {
        background: url('../images/shaklee-protein-background-mobile-v2.jpg') center/cover no-repeat;

        animation: bgMoveMobile 22s ease-in-out infinite alternate;
        /* faster */
        transform: scale(1.04);
    }

    /* EVEN LESS overlay for mobile (more vibrant) */
    body.welcome::after {
        background: linear-gradient(180deg,
                rgba(255, 255, 255, 0.15),
                rgba(255, 255, 255, 0.3));
    }

}

/* Mobile animation */
@keyframes bgMoveMobile {
    0% {
        transform: scale(1.04) translate(0px, 0px);
    }

    50% {
        transform: scale(1.07) translate(-6px, -6px);
    }

    100% {
        transform: scale(1.04) translate(6px, 6px);
    }
}

/* ===== Animated Background END ===== */

/* Header */

.logo {
    width: 36px;
    height: 36px;
    border-radius: 12px;
}

.header-title {
    font-size: 22px;
    font-weight: 700;
}

/* Primary Button */

.btn-protein {
    background: #75BA7A;
    border: none;
    color: white;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-protein:hover {
    background: #4B8F54;
    color: white;
}

.btn-dgreen {
    background: #75BA7A;
    color: white;
}

.btn-dgreen:hover {
    background: #4B8F54;
    color: white;
}

.btn-lgrey {
    background: #f6f6f6;
    color: white;
}

.btn-lgrey:hover {
    background: #75BA7A;
    color: white;
}

/* Welcome */
.feature-icon {
    width: 40px;
    height: 40px;
    background: #f6f6f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #75BA7A;
    font-size: 18px;
}

/* Quick buttons */

.quick-btn {
    border-radius: 12px;
    padding: 14px;
    background: #f6f6f6;
    border: none;
    width: 100%;
    font-weight: 600;
    text-align: center;
}

.quick-btn:hover {
    background: #75BA7A;
    color: #ffffff;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: 0.2s;
}

.product-link:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Apple Card */

.apple-card {
    background: white;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 18px;
}

.apple-card-opacity {
    background: white;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 18px;
    opacity: 0.9;
}

/* Inputs */

.form-control {
    border-radius: 12px;
    padding: 12px;
}

/* Progress Ring */

.progress-ring {
    width: 160px;
    height: 160px;
    margin: auto;
    position: relative;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring circle {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
}

.progress-bg {
    stroke: #e6e6e6;
}

.progress-fill {
    stroke: #4B8F54;
    stroke-dasharray: 440;
    stroke-dashoffset: 200;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-text h2 {
    font-weight: 700;
    margin: 0;
}

.progress-text span {
    color: #888;
    font-size: 13px;
}

/* Food item */

.food-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
    position: relative;
}

.food-item .small {
    font-size: 12px;
}

/* Floating button */

.fab {
    position: fixed;
    bottom: 30px;
    right: 25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.toast {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    text-align: center;
}

/* Active Report Toggle Style */
.toggle-active {
    background-color: #4B8F54 !important;
    color: #fff !important;
    border: none;
}

.toggle-inactive {
    background-color: #f3f4f6;
    color: #333;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.5);
    /* dark transparent */
    z-index: 9999;

    display: flex;
    justify-content: center;
    align-items: center;
}

.email-mobile {
    display: none;
}

@media (max-width: 768px) {
    .email-desktop {
        display: none;
    }

    .email-mobile {
        display: flex;
    }
}

.btn-lbrown {
    background: #EAE1D0;
    color: #212529;
}

.dgreen-bg {
    background-color: #75ba7a;
}