/**
 * Hussein Rehab Dashboard — Frontend Styles
 * Modern, polished design for client-facing rehab dashboard.
 * Color scheme: Navy (#0f172a), white, blue accent (#3b82f6)
 */

:root {
    --hrd-navy: #0f172a;
    --hrd-navy-light: #1e293b;
    --hrd-navy-muted: #334155;
    --hrd-blue: #3b82f6;
    --hrd-blue-hover: #2563eb;
    --hrd-blue-light: #eff6ff;
    --hrd-blue-border: #bfdbfe;
    --hrd-green: #22c55e;
    --hrd-green-dark: #16a34a;
    --hrd-green-light: #f0fdf4;
    --hrd-green-border: #bbf7d0;
    --hrd-yellow: #f59e0b;
    --hrd-yellow-light: #fffbeb;
    --hrd-red: #ef4444;
    --hrd-gray-50: #f8fafc;
    --hrd-gray-100: #f1f5f9;
    --hrd-gray-200: #e2e8f0;
    --hrd-gray-300: #cbd5e1;
    --hrd-gray-400: #94a3b8;
    --hrd-gray-500: #64748b;
    --hrd-gray-600: #475569;
    --hrd-gray-700: #334155;
    --hrd-gray-800: #1e293b;
    --hrd-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --hrd-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --hrd-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --hrd-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --hrd-radius: 12px;
    --hrd-radius-sm: 8px;
    --hrd-radius-xs: 6px;
    --hrd-transition: 0.2s ease;
}

/* ==========================================================================
   Base Layout
   ========================================================================== */

.hrd-dashboard,
.hrd-program-view {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--hrd-gray-700);
    line-height: 1.6;
    max-width: 900px;
}

/* ==========================================================================
   Welcome Section
   ========================================================================== */

.hrd-welcome {
    background: linear-gradient(135deg, var(--hrd-navy) 0%, var(--hrd-navy-light) 50%, var(--hrd-blue) 100%);
    color: #fff;
    padding: 32px 36px;
    border-radius: var(--hrd-radius);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.hrd-welcome::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hrd-welcome::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.hrd-welcome h2 {
    color: #fff;
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.hrd-welcome p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 15px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Stats Grid
   ========================================================================== */

.hrd-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.hrd-stat-card {
    background: #fff;
    border: 1px solid var(--hrd-gray-200);
    border-radius: var(--hrd-radius-sm);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--hrd-shadow-sm);
    transition: transform var(--hrd-transition), box-shadow var(--hrd-transition);
}

.hrd-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hrd-shadow-md);
}

.hrd-stat-card .hrd-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--hrd-navy);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hrd-stat-card .hrd-stat-label {
    font-size: 12px;
    color: var(--hrd-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    font-weight: 500;
}

.hrd-stat-card.hrd-stat-completion .hrd-stat-number {
    color: var(--hrd-blue);
}

/* ==========================================================================
   Notes Card
   ========================================================================== */

.hrd-notes-card {
    background: var(--hrd-blue-light);
    border: 1px solid var(--hrd-blue-border);
    border-left: 4px solid var(--hrd-blue);
    border-radius: var(--hrd-radius-sm);
    padding: 20px 24px;
    margin-bottom: 28px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.hrd-notes-card::before {
    content: '\f473';
    font-family: dashicons;
    font-size: 20px;
    color: var(--hrd-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.hrd-notes-card > div,
.hrd-notes-card > h3,
.hrd-notes-card > p {
    flex: 1;
}

.hrd-notes-card h3 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--hrd-navy);
}

.hrd-notes-card p {
    margin: 0;
    color: var(--hrd-gray-600);
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================================================
   Program Cards
   ========================================================================== */

.hrd-program-cards {
    display: grid;
    gap: 16px;
}

.hrd-program-card {
    background: #fff;
    border: 1px solid var(--hrd-gray-200);
    border-radius: var(--hrd-radius);
    padding: 24px 28px;
    box-shadow: var(--hrd-shadow-sm);
    transition: all var(--hrd-transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.hrd-program-card:hover {
    box-shadow: var(--hrd-shadow-md);
    transform: translateY(-2px);
    border-color: var(--hrd-blue-border);
    text-decoration: none;
    color: inherit;
}

.hrd-program-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.hrd-program-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--hrd-navy);
}

.hrd-program-card-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--hrd-gray-500);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hrd-program-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hrd-program-card-meta span::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--hrd-gray-300);
    border-radius: 50%;
}

.hrd-program-card-meta span:first-child::before {
    display: none;
}

/* ==========================================================================
   Status Badges
   ========================================================================== */

.hrd-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hrd-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hrd-status-active {
    background: var(--hrd-green-light);
    color: var(--hrd-green-dark);
}
.hrd-status-active::before { background: var(--hrd-green); }

.hrd-status-completed {
    background: var(--hrd-blue-light);
    color: var(--hrd-blue-hover);
}
.hrd-status-completed::before { background: var(--hrd-blue); }

.hrd-status-paused {
    background: var(--hrd-yellow-light);
    color: #92400e;
}
.hrd-status-paused::before { background: var(--hrd-yellow); }

/* ==========================================================================
   Progress Bars
   ========================================================================== */

.hrd-progress {
    margin-top: 8px;
}

.hrd-progress-bar {
    height: 8px;
    background: var(--hrd-gray-100);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}

.hrd-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--hrd-blue), var(--hrd-blue-hover));
    border-radius: 10px;
    transition: width 0.6s ease;
    min-width: 0;
}

.hrd-progress-text {
    font-size: 12px;
    color: var(--hrd-gray-500);
    text-align: right;
    font-weight: 500;
}

/* ==========================================================================
   Back Link & Section Headers
   ========================================================================== */

.hrd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hrd-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color var(--hrd-transition);
}

.hrd-back-link:hover {
    color: var(--hrd-blue-hover);
    text-decoration: none;
}

.hrd-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--hrd-navy);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   Program View Header
   ========================================================================== */

.hrd-program-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.hrd-program-header h2 {
    margin: 0;
    color: var(--hrd-navy);
    font-size: 24px;
    font-weight: 700;
}

.hrd-program-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

button.hrd-print-btn,
.hrd-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid var(--hrd-gray-300);
    border-radius: var(--hrd-radius-xs);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--hrd-gray-600);
    transition: all var(--hrd-transition);
}

button.hrd-print-btn:hover,
.hrd-print-btn:hover {
    background: var(--hrd-gray-50);
    border-color: var(--hrd-gray-400);
    color: var(--hrd-gray-800);
}

.hrd-print-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   Week Accordion
   ========================================================================== */

.hrd-weeks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hrd-week-item {
    background: #fff;
    border: 1px solid var(--hrd-gray-200);
    border-radius: var(--hrd-radius);
    overflow: hidden;
    box-shadow: var(--hrd-shadow-sm);
    transition: all var(--hrd-transition);
}

.hrd-week-item:hover {
    box-shadow: var(--hrd-shadow);
}

.hrd-week-item.locked {
    opacity: 0.55;
}

.hrd-week-item.current {
    border-color: var(--hrd-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), var(--hrd-shadow);
}

.hrd-week-item.completed {
    border-left: 4px solid var(--hrd-green);
}

button.hrd-week-toggle,
.hrd-week-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    background: #fff;
    border: none;
    width: 100%;
    text-align: left;
    transition: background var(--hrd-transition);
    gap: 12px;
    color: inherit;
}

button.hrd-week-toggle:hover,
.hrd-week-toggle:hover {
    background: var(--hrd-gray-50);
    color: inherit;
}

.hrd-week-toggle-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.hrd-week-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    transition: all var(--hrd-transition);
}

.hrd-week-item.locked .hrd-week-icon {
    background: var(--hrd-gray-100);
    color: var(--hrd-gray-400);
}

.hrd-week-item.current .hrd-week-icon {
    background: var(--hrd-blue);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.hrd-week-item.completed .hrd-week-icon {
    background: var(--hrd-green);
    color: #fff;
}

.hrd-week-toggle-info h4 {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 600;
    color: var(--hrd-navy);
}

.hrd-week-toggle-info small {
    color: var(--hrd-gray-500);
    font-size: 12px;
    font-weight: 400;
}

.hrd-week-toggle-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.hrd-week-badge {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hrd-week-badge-locked {
    background: var(--hrd-gray-100);
    color: var(--hrd-gray-500);
}

.hrd-week-badge-current {
    background: var(--hrd-blue-light);
    color: var(--hrd-blue);
}

.hrd-week-badge-completed {
    background: var(--hrd-green-light);
    color: var(--hrd-green-dark);
}

.hrd-week-chevron {
    font-size: 12px;
    color: var(--hrd-gray-400);
    transition: transform 0.25s ease;
    display: flex;
    align-items: center;
}

.hrd-week-item.expanded .hrd-week-chevron {
    transform: rotate(180deg);
}

.hrd-week-content {
    display: none;
    padding: 0 24px 24px;
    border-top: 1px solid var(--hrd-gray-100);
}

.hrd-week-item.expanded .hrd-week-content {
    display: block;
}

.hrd-week-item.locked .hrd-week-content {
    display: none !important;
}

.hrd-week-description {
    color: var(--hrd-gray-600);
    font-size: 14px;
    margin: 16px 0;
    padding: 14px 16px;
    background: var(--hrd-gray-50);
    border-radius: var(--hrd-radius-xs);
    border-left: 3px solid var(--hrd-blue);
    line-height: 1.6;
}

/* ==========================================================================
   Day Cards
   ========================================================================== */

.hrd-days-grid {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.hrd-day-card {
    background: var(--hrd-gray-50);
    border: 1px solid var(--hrd-gray-200);
    border-radius: var(--hrd-radius-sm);
    overflow: hidden;
    transition: all var(--hrd-transition);
}

.hrd-day-card.completed {
    border-color: var(--hrd-green-border);
    background: var(--hrd-green-light);
}

button.hrd-day-toggle,
.hrd-day-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    transition: background var(--hrd-transition);
    color: inherit;
}

button.hrd-day-toggle:hover,
.hrd-day-toggle:hover {
    background: rgba(0, 0, 0, 0.02);
    color: inherit;
}

.hrd-day-toggle-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hrd-day-toggle-left h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--hrd-navy);
}

.hrd-day-count {
    font-size: 12px;
    color: var(--hrd-gray-500);
    background: var(--hrd-gray-100);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.hrd-day-card.completed .hrd-day-count {
    background: var(--hrd-green-border);
    color: var(--hrd-green-dark);
}

.hrd-day-check {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--hrd-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    transition: all var(--hrd-transition);
}

.hrd-day-card.completed .hrd-day-check {
    background: var(--hrd-green);
    border-color: var(--hrd-green);
    color: #fff;
}

.hrd-day-content {
    display: none;
    padding: 0 18px 18px;
    border-top: 1px solid var(--hrd-gray-200);
}

.hrd-day-card.expanded .hrd-day-content {
    display: block;
}

.hrd-day-notes {
    font-size: 13px;
    color: var(--hrd-gray-600);
    padding: 12px 14px;
    background: #fff;
    border-radius: var(--hrd-radius-xs);
    margin: 14px 0;
    border-left: 3px solid var(--hrd-blue);
    line-height: 1.6;
}

/* ==========================================================================
   Exercise Items
   ========================================================================== */

.hrd-exercise-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.hrd-exercise-item {
    background: #fff;
    border: 1px solid var(--hrd-gray-200);
    border-radius: var(--hrd-radius-sm);
    overflow: hidden;
    transition: all var(--hrd-transition);
}

.hrd-exercise-item:hover {
    box-shadow: var(--hrd-shadow-sm);
}

.hrd-exercise-item.completed {
    border-color: var(--hrd-green-border);
}

.hrd-exercise-item.completed .hrd-exercise-header {
    background: var(--hrd-green-light);
}

.hrd-exercise-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    transition: background var(--hrd-transition);
}

.hrd-exercise-header:hover {
    background: var(--hrd-gray-50);
}

.hrd-exercise-item.completed .hrd-exercise-header:hover {
    background: var(--hrd-green-light);
}

.hrd-exercise-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--hrd-blue-light);
    color: var(--hrd-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all var(--hrd-transition);
}

.hrd-exercise-item.completed .hrd-exercise-number {
    background: var(--hrd-green);
    color: #fff;
}

.hrd-exercise-title {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    color: var(--hrd-navy);
    min-width: 0;
}

.hrd-exercise-params {
    display: flex;
    gap: 6px;
    font-size: 12px;
    color: var(--hrd-gray-500);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.hrd-exercise-params span {
    background: var(--hrd-gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

.hrd-exercise-body {
    display: none;
    padding: 0 18px 18px;
    border-top: 1px solid var(--hrd-gray-100);
}

.hrd-exercise-item.expanded .hrd-exercise-body {
    display: block;
}

/* Video */
.hrd-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--hrd-radius-sm);
    background: #000;
    margin: 16px 0;
}

.hrd-video-container iframe,
.hrd-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hrd-exercise-instructions {
    font-size: 14px;
    line-height: 1.7;
    color: var(--hrd-gray-600);
    margin-bottom: 16px;
    padding: 14px 16px;
    background: var(--hrd-gray-50);
    border-radius: var(--hrd-radius-xs);
}

.hrd-exercise-instructions p {
    margin: 0 0 8px;
}

.hrd-exercise-instructions p:last-child {
    margin-bottom: 0;
}

.hrd-exercise-custom-notes {
    background: var(--hrd-yellow-light);
    border-left: 3px solid var(--hrd-yellow);
    padding: 12px 16px;
    border-radius: 0 var(--hrd-radius-xs) var(--hrd-radius-xs) 0;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.hrd-exercise-custom-notes strong {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #92400e;
    font-weight: 700;
}

/* ==========================================================================
   Completion Button
   ========================================================================== */

button.hrd-complete-btn,
.hrd-complete-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 24px;
    border: 2px solid var(--hrd-gray-200);
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--hrd-gray-500);
    transition: all var(--hrd-transition);
    margin-top: 4px;
    line-height: 1.4;
}

button.hrd-complete-btn:hover,
.hrd-complete-btn:hover {
    border-color: var(--hrd-green);
    color: var(--hrd-green);
    background: var(--hrd-green-light);
}

button.hrd-complete-btn.completed,
.hrd-complete-btn.completed {
    background: var(--hrd-green);
    border-color: var(--hrd-green);
    color: #fff;
}

button.hrd-complete-btn.completed:hover,
.hrd-complete-btn.completed:hover {
    background: var(--hrd-green-dark);
    border-color: var(--hrd-green-dark);
    color: #fff;
}

.hrd-complete-btn .hrd-check-icon {
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all var(--hrd-transition);
}

.hrd-complete-btn.completed .hrd-check-icon {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Files Section
   ========================================================================== */

.hrd-files-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--hrd-gray-200);
}

.hrd-files-section h4 {
    margin: 0 0 10px;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--hrd-gray-500);
    letter-spacing: 0.5px;
    font-weight: 700;
}

.hrd-file-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--hrd-gray-200);
    border-radius: var(--hrd-radius-xs);
    margin-bottom: 6px;
    text-decoration: none;
    color: var(--hrd-navy);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--hrd-transition);
}

.hrd-file-link:hover {
    background: var(--hrd-blue-light);
    border-color: var(--hrd-blue-border);
    color: var(--hrd-blue);
    text-decoration: none;
}

.hrd-file-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--hrd-gray-400);
    transition: color var(--hrd-transition);
}

.hrd-file-link:hover .dashicons {
    color: var(--hrd-blue);
}

/* ==========================================================================
   Progress Page
   ========================================================================== */

.hrd-progress-page h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--hrd-navy);
    margin: 0 0 24px;
}

/* Overall circle */
.hrd-progress-overview {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.hrd-progress-circle {
    width: 160px;
    height: 160px;
    position: relative;
}

.hrd-progress-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.hrd-progress-circle-bg {
    fill: none;
    stroke: var(--hrd-gray-100);
    stroke-width: 10;
}

.hrd-progress-circle-fill {
    fill: none;
    stroke: var(--hrd-blue);
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

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

.hrd-progress-circle-number {
    font-size: 38px;
    font-weight: 800;
    color: var(--hrd-navy);
    line-height: 1;
    letter-spacing: -1px;
}

.hrd-progress-circle-label {
    font-size: 12px;
    color: var(--hrd-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-top: 4px;
}

/* Streak */
.hrd-streak {
    text-align: center;
    padding: 24px 20px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    border-radius: var(--hrd-radius);
    color: #fff;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.hrd-streak::before {
    content: '🔥';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    opacity: 0.2;
}

.hrd-streak-number {
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.hrd-streak-label {
    font-size: 15px;
    opacity: 0.9;
    margin-top: 4px;
    font-weight: 500;
}

/* Week progress bars */
.hrd-week-progress-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hrd-week-progress-item {
    background: #fff;
    border: 1px solid var(--hrd-gray-200);
    border-radius: var(--hrd-radius-sm);
    padding: 16px 20px;
    box-shadow: var(--hrd-shadow-sm);
}

.hrd-week-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.hrd-week-progress-header strong {
    color: var(--hrd-navy);
    font-weight: 600;
}

.hrd-week-progress-header span {
    color: var(--hrd-gray-500);
    font-size: 13px;
}

/* ==========================================================================
   Contact Card
   ========================================================================== */

.hrd-contact-card {
    background: #fff;
    border: 1px solid var(--hrd-gray-200);
    border-radius: var(--hrd-radius);
    padding: 24px 28px;
    margin-top: 28px;
    box-shadow: var(--hrd-shadow-sm);
}

.hrd-contact-card h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--hrd-navy);
}

.hrd-contact-card .hrd-contact-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hrd-contact-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--hrd-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    background: var(--hrd-gray-50);
    border: 1px solid var(--hrd-gray-200);
    border-radius: var(--hrd-radius-xs);
    transition: all var(--hrd-transition);
}

.hrd-contact-card a:hover {
    background: var(--hrd-blue-light);
    border-color: var(--hrd-blue-border);
    text-decoration: none;
    color: var(--hrd-blue-hover);
}

.hrd-contact-card a .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.hrd-contact-card a.hrd-whatsapp-link {
    color: #25d366;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.hrd-contact-card a.hrd-whatsapp-link:hover {
    background: #dcfce7;
    border-color: #86efac;
}

/* ==========================================================================
   WhatsApp Shortcode Button
   ========================================================================== */

.hrd-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #25d366;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--hrd-transition);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

a.hrd-whatsapp-btn,
.hrd-whatsapp-btn {
    color: #fff;
}

a.hrd-whatsapp-btn:hover,
.hrd-whatsapp-btn:hover {
    background: #128c7e;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   Empty States
   ========================================================================== */

.hrd-empty {
    text-align: center;
    padding: 60px 24px;
    background: #fff;
    border: 2px dashed var(--hrd-gray-200);
    border-radius: var(--hrd-radius);
}

.hrd-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.hrd-empty h3 {
    color: var(--hrd-navy);
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.hrd-empty p {
    color: var(--hrd-gray-500);
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
}

/* ==========================================================================
   Loading Spinner
   ========================================================================== */

.hrd-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--hrd-gray-500);
}

.hrd-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--hrd-gray-200);
    border-top-color: var(--hrd-blue);
    border-radius: 50%;
    animation: hrd-spin 0.6s linear infinite;
}

@keyframes hrd-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 768px) {
    .hrd-welcome {
        padding: 24px 20px;
    }

    .hrd-welcome h2 {
        font-size: 22px;
    }

    .hrd-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hrd-stat-card .hrd-stat-number {
        font-size: 24px;
    }

    .hrd-stat-card {
        padding: 16px 12px;
    }

    .hrd-program-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hrd-exercise-header {
        flex-wrap: wrap;
    }

    .hrd-exercise-params {
        width: 100%;
        margin-top: 4px;
    }

    .hrd-week-toggle {
        padding: 14px 16px;
    }

    .hrd-week-content {
        padding: 0 16px 16px;
    }

    .hrd-program-card {
        padding: 20px;
    }

    .hrd-contact-card a {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
}

@media screen and (max-width: 480px) {
    .hrd-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .hrd-stat-card {
        padding: 14px 10px;
    }

    .hrd-stat-card .hrd-stat-number {
        font-size: 20px;
    }

    .hrd-week-toggle-right .hrd-week-badge {
        display: none;
    }

    .hrd-exercise-params span {
        font-size: 11px;
        padding: 1px 6px;
    }

    .hrd-contact-card .hrd-contact-links {
        flex-direction: column;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .hrd-dashboard,
    .hrd-program-view {
        color: #000;
        max-width: none;
    }

    .hrd-welcome {
        background: #f0f0f0 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
    }

    .hrd-welcome h2,
    .hrd-welcome p {
        color: #000 !important;
    }

    .hrd-week-content {
        display: block !important;
    }

    .hrd-day-content {
        display: block !important;
    }

    .hrd-exercise-body {
        display: block !important;
    }

    .hrd-complete-btn,
    .hrd-whatsapp-btn,
    .hrd-back-link,
    .hrd-print-btn {
        display: none !important;
    }

    .hrd-video-container {
        display: none;
    }

    .hrd-exercise-item,
    .hrd-day-card,
    .hrd-week-item {
        break-inside: avoid;
    }

    .hrd-week-item {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}
