/* Therapist Portal Styles */
:root {
    --tp-green: #5a705a;
    /* Deep Forest Green */
    --tp-green-light: #8fa58f;
    /* Lighter sage */
    --tp-green-dark: #3e4f3e;
    --tp-accent: #c9935b;
    /* Warm terracotta accent */
    --tp-bg: #f0ede8;
    /* Warmer cream/tan background */
    --tp-card-bg: #ffffff;
    --tp-white: #ffffff;
    --tp-text: #2c302a;
    /* Rich dark text */
    --tp-text-light: #5a5e58;
    --tp-border: #d8d5ce;
    --tp-radius: 16px;
}

.pb-new-dashboard {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: var(--tp-text);
    background: var(--tp-bg);
}

/* Header */
.pb-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 0;
    gap: 20px;
}

.pb-dash-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pb-avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.pb-dash-date {
    display: block;
    font-size: 13px;
    color: var(--tp-text-light);
    margin-bottom: 2px;
}

.pb-dash-greeting {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tp-text);
    line-height: 1.2;
}

.notification-bell {
    background: #f5f5f5;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
}

/* Section Headers */
.pb-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pb-section-header.mt-4 {
    margin-top: 2rem;
}

.pb-section-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pb-badge-coming-up {
    background: #eef2ee;
    color: #6b8e6b;
    /* Muted Green */
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pb-link-view-all {
    font-size: 11px;
    font-weight: 700;
    color: #6b8e6b;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Next Appointment Card - V2 Redesign */
.pb-next-card-v2 {
    background: linear-gradient(145deg, #ffffff 0%, #fafaf8 100%);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(90, 112, 90, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 40px;
    border: 1px solid rgba(90, 112, 90, 0.06);
    position: relative;
    overflow: hidden;
}

.pb-next-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tp-green) 0%, var(--tp-green-light) 100%);
}

/* Status Badge Row */
.pb-next-status-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.pb-next-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pb-next-status-badge.confirmed,
.pb-next-status-badge.pending {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
}

.pb-next-status-badge.completed {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
}

.pb-next-status-badge.cancelled {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
}

/* Client Info V2 */
.pb-next-info-v2 {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.pb-next-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.pb-next-avatar-wrapper .pb-client-avatar-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pb-avatar-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid var(--tp-green-light);
    opacity: 0.5;
}

.pb-next-details-v2 {
    flex: 1;
    min-width: 0;
}

.pb-next-details-v2 .pb-client-name-lg {
    margin: 0 0 6px 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--tp-text);
    line-height: 1.2;
}

.pb-next-details-v2 .pb-service-meta {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    color: var(--tp-text-light);
    font-weight: 500;
}

/* Session Info Badges */
.pb-session-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pb-time-badge,
.pb-duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f5f7f5;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tp-green-dark);
}

.pb-time-badge svg,
.pb-duration-badge svg {
    opacity: 0.7;
}

/* Primary Action Button */
.pb-btn-primary-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--tp-green) 0%, var(--tp-green-dark) 100%);
    color: white;
    padding: 18px 28px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px rgba(90, 112, 90, 0.35);
    position: relative;
    overflow: hidden;
}

.pb-btn-primary-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.pb-btn-primary-action:hover::before {
    left: 100%;
}

.pb-btn-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(90, 112, 90, 0.45);
}

.pb-btn-primary-action:active {
    transform: translateY(0);
}

.pb-btn-icon-circle {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pb-btn-icon-circle svg {
    margin-left: 3px;
}

/* Quick Actions Grid V2 */
.pb-quick-actions-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.pb-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 12px;
    background: #fafbfa;
    border: 1px solid #eef1ee;
    border-radius: 14px;
    text-decoration: none;
    color: var(--tp-text);
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    transition: all 0.2s ease;
}

.pb-quick-action:hover {
    background: #f0f4f0;
    border-color: var(--tp-green-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 112, 90, 0.1);
}

.pb-quick-action:active {
    transform: translateY(0);
}

.pb-qa-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #e8ede8 0%, #d8e0d8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tp-green-dark);
    transition: all 0.2s ease;
}

.pb-quick-action:hover .pb-qa-icon {
    background: linear-gradient(135deg, var(--tp-green-light) 0%, var(--tp-green) 100%);
    color: white;
}

/* Form Completion Indicators */
.pb-qa-icon {
    position: relative;
}

.pb-qa-indicator {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #ef5350 0%, #c62828 100%);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(198, 40, 40, 0.4);
    animation: pulse-attention 2s infinite;
}

@keyframes pulse-attention {

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

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.pb-quick-action.needs-attention {
    border-color: #ffcdd2;
    background: linear-gradient(135deg, #fff8f8 0%, #ffebee 100%);
}

.pb-quick-action.needs-attention .pb-qa-icon {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
}

.pb-quick-action.needs-attention:hover .pb-qa-icon {
    background: linear-gradient(135deg, #ef5350 0%, #c62828 100%);
    color: white;
}

.pb-quick-action.completed .pb-qa-icon {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
}

.pb-quick-action.completed:hover .pb-qa-icon {
    background: linear-gradient(135deg, var(--tp-green-light) 0%, var(--tp-green) 100%);
    color: white;
}

/* Responsive for Quick Actions */
@media (max-width: 520px) {
    .pb-quick-actions-v2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pb-next-info-v2 {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pb-session-info {
        justify-content: center;
    }

    .pb-next-status-row {
        justify-content: center;
    }
}

/* Legacy styles kept for backward compatibility */
.pb-next-card:not(.pb-next-card-v2) {
    background: var(--tp-card-bg);
    border-radius: var(--tp-radius);
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
}

.pb-next-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.pb-client-avatar-lg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.pb-next-details {
    flex: 1;
}

.pb-client-name-lg {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.pb-service-meta {
    margin: 0;
    font-size: 0.9rem;
    color: var(--tp-text-light);
}

.pb-next-time {
    text-align: right;
}

.pb-time-lg {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--tp-green-dark);
}

.pb-time-lg small {
    font-size: 0.8rem;
    font-weight: 400;
}

.pb-starts-in {
    font-size: 0.8rem;
    color: var(--tp-text-light);
    font-style: italic;
}

/* Buttons */
.pb-btn-green-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--tp-green);
    color: white;
    padding: 16px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 15px;
    transition: transform 0.1s;
    box-shadow: 0 4px 15px rgba(151, 174, 151, 0.3);
}

.pb-btn-green-full:active {
    transform: scale(0.98);
}

.pb-action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.pb-btn-square {
    background: #f6f8f6;
    border: 1px solid #eef1ee;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: var(--tp-text);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: transform 0.1s;
}

.pb-btn-square:active {
    transform: scale(0.98);
}

.pb-btn-square svg {
    color: var(--tp-green-dark);
}

.pb-btn-white-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f6f8f6;
    border: 1px solid #eef1ee;
    color: var(--tp-text);
    padding: 16px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

/* Upcoming List */
.pb-upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pb-compact-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f0f0;
}

.pb-col-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
    min-width: 50px;
}

.pb-time-sm {
    font-weight: 700;
    font-size: 1rem;
}

.pb-ampm-sm {
    font-size: 0.7rem;
    color: var(--tp-text-light);
    text-transform: uppercase;
}

.pb-col-info {
    flex: 1;
    border-left: 1px solid #eee;
    padding-left: 20px;
}

.pb-client-name-sm {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 700;
}

.pb-service-sm {
    margin: 0;
    font-size: 0.85rem;
    color: var(--tp-text-light);
}

.pb-col-icon {
    color: #ddd;
}

/* ============================
   CLIENT VIEW / PROFILE STYLES
   ============================ */

.pb-client-view-page {
    background: var(--tp-bg);
    max-width: 1000px !important;
}

.pb-back-btn {
    text-decoration: none;
    color: var(--tp-text-light);
}

.pb-header-logo-section {
    flex: 1;
    text-align: center;
}

.pb-logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--tp-text);
}

.pb-dash-user-sm {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pb-user-name-sm {
    font-size: 0.85rem;
    color: var(--tp-text-light);
}

.pb-avatar-circle-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #eee;
}

.pb-client-header-section {
    position: relative;
    padding: 40px 30px;
    margin-bottom: 30px;
    background: var(--tp-green);
    /* Sage Background */
    background: linear-gradient(135deg, var(--tp-green) 0%, var(--tp-green-dark) 100%);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(90, 112, 90, 0.4);
}

.pb-client-avatar-xl {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.pb-client-name-xl {
    font-family: 'Playfair Display', serif;
    /* Or system serif */
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: white;
}

.pb-client-meta {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.pb-client-contact-row {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.pb-text-link {
    font-size: 0.85rem;
    color: var(--tp-text);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    background: white;
    transition: all 0.2s;
    display: inline-block;
}

.pb-text-link:hover {
    border-color: var(--tp-green);
    color: var(--tp-green-dark);
}

/* Stats Row Clean */
.pb-stats-row-clean {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    padding: 24px 20px;
    border-radius: 20px;
    border: none;
    margin-bottom: 25px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pb-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
    padding: 0 15px;
    border-right: 1px solid #eee;
}

.pb-stat-item:last-child {
    border-right: none;
}

.pb-stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--tp-green);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.pb-stat-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tp-text);
}

/* Health List */
.pb-health-list {
    background: white;
    padding: 24px;
    border-radius: 20px;
    border: none;
    border-left: 4px solid var(--tp-green);
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pb-health-row {
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.pb-health-row:last-child {
    border-bottom: none;
}

.pb-health-key {
    font-size: 0.75rem;
    color: var(--tp-text-light);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.pb-health-val {
    font-size: 0.95rem;
    color: var(--tp-text);
    font-weight: 500;
    text-align: right;
}

/* Tabs Text */
.pb-tabs-text {
    display: flex;
    gap: 10px;
    background: #f0f0f0;
    padding: 6px;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.pb-tabs-text a {
    text-decoration: none;
    color: var(--tp-text-light);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pb-tabs-text a:hover {
    background: rgba(255, 255, 255, 0.5);
}

.pb-tabs-text a.active {
    background: white;
    color: var(--tp-green-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pb-tabs-text a.active::after {
    display: none;
}

/* History Card */
.pb-history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pb-history-card {
    background: white;
    padding: 0;
    border-radius: 16px;
    border: none;
    display: flex;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.pb-history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pb-history-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 20px 15px;
    background: linear-gradient(135deg, var(--tp-green) 0%, var(--tp-green-dark) 100%);
    color: white;
}

.pb-h-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

.pb-h-day {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
}

.pb-history-info {
    flex: 1;
    padding: 20px;
}

.pb-h-service {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--tp-text);
}

.pb-h-status {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    letter-spacing: 0.5px;
}

.pb-h-status.green {
    background: var(--tp-green);
    color: white;
}

.pb-h-status.red {
    background: #e74c3c;
    color: white;
}

.pb-h-status.gray {
    background: #95a5a6;
    color: white;
}

.pb-h-meta {
    font-size: 0.85rem;
    color: var(--tp-text-light);
    margin: 8px 0 14px 0;
    display: flex;
    gap: 15px;
    align-items: center;
}

.pb-h-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pb-h-link {
    font-size: 0.8rem;
    color: white;
    text-decoration: none;
    background: var(--tp-green);
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.15s;
}

.pb-h-link:hover {
    background: var(--tp-green-dark);
    transform: translateY(-1px);
}

/* Hide default WordPress page title on Client View page */
.pb-client-view-page~.entry-title,
.page-title,
body.page .entry-header,
body.page article>header,
body.page .page-header {
    display: none !important;
}

/* ============================
   SCHEDULE PAGE STYLES
   ============================ */

.pb-schedule-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: var(--tp-text);
}

/* Schedule Title Bar */
.pb-schedule-title-bar {
    margin-bottom: 25px;
}

.pb-schedule-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--tp-text);
}

/* View Toggle */
.pb-schedule-toggle-wrapper {
    margin-bottom: 25px;
}

.pb-schedule-toggle {
    display: inline-flex;
    background: #f0f0f0;
    padding: 5px;
    border-radius: 10px;
    gap: 5px;
}

.pb-schedule-toggle .pb-toggle-item {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--tp-text-light);
    transition: all 0.2s ease;
}

.pb-schedule-toggle .pb-toggle-item:hover {
    background: rgba(255, 255, 255, 0.5);
}

.pb-schedule-toggle .pb-toggle-item.active {
    background: white;
    color: var(--tp-green-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Calendar Header (Month Navigation) */
.pb-calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.pb-calendar-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tp-text);
    min-width: 200px;
    text-align: center;
}

.pb-month-nav {
    background: white;
    border: 1px solid var(--tp-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--tp-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pb-month-nav:hover {
    background: var(--tp-green);
    color: white;
    border-color: var(--tp-green);
}

/* Calendar Grid */
.pb-calendar-grid {
    background: white;
    border-radius: var(--tp-radius);
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.pb-cal-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.pb-cal-day-name {
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--tp-green);
    padding: 10px 0;
    text-transform: uppercase;
}

.pb-cal-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.pb-cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #fafafa;
    min-height: 50px;
}

.pb-cal-day:hover {
    background: #eef5ee;
}

.pb-cal-day.empty {
    background: transparent;
    cursor: default;
}

.pb-cal-day.is-today {
    background: var(--tp-green);
    color: white;
}

.pb-cal-day.is-today .pb-day-num {
    color: white;
}

.pb-cal-day.has-appt {
    border: 2px solid var(--tp-green);
}

.pb-cal-day.has-appt.is-today {
    border-color: var(--tp-green-dark);
}

.pb-day-num {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--tp-text);
}

.pb-appt-dot {
    width: 6px;
    height: 6px;
    background: var(--tp-accent);
    border-radius: 50%;
    position: absolute;
    bottom: 8px;
}

.pb-cal-day.is-today .pb-appt-dot {
    background: white;
}

/* Day Agenda */
.pb-day-agenda {
    background: white;
    border-radius: var(--tp-radius);
    padding: 25px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pb-agenda-date {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tp-text);
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--tp-border);
}

.pb-agenda-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pb-no-appts {
    color: var(--tp-text-light);
    font-style: italic;
    text-align: center;
    padding: 30px;
}

.pb-agenda-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
    border-left: 4px solid var(--tp-green);
}

.pb-agenda-time {
    font-weight: 700;
    font-size: 1rem;
    color: var(--tp-green-dark);
    min-width: 80px;
}

.pb-agenda-details {
    flex: 1;
}

.pb-agenda-client {
    display: block;
    font-weight: 600;
    color: var(--tp-text);
    text-decoration: none;
    margin-bottom: 4px;
}

.pb-agenda-client:hover {
    color: var(--tp-green);
}

.pb-agenda-service {
    font-size: 0.85rem;
    color: var(--tp-text-light);
}

.pb-agenda-status .pb-status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.pb-status-badge.confirmed {
    background: #e8f5e9;
    color: #2e7d32;
}

.pb-status-badge.pending {
    background: #fff8e1;
    color: #f57f17;
}

.pb-status-badge.completed {
    background: var(--tp-green);
    color: white;
}

.pb-status-badge.cancelled {
    background: #ffebee;
    color: #c62828;
}

/* List View */
.pb-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pb-list-date-header {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--tp-text);
    margin-top: 20px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--tp-border);
}

.pb-list-date-header:first-child {
    margin-top: 0;
}

.pb-list-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pb-lc-time {
    font-weight: 700;
    color: var(--tp-green-dark);
    min-width: 80px;
}

.pb-lc-info {
    flex: 1;
}

.pb-lc-client {
    display: block;
    font-weight: 600;
    color: var(--tp-text);
    text-decoration: none;
    margin-bottom: 3px;
}

.pb-lc-client:hover {
    color: var(--tp-green);
}

.pb-lc-service {
    font-size: 0.85rem;
    color: var(--tp-text-light);
}

.pb-lc-status {
    flex-shrink: 0;
}

/* Grid View */
.pb-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.pb-grid-card {
    background: white;
    border-radius: var(--tp-radius);
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pb-grid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pb-gc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pb-gc-time {
    font-size: 0.85rem;
    color: var(--tp-text-light);
}

.pb-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.pb-status-dot.confirmed {
    background: #2e7d32;
}

.pb-status-dot.pending {
    background: #f57f17;
}

.pb-status-dot.completed {
    background: var(--tp-green);
}

.pb-gc-body h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--tp-text);
}

.pb-gc-body p {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    color: var(--tp-text-light);
}

.pb-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.pb-btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.pb-btn-outline-primary {
    border: 1px solid var(--tp-green);
    color: var(--tp-green);
    background: transparent;
}

.pb-btn-outline-primary:hover {
    background: var(--tp-green);
    color: white;
}

/* Empty State */
.pb-empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--tp-text-light);
}

.pb-empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* View Sections */
.pb-view-section {
    display: none;
}

.pb-view-section.active {
    display: block;
}

/* Responsive */
@media (max-width: 600px) {
    .pb-calendar-grid {
        padding: 15px;
    }

    .pb-cal-day {
        min-height: 40px;
    }

    .pb-day-num {
        font-size: 0.85rem;
    }

    .pb-appt-dot {
        width: 5px;
        height: 5px;
        bottom: 5px;
    }

    .pb-calendar-header h2 {
        font-size: 1.2rem;
        min-width: 150px;
    }

    .pb-agenda-item {
        flex-wrap: wrap;
    }

    .pb-agenda-time {
        min-width: 100%;
        margin-bottom: 5px;
    }
}

/* ============================
   CLIENTS PAGE STYLES
   ============================ */

.pb-clients-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: var(--tp-text);
}

/* Page Header */
.pb-clients-page .pb-page-header {
    margin-bottom: 25px;
}

.pb-clients-page .pb-page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--tp-text);
}

/* Search & Filter Controls */
.pb-clients-controls {
    margin-bottom: 25px;
}

.pb-clients-search-form {
    margin-bottom: 15px;
}

.pb-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.pb-search-icon {
    position: absolute;
    left: 16px;
    font-size: 1rem;
    opacity: 0.5;
}

.pb-search-input-wrapper input[type="text"] {
    width: 100%;
    padding: 14px 16px 14px 45px;
    border: 1px solid var(--tp-border);
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pb-search-input-wrapper input[type="text"]:focus {
    outline: none;
    border-color: var(--tp-green);
    box-shadow: 0 0 0 3px rgba(90, 112, 90, 0.1);
}

/* Filter Chips */
.pb-clients-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pb-filter-chip {
    padding: 8px 18px;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--tp-border);
    color: var(--tp-text-light);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pb-filter-chip:hover {
    background: #f5f5f5;
    border-color: var(--tp-green-light);
}

.pb-filter-chip.active {
    background: var(--tp-green);
    color: white;
    border-color: var(--tp-green);
}

/* Client List */
.pb-clients-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Client Item Card */
.pb-client-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: white;
    border-radius: var(--tp-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s, box-shadow 0.15s;
}

.pb-client-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.pb-client-avatar {
    flex-shrink: 0;
}

.pb-client-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.pb-client-info {
    flex: 1;
    min-width: 0;
}

.pb-client-name {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: var(--tp-text);
    text-decoration: none;
    margin-bottom: 4px;
}

.pb-client-name:hover {
    color: var(--tp-green);
}

.pb-client-meta {
    display: block;
    font-size: 0.85rem;
    color: var(--tp-text-light);
}

.pb-client-actions {
    flex-shrink: 0;
}

.pb-btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.pb-btn-icon:hover {
    background: var(--tp-green-light);
}

/* Modal Styles */
.pb-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.pb-modal.open {
    display: flex;
}

.pb-modal-content {
    background: white;
    border-radius: var(--tp-radius);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pb-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--tp-text-light);
    cursor: pointer;
    line-height: 1;
}

.pb-modal-close:hover {
    color: var(--tp-text);
}

.pb-modal h2 {
    margin: 0 0 20px 0;
    font-size: 1.4rem;
    color: var(--tp-text);
}

.pb-modal textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--tp-border);
    border-radius: 10px;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    margin-bottom: 20px;
    font-family: inherit;
}

.pb-modal textarea:focus {
    outline: none;
    border-color: var(--tp-green);
}

/* Buttons */
.pb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}

.pb-btn-primary {
    background: var(--tp-green);
    color: white;
}

.pb-btn-primary:hover {
    background: var(--tp-green-dark);
}

/* Empty State */
.pb-clients-page .pb-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--tp-radius);
    color: var(--tp-text-light);
}

/* Hide Theme Elements on Therapist Pages */
body.pb-therapist-page #masthead,
body.pb-therapist-page .site-header,
body.pb-therapist-page header.entry-header,
body.pb-therapist-page .page-title,
body.pb-therapist-page .entry-title,
body.pb-therapist-page .wp-block-post-title,
body.pb-therapist-page #site-navigation,
body.pb-therapist-page .main-navigation {
    display: none !important;
}

/* Responsive Clients Page */
@media (max-width: 600px) {
    .pb-clients-page {
        padding: 15px;
    }

    .pb-client-item {
        padding: 12px 15px;
    }

    .pb-client-avatar img {
        width: 40px;
        height: 40px;
    }

    .pb-filter-chip {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
}

/* ============================
   THERAPIST NOTES STYLES
   ============================ */

/* Notes Section Header */
.pb-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pb-section-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--tp-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pb-section-header .icon-blue {
    font-size: 1.1rem;
}

.pb-btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
    background: var(--tp-green);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.pb-btn-sm:hover {
    background: var(--tp-green-dark);
}

/* Notes List */
.pb-notes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.pb-note-card {
    background: white;
    border-radius: var(--tp-radius);
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pb-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--tp-border);
}

.pb-note-author {
    font-weight: 600;
    color: var(--tp-text);
    font-size: 0.95rem;
}

.pb-note-date {
    font-size: 0.8rem;
    color: var(--tp-text-light);
}

.pb-note-content {
    color: var(--tp-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.pb-empty-notes {
    background: white;
    border-radius: var(--tp-radius);
    padding: 40px 20px;
    text-align: center;
    color: var(--tp-text-light);
}

.pb-empty-notes p {
    margin: 0;
}

/* Margin Utility */
.mt-4 {
    margin-top: 25px;
}

/* ============================
   THERAPIST SETTINGS PAGE
   ============================ */

.pb-settings-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.pb-settings-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 30px 0;
    color: var(--tp-text);
}

.pb-settings-section {
    background: white;
    border-radius: var(--tp-radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.pb-settings-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--tp-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pb-settings-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.pb-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pb-form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tp-text);
}

.pb-readonly,
.pb-helper {
    font-weight: 400;
    color: var(--tp-text-light);
    font-size: 0.8rem;
}

.pb-form-group input[type="text"],
.pb-form-group input[type="email"],
.pb-form-group input[type="tel"],
.pb-form-group input[type="password"],
.pb-form-group textarea {
    padding: 12px 14px;
    border: 1px solid var(--tp-border);
    border-radius: 10px;
    font-size: 1rem;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
}

.pb-form-group input:focus,
.pb-form-group textarea:focus {
    outline: none;
    border-color: var(--tp-green);
    background: white;
}

.pb-form-group input:disabled {
    background: #f0f0f0;
    color: #888;
    cursor: not-allowed;
}

.pb-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.pb-static-value {
    padding: 12px 14px;
    background: #f5f5f5;
    border-radius: 10px;
    color: var(--tp-text);
    font-size: 0.95rem;
}

/* Availability Grid */
.pb-availability-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pb-avail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8f8f8;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.pb-avail-row.enabled {
    background: #f0f7f0;
    border-color: var(--tp-green-light);
}

.pb-avail-day {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--tp-text);
    cursor: pointer;
    min-width: 130px;
}

.pb-avail-day input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--tp-green);
}

.pb-avail-times {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pb-time-input {
    padding: 8px 10px;
    border: 1px solid var(--tp-border);
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
}

.pb-time-sep {
    color: var(--tp-text-light);
    font-size: 0.85rem;
}

/* Form Messages */
.pb-form-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.pb-form-message.success {
    background: #d4edda;
    color: #155724;
}

.pb-form-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* Buttons */
.pb-btn-secondary {
    background: #6c757d;
    color: white;
}

.pb-btn-secondary:hover {
    background: #5a6268;
}

/* Responsive */
@media (max-width: 600px) {
    .pb-settings-page {
        padding: 15px;
    }

    .pb-form-row {
        grid-template-columns: 1fr;
    }

    .pb-avail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pb-avail-times {
        width: 100%;
    }
}