﻿/* ---------------------------
   MODERN SAAS LAYOUT OVERRIDES
   --------------------------- */
:root {
    /*🔹 Brand*/
    --rz-primary: #71affc;
    --rz-primary-hover: #255CA8;
    --rz-secondary: #F97316;
    /*🔹 Status Colors*/
    --rz-success: #22C55E;
    --rz-warning: #FACC15;
    --rz-danger: #EF4444;
    --rz-info: #3B82F6;
    /*🔹 Text & Background*/
    --rz-text-color: #1E293B;
    --rz-text-secondary-color: #6C757D;
    --rz-background-color: #F8F9FB;
    --rz-card-background-color: #FFFFFF;
    /*🔹 Borders*/
    --rz-border-color: #E0E6EB;
    /*🔹 Sidebar*/
    --rz-sidebar-background-color: #AEC6CF;
    --rz-sidebar-color: #1E293B;
    --rz-sidebar-footer-background-color: #2F5E72;
    --rz-sidebar-footer-color: #fff;
}

:root {
    /* Brand hybrid (CoachLink + MyPT) */
    --cl-primary: #70AFFB; /* your blue */
    --cl-primary-deep: #32677E;
    --cl-accent: #6366F1; /* soft purple for charts/links */
    --cl-bg: #ECEBF0; /* soft app background */
    --cl-card-bg: #FFFFFF;
    --cl-border-subtle: rgba(15,23,42,0.05);
    --cl-shadow-soft: var(--rz-card-shadow);
    --cl-text-main: #111827;
    --cl-text-muted: #6B7280;
    --cl-text-soft: #9CA3AF;
    --cl-radius-xl: 26px; /* MyPT-style corners */
    --cl-radius-lg: 18px;
}
@media (max-width: 768px) {
    /* Hide scrollbar but keep scrolling */
    ::-webkit-scrollbar {
        width: 0px;
        height: 0px;
    }

    * {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge Legacy */
    }

        *::-webkit-scrollbar {
            display: none; /* Chrome, Safari, DuckDuckGo */
        }
}
/* Buttons */
.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
}

    .btn-primary:hover {
        background-color: var(--color-primary-dark);
    }

.btn-secondary {
    background-color: var(--color-secondary);
    color: #fff;
}

    .btn-secondary:hover {
        background-color: var(--color-secondary-hover);
    }



/* GLOBAL */
body {
    background: var(--cl-bg) !important;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    color: var(--cl-text-main);
}

/* HEADER */
.rz-header {
    background: #ffffff !important;
    border-bottom: 1px solid #E5E7EB !important;
}

    .rz-header .rz-row {
        align-items: center;
    }

/* -----------------------------
   MODERN SIDEBAR (Scoped Override)
   ----------------------------- */
/* ROOT SIDEBAR WRAPPER */
:root {
    --rz-panel-menu-item-hover-background-color: #c5dfff;
    --rz-panel-menu-item-active-background-color: #c5dfff;
    --rz-panel-menu-item-active-color: #1E293B;
    --rz-panel-menu-item-color: #1E293B;
}

:root {
    --rz-panel-menu-background-color: #ffffff;
    --rz-panel-menu-item-color: #1E293B;
    --rz-panel-menu-item-hover-color: #1E293B;
    --rz-panel-menu-item-active-color: #32677E;
    --rz-panel-menu-item-background-color: #ffffff;
    --rz-panel-menu-item-hover-background-color: #cbe1fb;
    --rz-panel-menu-item-active-background-color: #E8F1FF;
    /* Second-level (submenu items) */
    --rz-panel-menu-item-2nd-level-color: #262626;
    --rz-panel-menu-item-2nd-level-hover-color: #262626;
    --rz-panel-menu-item-2nd-level-background-color: #eeeeee;
    --rz-panel-menu-item-2nd-level-active-color: #262626;
    --rz-panel-menu-item-2nd-level-active-background-color: #71affc;
}

.SidebarBehavior.rz-sidebar {
    background: #FFFFFF;
    border-right: 1px solid #E5E7EB;
    
}

.rz-panel-menu {
    background: #FFFFFF;
}
/* OVERRIDE NAV ITEMS (MOST IMPORTANT FIX) */
.SidebarBehavior .rz-navigation-item {
    background: #f6f6f6 !important;
    border-radius: 10px;
    margin: 10px 10px;
    padding: 0px; /* handled by item inside */
    box-shadow: var(--rz-card-shadow);
}

/* OVERRIDE PANEL MENU ACTUAL ITEM */
.SidebarBehavior .rz-navigation-item-wrapper-active {
    background: #c5dfff !important;
    color: #000;
}

/* ICON OVERRIDES */
.SidebarBehavior .rz-panelmenu-item .rzi {
    font-size: 20px;
    color: #32677E; /* brand accent */
}



.rz-expander-content {
}




.SidebarBehavior .rz-navigation-item:hover {
    background: #c5dfff !important;
}

    .SidebarBehavior .rz-navigation-item:hover .rz-panelmenu-item,
    .SidebarBehavior .rz-navigation-item:hover .rzi {
        color: var(--rz-panel-menu-item-hover-color) !important;
    }

.SidebarBehavior .rz-state-active {
    background: var(--rz-panel-menu-item-active-background-color) !important;
    border-left: 3px solid #70AFFB;
}

    .SidebarBehavior .rz-state-active .rz-panelmenu-item,
    .SidebarBehavior .rz-state-active .rzi {
        color: var(--rz-panel-menu-item-active-color) !important;
    }


/* Layout structure */
.SidebarBehavior {
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (max-width: 768px) {
    .SidebarBehavior.rz-sidebar {
        padding-bottom: 70px !important;
    }
}

@media (max-width: 768px) {
    .rz-sidebar {
        overflow-y: auto !important;
        overscroll-behavior: contain;
    }
}
/* BODY */
.rz-body {
    padding: .75rem !important;
    background: #ECEBF0 !important;
}

/* dashboard-header */
.dashboard-header {
    background: linear-gradient(135deg, #70AFFB, #32677E);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-radius: 12px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid white;
}

.progress-summary {
    text-align: right;
    flex: 1;
}




/* CARDS */
.rz-card {
    border-radius: var(--cl-radius-xl);
    padding: .75rem !important;
}


/* ACCOUNT MENU (Modern SaaS) */
.sidebar-account {
    padding: 1rem 0.8rem;
    border-top: 1px solid #E5E7EB;
}


.account-btn {
    width: 100%;
    border-radius: 0;
    background: #71affc !important;
    text-align: left;
    box-shadow: var(--rz-card-shadow);
}

.account-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.account-user-name,
.account-user-name-manage,
.account-user-plan {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-user-name {
    font-weight: 600;
    color: #f8f8f8;
    max-width: 180px;
}

.account-user-name-manage {
    font-weight: 600;
    max-width: 250px;
}

.account-user-plan {
    font-size: 0.85rem;
    color: #f8f8f8;
    max-width: 180px;
}

.account-avatar {
    width: 32px;
    height: 32px;
    background: #70AFFB !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: white;
}

.account-menu {
    border-radius: 12px;
    background: white;
    border: 1px solid #E5E7EB;
}

.logout-btn {
    border-radius: 8px !important;
}

/* PROGRESS BAR */
.rz-progressbar-value {
    /*background-color: #70AFFB !important;*/
    border-radius: 20px !important;
}

.rz-progressbar {
    height: 10px !important;
    border-radius: 20px !important;
    background-color: #E5E7EB !important;
}

/* TABS / STACKS / ELEMENTS */
.rz-button {
    border-radius: 10px !important;
}


/* -----------------------------------
   MOBILE BOTTOM NAVIGATION BAR
   ----------------------------------- */

@media (max-width: 768px) {

    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: #ffffff;
        border-top: 1px solid #E5E7EB;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 9999;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    }

    .mobile-nav-btn {
        background: none;
        border: none;
        outline: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 12px;
        color: #1E293B;
        flex: 1;
    }

        .mobile-nav-btn .rzi {
            font-size: 24px;
            margin-bottom: 4px;
            color: #32677E;
        }

        .mobile-nav-btn span {
            font-size: 12px;
            font-weight: 600;
            color: #1E293B;
        }

        .mobile-nav-btn.active .rzi {
            color: #70AFFB;
        }

        .mobile-nav-btn.active span {
            color: #70AFFB;
        }

    .mobile-avatar {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        margin-bottom: 4px;
        border: 2px solid #70AFFB;
        object-fit: cover;
    }



    .rz-dialog:not(.rz-dialog-confirm):not(.rz-dialog-alert):not(.cl-action-sheet) {
        height: calc(100vh - 70px) !important;
    }





    .mobile-nav-btn:active {
        transform: scale(0.92);
        opacity: 0.85;
        transition: transform 0.1s ease, opacity 0.1s ease;
    }

    .mobile-nav-btn.active .rzi {
        color: #70AFFB !important;
    }

    .mobile-nav-btn.active span {
        color: #70AFFB !important;
    }

    /* Prevent page content from hiding behind nav */
    body {
        padding-bottom: 70px !important;
    }
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }
}


.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #ffffff;
    border-top: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}

.mobile-nav-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #1E293B;
    flex: 1;
    padding-top: 6px;
}

    /* Tap animation */
    .mobile-nav-btn:active {
        transform: scale(0.92);
        opacity: 0.85;
    }

/* Primary action button highlight */
.primary-action-btn .rzi {
    color: #F97316;
}

.primary-action-btn span {
    color: #F97316;
}

/* Active state */
.mobile-nav-btn.active .rzi,
.mobile-nav-btn.active span {
    color: #70AFFB !important;
}


@media (max-width: 768px) {
    .rz-sidebar {
        position: fixed !important;
        top: 50px;
        left: 0;
        height: calc(100vh - 50px);
        width: 250px;
        z-index: 1050;
        transition: transform 0.3s ease-in-out;
    }

        .rz-sidebar.rz-closed {
            transform: translateX(-100%);
        }

        .rz-sidebar.rz-open {
            transform: translateX(0);
        }

    .rz-body {
        overflow-x: hidden;
    }
}










/* Shared base card style (like Programs / Contacts / Today’s schedule) */
.cl-list-card {
    background: var(--cl-card-bg);
    border-radius: var(--cl-radius-xl);
    box-shadow: var(--cl-shadow-soft);
    padding: .9rem 1rem;
    margin-bottom: .7rem;
}

/* TASKS */
.task-item {
    @@extend .cl-list-card; /* if your bundler supports; otherwise duplicate */
}


.task-item {
    background: var(--cl-card-bg);
    border-radius: var(--cl-radius-xl);
    box-shadow: var(--cl-shadow-soft);
    padding: .9rem 1rem;
    margin-bottom: .7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

    .task-item .task-info {
        flex: 1;
        min-width: 0;
    }

    .task-item strong {
        display: block;
        font-size: .9rem;
        margin-bottom: .1rem;
    }

    .task-item p {
        margin: 0;
        font-size: .77rem;
        color: var(--cl-text-muted);
    }

    .task-item .rz-button {
        border-radius: 999px !important;
        width: 34px;
        height: 34px;
        padding: 0;
    }

/* ALERTS */
.alert-item {
    background: var(--cl-card-bg);
    border-radius: var(--cl-radius-xl);
    box-shadow: var(--cl-shadow-soft);
    padding: .9rem 1rem;
    margin-bottom: .7rem;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

    .alert-item i.rzi {
        width: 32px;
        height: 32px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        background: #FFF7E5;
        color: #B45309;
        flex-shrink: 0;
    }

    .alert-item strong {
        display: block;
        font-size: .9rem;
        margin-bottom: .1rem;
    }

    .alert-item p {
        margin: 0;
        font-size: .77rem;
        color: var(--cl-text-muted);
    }

/* ACTIVITY FEED */
.feed-card {
    background: var(--cl-card-bg);
    border-radius: var(--cl-radius-xl);
    box-shadow: var(--cl-shadow-soft);
    padding: .9rem 1rem;
    margin-bottom: .7rem;
    display: flex;
    gap: .75rem;
}

.feed-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    background: #E5E7EB;
    flex-shrink: 0;
}

.feed-info strong {
    display: block;
    font-size: .9rem;
}

.feed-info p {
    margin: .1rem 0 .25rem;
    font-size: .78rem;
    color: #4B5563;
}

.feed-info .time {
    font-size: .7rem;
    color: var(--cl-text-soft);
}

.cl-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .75rem;
    margin: 1rem 0 2rem;
}

.cl-action-tile {
    border: none;
    background: var(--cl-card-bg);
    border-radius: var(--cl-radius-xl);
    padding: 1rem;
    box-shadow: var(--cl-shadow-soft);
    display: flex;
    flex-direction: column;
    gap: .5rem;
    align-items: flex-start;
    font-size: .82rem;
    color: var(--cl-text-main);
    text-align: left;
}

    .cl-action-tile .rzi {
        font-size: 22px;
        color: var(--cl-primary-deep);
    }




.menu-item {
    background: #fff;
    border-radius: 26px;
    padding: 1rem 1.1rem;
    margin-bottom: .6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(15,23,42,0.06), 0 0 0 1px rgba(15,23,42,0.03);
    font-size: .9rem;
    font-weight: 500;
    color: #111827;
    cursor: pointer;
    transition: background .12s ease, transform .1s ease;
}

    .menu-item:hover {
        background: #F9FAFB;
        transform: translateY(-1px);
    }

    .menu-item .rzi {
        font-size: 20px;
        color: #32677E;
        margin-right: .75rem;
    }

    .menu-item .arrow {
        margin-left: auto;
        color: #9CA3AF;
        font-size: 20px;
    }

    .menu-item span {
        flex: 1;
    }


.menu-footer {
    text-align: center;
    padding: 1rem 0 .5rem 0;
    font-size: .75rem;
    color: #94A3B8;
    opacity: .7;
}





.quick-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0 1rem;
    /*justify-content: space-between;*/
}

.quick-action {
    border: none;
    background: linear-gradient(180deg, #FFFFFF 0%, #F3F6FB 100%);
    border-radius: var(--cl-radius-xl);
    width: 120px;
    height: 94px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    box-shadow: var(--cl-shadow-soft);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

    /* Icon circle */
    .quick-action .icon-circle {
        width: 38px;
        height: 38px;
        border-radius: 999px;
        background: rgba(112,175,251,0.15); /* your blue with low opacity */
        display: flex;
        justify-content: center;
        align-items: center;
        transition: background .12s ease;
    }

        /* Icon inside */
        .quick-action .icon-circle .rzi {
            font-size: 20px;
            color: var(--cl-primary);
            font-weight: 600;
        }

    .quick-action span {
        font-size: .8rem;
        font-weight: 600;
        color: var(--cl-text-main);
    }

    /* Hover/Tap */
    .quick-action:hover,
    .quick-action:active {
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(15,23,42,0.12);
    }

        .quick-action:hover .icon-circle,
        .quick-action:active .icon-circle {
            background: rgba(112,175,251,0.25);
        }
    .quick-action:active {
        transform: scale(.97);
        box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    }


.profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

    .profile-card h3 {
        margin: 0;
        font-size: 1.2rem;
        font-weight: 600;
    }

    .profile-card p {
        margin: 0;
        color: #6c757d;
        font-size: 0.9rem;
    }
.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f0;
}






.cl-loading-card {
    background: #ffffff;
    border: 1px solid #E0E6EB;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.cl-loading-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cl-loading-icon {
    font-size: 24px;
    color: var(--cl-primary, #70AFFB);
}

.cl-loading-title {
    font-weight: 600;
    font-size: 14px;
    color: #1E293B;
}

.cl-loading-message {
    font-size: 12px;
    color: #6C757D;
    margin-top: 2px;
}

.cl-loading-bar .rz-progressbar {
    height: 6px;
    border-radius: 999px;
}

.cl-loading-bar .rz-progressbar-value {
    border-radius: 999px;
}
