﻿/* Global Styles */

html {
    scroll-behavior: smooth;
}

/* CoachLink design tokens */
:root {
    --cl-primary: #70AFFB;
    --cl-primary-dark: #32677E;
    --cl-accent: #F97316;
    --cl-bg: #F8F9FB;
    --cl-card: #FFFFFF;
    --cl-text: #1E293B;
    --cl-text-secondary: #6C757D;
    --cl-border: #E0E6EB;
    --cl-radius-md: 12px;
    --cl-radius-lg: 18px;
    --cl-shadow-soft: 0 2px 12px rgba(15,23,42,0.06);
}

/* Core layout helpers */
.fp-page-container { max-width: 980px; margin: 0 auto; padding: 16px; }
.fp-card { background: var(--cl-card); border-radius: var(--cl-radius-lg); padding: 16px; box-shadow: var(--cl-shadow-soft); border: 1px solid var(--cl-border); }
.fp-section { background: var(--cl-card); border-radius: var(--cl-radius-md); padding: 16px; border: 1px solid var(--cl-border); box-shadow: 0 6px 18px rgba(15,23,42,0.04); }
.fp-btn-primary { background: var(--cl-primary); color: white; border-radius: 999px; border: none; }
.fp-text-primary { color: var(--cl-text); }
.fp-text-secondary { color: var(--cl-text-secondary); }
.fp-badge-primary { background: rgba(112,175,251,0.12); color: var(--cl-primary-dark); padding: 2px 8px; border-radius: 999px; font-weight:600; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
}

p {
    margin: 0;
    color: #333;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #70AFFb;
}

/* Placeholder card (used across admin/dashboard) */
.placeholder-card {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 1rem;
    border: 1px solid #E0E6EB;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    text-align: center;
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EEF6FF;
    border-radius: 12px;
    color: #32677E;
    font-size: 22px;
}

.placeholder-title {
    margin: 0.4rem 0 0.25rem 0;
    font-weight: 700;
    color: #1E293B;
}

.placeholder-text {
    margin: 0;
    color: #6C757D;
}

/* XP row to match coach layout */
.xp-row {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
}

.xp-row div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.xp-row strong {
    font-size: 1.25rem;
    color: #1E293B;
}

.xp-row span {
    color: #6C757D;
    font-size: 0.85rem;
}

/*.ProfilePicBar {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
}

.header-row {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

    .header-row .label {
        font-size: 12px;
        color: #334155;
        margin-bottom: 4px;
        display: block;
    }

.section-divider {
    height: 2px;
    background: #0f172a;
    opacity: .25;
    margin: 12px 0 18px;
}

.container-3col {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 16px;
}

.program-card {
    border: 1px solid #1f2937;
    border-radius: 4px;
    overflow: hidden;
}

    .program-card .head,
    .program-card .row {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 0;
        padding: 10px 12px;
    }

    .program-card .head {
        background: #000;
        color: #fff;
        font-weight: 700;
    }

    .program-card .row {
        background: #e5e7eb;
        border-top: 1px solid #cbd5e1;
    }

.small-muted {
    font-size: 12px;
    color: #64748b;
}

.heatmaps svg {
    width: 140px;
    height: auto;
}

.heatmaps {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

svg {
    shape-rendering: geometricPrecision;
}*/

/* Auth Pages */
/*.auth-bg {
    background: radial-gradient(1200px 600px at 10% -10%, rgba(13,110,253,.12), transparent 60%), radial-gradient(900px 500px at 100% 0%, rgba(111,66,193,.10), transparent 55%), linear-gradient(180deg, var(--bs-body-bg), var(--bs-body-bg));
}

.login-card {
    backdrop-filter: saturate(180%) blur(6px);
}

.register-link {
    text-decoration: none;
}

    .register-link:hover {
        text-decoration: underline;
    }*/

/* Sidebar Account */
/*.sidebar-account {
    position: relative;
}

.account-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--rz-secondary, #3A7DDA);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

    .account-avatar.initials {
        font-size: 0.9rem;
    }

.account-toggle .fw-bold {
    line-height: 1.2;
}

.account-dropdown {
    position: absolute;
    bottom: 60px;
    left: 10px;
    width: 260px;
    background: #fff;
    border-radius: 12px;
    padding: 0.5rem 0;
    z-index: 1000;
}

.account-actions li {
    padding: 8px 16px;
    cursor: pointer;
}

    .account-actions li:hover {
        background: #f5f5f5;
    }

.account-menu {
    background-color: #fff;
    border: 1px solid #ddd;
    z-index: 1000;
}

    .account-menu .menu-item {
        padding: 8px 10px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        color: #333;
    }

        .account-menu .menu-item:hover {
            background-color: #f5f5f5;
        }

.account-btn {
    width: 100%;
    border-radius: 0;
    background: #71affc !important;
    text-align: left;
    border-top: var(--rz-panel-menu-item-border);
}

.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: #ffffff;
    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;
}

.SidebarBehavior {
    display: flex;
    flex-direction: column;
    height: 100%;
}*/

/* Mobile Sidebar */
/*@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;
    }
}*/



/* Inputs  */
.rz-textbox {
    border-radius: 8px;
    padding: 10px;
}

.rz-message-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.welcome-card {
    border-radius: 12px;
}

/* General form items */
.CleanFormLabel {
    display: block;
    font-weight: 600;
    color: #6C757D;
    margin-bottom: 4px;
}

.UnitNote {
    font-size: 0.8rem;
    color: #94A3B8;
    margin-top: 4px;
}

/* Frequency slider */
.frequency-slider {
    position: relative;
    padding-top: 1rem;
}

    .frequency-slider input[type=range] {
        width: 100%;
        accent-color: #70AFFb;
        cursor: pointer;
    }

.frequency-value {
    position: absolute;
    top: -.4rem;
    right: 0;
    font-weight: 600;
    color: #70AFFB;
}

/* Pop animation */
@keyframes pop {
    0% {
        transform: scale(.95);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.bodytype-card,
.activity-card,
.frequency-slider {
    animation: pop .4s ease forwards;
}

/* Goal & Bodytype cards */
.activity-card,
.bodytype-card,
.goal-card {
    flex: 1 1 160px;
    background: #fff;
    border: 2px solid #E0E6EB;
    border-radius: 1rem;
    text-align: center;
    padding: 1.25rem 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .activity-card:hover,
    .bodytype-card:hover,
    .goal-card:hover {
        border-color: #70AFFB;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(112, 175, 251, 0.2);
    }

    .activity-card.selected,
    .bodytype-card.selected,
    .goal-card.selected {
        border-color: #70AFFB;
        background: #F0F7FF;
    }

.material-icons,
.material-icons-outlined {
    display: block;
    margin: 0 auto 0.25rem auto;
    font-size: 36px;
}

/* Tabs */
.rz-tabview {
    border: none !important;
    background: transparent;
}

.rz-tabview-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    background: #fff;
    border-bottom: 1px solid #E0E6EB;
    padding: 0.75rem;
    white-space: nowrap;
}

    .rz-tabview-nav::-webkit-scrollbar {
        display: none;
    }

    .rz-tabview-nav li {
        flex: 0 0 auto;
        border: none;
        background: #f8f9fb;
        color: #6b7280;
        font-weight: 600;
        padding: 0.6rem 1rem;
        border-radius: 6px;
        transition: all 0.2s ease-in-out;
    }

        .rz-tabview-nav li:hover {
            background: #f1f5f9;
            color: #1E293B;
        }

.rz-tabview-selected {
    background: #70AFFB !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(112,175,251,0.3);
}

.rz-tabview-panels {
    background: #fff;
    padding: 1rem;
    animation: fadeSlide 0.3s ease-in-out;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quickview dialog */
.quickview-dialog .rz-dialog {
    border-radius: 0;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.quickview-dialog .rz-dialog-content {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

/* Mobile full-screen */
@media (max-width: 768px) {
    .quickview-dialog .rz-dialog {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .quickview-dialog .rz-dialog-content {
        height: 100vh;
    }

    .qv-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
    }

    .qv-container {
        height: 100vh;
    }
}

/* Desktop modal */
@media (min-width: 768px) {
    div .quickview-dialog.rz-dialog[style] {
        width: 1024px !important;
        max-width: 90vw !important;
        max-height: 90vh !important;
        margin: 2rem auto !important;
        border-radius: 8px !important;
    }

    div.quickview-dialog .rz-tabview-panel {
        overflow-y: auto;
        height: 67vh !important;
    }
}

/* Quick view icons */
.qv-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    justify-content: center;
    align-items: center;
    gap: 1.75rem;
    padding: 2rem;
    min-height: calc(100vh - 325px);
    max-width: 700px;
    margin: 0 auto;
}

.qv-icon-btn {
    width: 150px;
    height: 110px;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    border-radius: 12px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform .2s ease, box-shadow .2s ease;
    font-weight: 600;
}

    .qv-icon-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(112,175,251,0.25);
    }

    .qv-icon-btn .rzi {
        font-size: 28px;
        color: #32677E;
        margin-bottom: 0.25rem;
    }

@media (max-width: 640px) {
    .qv-icon-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        max-width: 100%;
    }
}

/* Client Header */
.qv-client-header {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8F9FB;
    border-bottom: 1px solid #E0E6EB;
    padding: 1rem 1.5rem;
    border-radius: 12px 12px 0 0;
}

.qv-client-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qv-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px #E0E6EB;
}

.qv-client-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.qv-goal {
    color: #70AFFB;
    font-size: .85rem;
}

/* Training Plan Cards */
.plan-card {
    background: #fff;
    border: 1px solid #E0E6EB;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    padding: 1rem 1.25rem;
    margin-bottom: 12px;
}

    .plan-card:hover {
        box-shadow: 0 6px 12px rgba(0,0,0,0.06);
        transform: translateY(-2px);
    }

    .plan-card h4 {
        margin: 0 0 .25rem 0;
        font-size: 1.05rem;
        font-weight: 600;
    }

.plan-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: .2rem;
}

.plan-status {
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: .2rem .6rem;
    border-radius: 9999px;
}

    .plan-status.active {
        background: var(--rz-success);
    }

    .plan-status.archived {
        background: var(--rz-danger);
    }

.plan-meta {
    font-size: .8rem;
    color: #475569;
}










/* Equipment Selector */
.equipment-container {
    padding: 1.5rem;
}

.env-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}

.env-card {
    background: #F8FAFC;
    border: 2px solid #E0E6EB;
    border-radius: 1rem;
    text-align: center;
    padding: 1.25rem 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .env-card:hover {
        transform: translateY(-3px);
        border-color: #70AFFB;
        background: linear-gradient(180deg, #F8FBFF 0%, #E6F0FF 100%);
    }

    .env-card.selected {
        border-color: #70AFFB;
        background: #F0F7FF;
    }

.equipment-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

/* Coach Profile */
.coach-profile-dialog {
    padding: 0;
    font-family: 'Inter', sans-serif;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #F8FAFB;
    border: 2px solid #E0E6EB;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.profile-header-info h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.specialty-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.specialty-badge {
    background: #EFF6FF;
    color: #2563EB;
    border: 1px solid #BFDBFE;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.8rem;
}

/* De-square Radzen buttons */
.rz-button {
    border-radius: 999px !important; /* pill buttons like MyPT */
    font-size: .85rem;
}



/* Cards */
.rz-card {
    background: var(--cl-card-bg);
    border-radius: var(--cl-radius-xl);
    box-shadow: var(--cl-shadow-soft);
    border: none;
}










.fp-page-container {
    max-width: 850px;
  
   
}

.fp-page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: .25rem;
    color: #1E293B;
}

.fp-page-subtitle {
    color: #6C757D;
    margin-bottom: 1.5rem;
}

.fp-card {
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.fp-admin-card {
    padding: 1.5rem;
    border-radius: 18px;
    cursor: pointer;
    transition: all .2s;
}

    .fp-admin-card:hover {
        background: #F8F9FB;
        box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    }

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.help-text, .legal-text {
    color: #6C757D;
    margin: .5rem 0 1rem;
}


.sub-pill {
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(180deg, #ffdf55, #ffdf55);
    border: 1.5px solid #70AFFB;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #32677E;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

    /* Icon inside pill */
    .sub-pill .small-icon {
        font-size: 1rem;
        color: #32677E;
    }

    /* Hover (desktop) */
    .sub-pill:hover {
        background: #e3edff;
        border-color: #559ff8;
        cursor: pointer;
        transform: translateY(-1px);
    }
/* Active plan */
.sub-badge.active-plan {
    background: #E8F1FF;
    border-color: #70AFFB;
    color: #32677E;
}

/* Trial badge */
.sub-badge.trial-badge {
    background: #FFF5E6;
    border-color: #F97316;
    color: #B6530F;
}

/* No plan */
.sub-badge.no-plan {
    background: #F1F5F9;
    color: #64748B;
    border-color: #CBD5E1;
}
.sub-badge {
    display: inline-block;
    padding: 4px 10px;
    text-align:center;
    font-size: 0.80rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid transparent;
    line-height: 1.2;
}

/* Impersonation banner */
.impersonation-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(90deg, rgba(112,175,251,0.12), rgba(50,103,126,0.06));
    border: 1px solid rgba(112,175,251,0.25);
    color: #0F172A;
    padding: 10px 14px;
    border-radius: 10px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.impersonation-banner strong {
    color: #32677E;
}

.impersonation-banner .btn-link {
    color: #0B63A8;
    text-decoration: underline;
    padding: 0;
    margin-left: 8px;
}

@media (max-width: 768px) {
    .impersonation-banner {
        padding: 8px 10px;
        font-size: 0.95rem;
        border-radius: 8px;
    }
}