:root {
  --primary-color: #1442ea;
  --primary-light: rgba(20, 66, 234, 0.08);
  --primary-dark: #0d2eb8;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #6c757d;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --border-radius: 12px;
  --box-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --box-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --box-shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.15);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Page Container (Reusable)
   ======================================== */

.page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-full-width {
  width: 100%;
}

/* ========================================
   Breadcrumb Navigation (Reusable)
   ======================================== */

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem 0;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.breadcrumb-list li a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumb-list li a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.breadcrumb-separator {
  color: var(--gray-400);
  margin: 0 0.25rem;
}

.breadcrumb-current {
  color: var(--gray-600);
  font-weight: 600;
}

.btn-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  color: var(--dark-color, #2c3e50);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-breadcrumb:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* ========================================
   Hero Section (Reusable)
   ======================================== */

.hero-section {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 123, 255, 0.2);
  position: relative;
  overflow: hidden;
}

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

.engagement-hero-compact {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 123, 255, 0.2);
  position: relative;
  overflow: hidden;
}

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

.engagement-hero-compact .hero-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.engagement-hero-compact .hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.engagement-hero-compact .hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  color: white;
}

.engagement-hero-compact .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.engagement-hero-compact .hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.engagement-hero-compact .hero-meta-item i {
  font-size: 1.1rem;
  opacity: 0.8;
}

.engagement-hero-compact .hero-stats-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.engagement-hero-compact .hero-stat-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  min-width: 120px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.engagement-hero-compact .hero-stat-box:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.engagement-hero-compact .hero-stat-box.hero-stat-success {
  background: rgba(40, 167, 69, 0.2);
  border-color: rgba(40, 167, 69, 0.3);
}

.engagement-hero-compact .hero-stat-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.engagement-hero-compact .hero-stat-label {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.engagement-hero-compact .hero-progress-circle {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.engagement-hero-compact .hero-progress-circle.completed {
  border-color: #fff;
  background: rgba(40, 167, 69, 0.2);
}

.engagement-hero-compact .hero-progress-circle .progress-value {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.engagement-hero-compact .hero-progress-circle .progress-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-info {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-meta-item i {
  font-size: 1.1rem;
  opacity: 0.8;
}

.hero-stats-row {
  display: contents;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  align-items: center;
}

.hero-stat-box {
  text-align: center;
  /* Centered for vertical content */
  padding: 1rem 1.5rem;
  flex: 1;
  /* Allows boxes to grow equally */
  max-width: 150px;
  /* Prevents boxes from getting too wide */
}

.hero-stat-box:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.hero-stat-box.hero-stat-success {
  background: rgba(40, 167, 69, 0.2);
  border-color: rgba(40, 167, 69, 0.3);
}

.hero-stat-value {
  display: block;
  /* Ensures value is on its own line */
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  display: block;
  /* Ensures label is below value */
  font-size: 0.7rem;
}

.hero-progress-circle {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.hero-progress-circle.completed {
  border-color: rgba(40, 167, 69, 0.6);
  background: rgba(40, 167, 69, 0.2);
}

.progress-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.progress-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   Tabs System (Reusable)
   ======================================== */

.tabs-container {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.tabs-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #e9ecef;
  padding: 0;
}

.tabs-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
}

.tab-item {
  flex-shrink: 0;
}

.tab-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
}

.tab-link:hover {
  color: var(--primary-color);
  background: rgba(0, 123, 255, 0.05);
  text-decoration: none;
}

.tab-link.active {
  color: var(--primary-color);
  background: rgba(0, 123, 255, 0.08);
  border-bottom-color: var(--primary-color);
}

.tab-link i {
  font-size: 1.1rem;
}

.tab-badge {
  background: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  min-width: 1.5rem;
  text-align: center;
  line-height: 1;
}

.tab-link:not(.active) .tab-badge {
  background: var(--gray-500);
}

.tabs-content {
  padding: 2rem;
  min-height: 400px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* ========================================
   Modern Cards (Reusable)
   ======================================== */

.card-modern {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.card-modern:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-modern-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e5e7eb;
}

.card-modern-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark-color, #2c3e50);
  margin: 0;
}

.card-modern-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-modern-icon.icon-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
}

.card-modern-icon.icon-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.card-modern-icon.icon-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.card-modern-icon.icon-info {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.card-modern-icon.icon-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.card-modern-body {
  padding: 1.5rem;
}

/* ========================================
   Grid Systems (Reusable)
   ======================================== */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Changed from auto-fit to fixed 2 columns */
  gap: 2rem;
  margin-bottom: 2rem;
}

/* ========================================
   Feedback Cards (Session Feedback - Reusable)
   ======================================== */

.feedback-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
  border-left: 4px solid var(--primary-color);
  width: 100%;
}

.feedback-card:hover {
  background: #f9fafb;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feedback-card:last-child {
  margin-bottom: 0;
}

.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.875rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.feedback-session {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1;
}

.feedback-session .session-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feedback-session .session-separator {
  color: #d1d5db;
  font-weight: 300;
}

.feedback-session .session-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
}

.feedback-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.feedback-rating i {
  font-size: 1.125rem;
  color: #fbbf24;
}

.feedback-rating .rating-score {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin-left: 0.5rem;
}

.feedback-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #374151;
  margin: 0 0 0.875rem 0;
  padding-left: 0.5rem;
  border-left: 3px solid #e5e7eb;
}

.feedback-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.feedback-date {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

.feedback-date i {
  font-size: 1rem;
}

.feedback-score-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: rgba(20, 66, 234, 0.1);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-color);
}

.feedback-score-badge i {
  font-size: 0.9375rem;
}

.feedback-view-link {
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s;
}

.feedback-view-link:hover {
  color: #0f34b8;
  gap: 0.5rem;
}

.feedback-view-link i {
  font-size: 1rem;
}

/* Client Feedback Cards (Variant) */
.client-feedback-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  transition: var(--transition-base);
}

.client-feedback-card:hover {
  box-shadow: var(--box-shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary-color);
}

.client-feedback-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.feedback-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gray-200);
}

.client-feedback-info {
  flex: 1;
}

.feedback-client-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 6px 0;
}

.client-feedback-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--warning-color);
}

.client-feedback-rating i {
  font-size: 16px;
}

.feedback-rating-number {
  margin-left: 8px;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 600;
}

.feedback-date-badge {
  padding: 6px 12px;
  background: var(--primary-light);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.feedback-comment {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
  padding: 14px;
  background: var(--gray-100);
  border-left: 3px solid var(--primary-color);
  border-radius: 6px;
  margin-bottom: 14px;
  font-style: italic;
}

.client-feedback-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--gray-200);
  font-size: 12px;
  color: var(--gray-600);
}

.client-feedback-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========================================
   Progress Components (Reusable)
   ======================================== */

.progress-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f3f4f6;
}

.progress-info {
  flex: 1;
}

.progress-percentage {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}

.progress-subtitle {
  font-size: 0.9375rem;
  color: #6b7280;
}

.progress-stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.progress-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.stat-badge-completed {
  background-color: #d1fae5;
  color: #065f46;
}

.stat-badge-upcoming {
  background-color: #fef3c7;
  color: #92400e;
}

.stat-badge-remaining {
  background-color: #e5e7eb;
  color: #374151;
}

.progress-stat-badge i {
  font-size: 1rem;
}

/* ========================================
   Session Cards (Reusable)
   ======================================== */

.sessions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.sessions-grid-card {
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  cursor: pointer;
  margin-bottom: 10px;
}

.sessions-grid-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(20, 66, 234, 0.1);
  transform: translateY(-2px);
}

.sessions-grid-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.sessions-grid-card-info {
  flex: 1;
}

.session-grid-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.session-grid-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
  line-height: 1.3;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

.session-grid-title:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.sessions-grid-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

.session-grid-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.session-grid-meta-item i {
  font-size: 0.875rem;
}

.session-status-badge {
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  flex-shrink: 0;
}

.badge-status-completed {
  background-color: #4caf50;
  color: #fff;
}

.badge-status-scheduled {
  background-color: #1e40af;
  color: #fff;
}

.badge-status-proposed {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-status-unscheduled {
  background-color: #f3f4f6;
  color: #fffa00;
}

.sessions-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.sessions-section-header i {
  font-size: 1.125rem;
  color: var(--primary-color);
}

.sessions-section-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.sessions-section-count {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  margin-left: auto;
}

.sessions-empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: #9ca3af;
  grid-column: 1 / -1;
}

.sessions-empty-state i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.sessions-view-all {
  text-align: center;
  margin-top: 1rem;
  grid-column: 1 / -1;
}

.sessions-view-all a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.sessions-view-all a:hover {
  color: #0f34b8;
  text-decoration: underline;
}

.sessions-view-all a i {
  font-size: 1rem;
}

/* ========================================
   Action Items (Reusable)
   ======================================== */

.action-checkbox {
  transition: all 0.3s ease;
  position: relative;
}

.action-checkbox:hover {
  border-color: var(--primary-color);
  background: rgba(20, 66, 234, 0.05);
  transform: scale(1.1);
}

.action-checkbox:active {
  transform: scale(0.95);
}

.action-checkbox.checked:hover {
  background: #059669;
  border-color: #059669;
}

.action-checkbox .mdi-loading {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.action-item-card {
  transition: all 0.3s ease;
}

.action-item-card.completed {
  background: #f0f9ff;
  border-color: #10b981;
  opacity: 0.8;
  animation: completeAnimation 0.5s ease;
}

@keyframes completeAnimation {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

.action-item-header {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(20, 66, 234, 0.1);
}

.action-item-header:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.action-content {
  flex: 1;
}

.action-title {
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 8px;
}

.action-description {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
  margin-bottom: 12px;
}

.action-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
}

.action-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.action-meta-item i {
  font-size: 14px;
}

.action-priority {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.priority-high {
  background: #fee2e2;
  color: #dc2626;
}

.priority-medium {
  background: #fef3c7;
  color: #d97706;
}

.priority-low {
  background: #d1fae5;
  color: #059669;
}

/* Simple Action List (Variant) */
.action-list {
  background: var(--primary-light);
  border: 1px solid rgba(20, 66, 234, 0.15);
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  border-radius: 8px;
}

.simple-action-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(20, 66, 234, 0.1);
}

.simple-action-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.simple-action-checkbox {
  width: 20px;
  height: 20px;
  margin-right: 14px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--primary-color);
  flex-shrink: 0;
}

.action-label {
  font-size: 14px;
  color: var(--gray-800);
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
}

/* ========================================
   Document Management (Reusable)
   ======================================== */

.documents-container {
  padding: 20px;
  max-width: 100%;
}

.documents-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0f34b8 100%);
  border-radius: 16px;
  padding: 2rem;
  color: white;
  margin-bottom: 2rem;
}

.documents-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.documents-header-info {
  flex: 1;
}

.documents-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
}

.documents-title i {
  font-size: 1.75rem;
  opacity: 0.9;
}

.documents-subtitle {
  font-size: 1rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.documents-stats {
  display: flex;
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.documents-section {
  margin-bottom: 3rem;
}

.section-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px 16px 0 0;
  margin-bottom: 0;
}

.section-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notes-icon {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0f34b8 100%);
}

.plans-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.related-icon {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0f34b8 100%);
}

.section-header-text {
  flex: 1;
}

.section-title-modern {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 0.25rem 0;
}

.section-description-modern {
  font-size: 0.9375rem;
  color: #718096;
  margin: 0;
  font-weight: 400;
}

.section-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-count-badge {
  background: white;
  color: #1a202c;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.notes-badge {
  border-left: 4px solid #1442ea;
}

.plans-badge {
  border-left: 4px solid #f093fb;
}

.related-badge {
  border-left: 4px solid #4facfe;
}

.btn-upload-modern {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0f34b8 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  margin: 0 auto;
}

.btn-upload-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-upload-modern:active {
  transform: translateY(0);
}

.documents-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 16px 16px;
}

.document-card-modern {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: relative;
}

.document-card-modern:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #cbd5e0;
}

.document-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid #f7fafc;
}

.document-icon-modern {
  width: 64px;
  height: 64px;
  background: #f7fafc;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  border: 1px solid #e2e8f0;
}

.document-actions-modern {
  position: relative;
}

.btn-group-modern {
  display: flex;
  gap: 0.25rem;
}

.btn-action-modern {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.btn-view {
  color: #1442ea;
  border-color: #1442ea;
}

.btn-view:hover {
  background: #1442ea;
  color: white;
}

.btn-download {
  color: #48bb78;
  border-color: #48bb78;
}

.btn-download:hover {
  background: #48bb78;
  color: white;
}

.btn-more {
  color: #718096;
  border-color: #e2e8f0;
}

.btn-more:hover {
  background: #f7fafc;
  color: #4a5568;
}

.document-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 10;
  min-width: 180px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
}

.menu-item:hover {
  background: #f7fafc;
  color: #2d3748;
}

.menu-item.danger {
  color: #e53e3e;
}

.menu-item.danger:hover {
  background: #fed7d7;
  color: #c53030;
}

.menu-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.5rem 0;
}

.document-card-body {
  padding: 1rem 1.5rem 1.5rem;
}

.document-title-modern {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 1rem 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.document-meta-modern {
  display: grid;
  gap: 0.5rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
}

.meta-label {
  font-size: 0.8125rem;
  color: #718096;
  font-weight: 500;
}

.meta-value {
  font-size: 0.8125rem;
  color: #4a5568;
  font-weight: 600;
}

.meta-value.file-type {
  background: #edf2f7;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.documents-empty-state {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  background: #f7fafc;
  border-radius: 16px;
  border: 2px dashed #e2e8f0;
}

.empty-state-content {
  text-align: center;
  max-width: 400px;
  padding: 2rem;
}

.empty-state-icon {
  margin-bottom: 1.5rem;
}

.empty-state-icon i {
  font-size: 4rem;
  color: #cbd5e0;
  opacity: 0.7;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 1rem;
}

.empty-state-description {
  font-size: 1rem;
  color: #718096;
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   Form Elements (Reusable)
   ======================================== */

.form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  display: block;
}

.form-control {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  background: white;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  outline: none;
}

.form-control.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #ef4444;
  font-weight: 500;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25rem;
  padding-right: 3rem;
}

.btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-secondary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background: #4b5563;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(20, 66, 234, 0.2);
}

/* ========================================
   Upload Components (Reusable)
   ======================================== */

.upload-drop-zone {
  border: 2px dashed #cbd5e0;
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  background: white;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  margin-bottom: 1rem;
}

.upload-drop-zone:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.02);
  transform: translateY(-2px);
}

.upload-drop-zone.dragover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.08);
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.upload-drop-content {
  pointer-events: none;
}

.upload-icon {
  font-size: 3.5rem;
  color: #9ca3af;
  margin-bottom: 1.5rem;
  display: block;
  transition: all 0.3s ease;
}

.upload-drop-zone:hover .upload-icon {
  color: #667eea;
  transform: scale(1.1);
}

.upload-title {
  color: #374151;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.upload-description {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.file-preview {
  margin-top: 1rem;
}

.file-preview-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.file-preview-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 12px;
  font-size: 1.75rem;
  color: #667eea;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.file-preview-info {
  flex: 1;
  min-width: 0;
}

.file-preview-name {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
  word-break: break-word;
}

.file-preview-size {
  font-size: 0.8125rem;
  color: #6b7280;
  font-weight: 500;
}

.btn-remove-file {
  background: #ef4444;
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  flex-shrink: 0;
}

.btn-remove-file:hover {
  background: #dc2626;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-remove-file:active {
  transform: scale(0.95);
}

/* ========================================
   Timeline Components (Journey Timeline - Reusable)
   ======================================== */

.journey-timeline {
  position: relative;
  padding-left: 32px;
}

.journey-timeline-item {
  position: relative;
  padding-bottom: 28px;
  border-left: 2px solid #e5e7eb;
  padding-left: 28px;
}

.journey-timeline-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.journey-timeline-dot {
  position: absolute;
  left: -7px;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(20, 66, 234, 0.15);
  transition: all 0.3s ease;
}

.journey-timeline-item:hover .journey-timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(20, 66, 234, 0.2);
}

.journey-timeline-dot.dot-warning {
  background: var(--warning-color);
  box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.15);
}

.journey-timeline-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.journey-timeline-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.journey-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.journey-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.journey-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.journey-card-description {
  font-size: 0.9375rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.journey-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

.journey-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.journey-meta-item i {
  font-size: 1rem;
}

.journey-card-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-journey-compact {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  border: 1px solid #e5e7eb;
}

.btn-journey-compact-primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-journey-compact-primary:hover {
  background: #0f34b8;
  border-color: #0f34b8;
  transform: translateY(-1px);
}

.btn-journey-compact-secondary {
  background: white;
  color: #6b7280;
  border-color: #e5e7eb;
}

.btn-journey-compact-secondary:hover {
  background: #f9fafb;
  color: #374151;
}

/* Activity Timeline (Variant) */
.activity-timeline-wrapper {
  position: relative;
  padding-left: 32px;
  max-height: 550px;
  overflow-y: auto;
}

.activity-timeline-wrapper::-webkit-scrollbar {
  width: 6px;
}

.activity-timeline-wrapper::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 10px;
}

.activity-timeline-wrapper::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 10px;
}

.activity-timeline-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--gray-600);
}

.activity-timeline-item {
  position: relative;
  padding-bottom: 28px;
  border-left: 2px solid var(--gray-200);
  padding-left: 28px;
}

.activity-timeline-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.activity-timeline-dot {
  position: absolute;
  left: -7px;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(20, 66, 234, 0.15);
  transition: var(--transition-base);
}

.activity-timeline-item:hover .activity-timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(20, 66, 234, 0.2);
}

.activity-timeline-dot.dot-warning {
  background: var(--warning-color);
  box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.15);
}

.milestone-item {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: var(--transition-base);
}

.milestone-item:hover {
  background: white;
  box-shadow: var(--box-shadow-sm);
}

.milestone-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.milestone-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 8px;
}

.milestone-text i {
  font-size: 16px;
}

.milestone-badge {
  font-size: 11px;
  color: var(--gray-600);
  background: var(--gray-200);
  padding: 4px 10px;
  border-radius: 12px;
}

/* ========================================
   Assessment Components (Reusable)
   ======================================== */

.assessment-card-item {
  margin-bottom: 1rem;
}

.assessment-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.assessment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.assessment-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.assessment-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.assessment-summary {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.assessment-actions {
  margin-top: 0.5rem;
}

/* ========================================
   Notes Components (Reusable)
   ======================================== */

.notes-summary-stats .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}

.notes-summary-stats .stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.note-item-summary {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color);
  transition: all 0.2s ease;
}

.note-item-summary:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.note-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.note-session-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.note-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.note-shared-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: #10b981;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
}

.note-date {
  font-size: 0.8125rem;
  color: #6b7280;
  font-weight: 500;
}

.note-subject {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.note-summary-text {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 0 0 0.75rem 0;
}

.note-categories {
  display: grid;
  gap: 0.5rem;
}

.note-category {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.category-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  min-width: 70px;
  flex-shrink: 0;
}

.category-value {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}

.session-icon {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0f34b8 100%);
}

.session-badge {
  border-left: 4px solid var(--primary-color);
}

.notes-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 16px 16px;
}

.note-card-modern {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.note-card-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e0;
}

.note-card-header {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid #f7fafc;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.note-title-modern {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.note-card-body {
  padding: 1rem 1.5rem 1.5rem;
}

.note-section {
  margin-bottom: 1.25rem;
}

.note-section:last-child {
  margin-bottom: 0;
}

.note-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.note-section-content {
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

.notes-empty-state {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  background: #f7fafc;
  border-radius: 16px;
  border: 2px dashed #e2e8f0;
}

/* ========================================
   Dashboard Layout & Additional Components
   ======================================== */

.dashboard-wrapper {
  padding: 0;
  min-height: 100vh;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  padding: 32px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  color: white;
  box-shadow: 0 4px 20px rgba(20, 66, 234, 0.2);
  position: relative;
  overflow: hidden;
}

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

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.header-welcome h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: white;
}

.header-welcome h2 span {
  font-weight: 800;
}

.header-welcome p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.header-actions {
  display: flex;
  gap: 12px;
}

.btn-header {
  background: white;
  color: var(--primary-color);
  border: 2px solid white;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-header:hover {
  background: transparent;
  color: white;
  border-color: white;
  transform: translateY(-2px);
}

.priority-alert {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 24px;
  color: white;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.25);
}

.priority-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.priority-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 18px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.priority-item:last-child {
  margin-bottom: 0;
}

.priority-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.priority-text strong {
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}

.priority-text p {
  margin: 0;
  font-size: 13px;
  opacity: 0.95;
}

.btn-priority {
  background: white;
  color: #ff6b6b;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  transition: var(--transition-base);
}

.btn-priority:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(3px);
}

.stat-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 24px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--primary-light);
  border-radius: 50%;
  transform: translate(40%, -40%);
  transition: var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-md);
  border-color: var(--primary-color);
}

.stat-card:hover::before {
  transform: translate(40%, -40%) scale(1.2);
}

.stat-icon-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  position: relative;
  z-index: 1;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  display: block;
}

.stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-value-sub {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-600);
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

.stat-trend.trend-up {
  color: var(--success-color);
}

.stat-trend.trend-down {
  color: var(--danger-color);
}

.stat-trend i {
  font-size: 16px;
}

.section-container {
  background: white;
  border-radius: var(--border-radius);
  padding: 28px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--box-shadow-sm);
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--gray-200);
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: var(--primary-color);
  font-size: 22px;
}

.section-action {
  display: flex;
  gap: 12px;
  align-items: center;
}

.revenue-card {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  border-radius: var(--border-radius);
  padding: 32px;
  color: white;
  box-shadow: 0 4px 20px rgba(20, 66, 234, 0.25);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.revenue-card::before {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.revenue-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.revenue-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  opacity: 0.95;
}

.revenue-amount {
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 8px 0;
  line-height: 1;
}

.revenue-trend {
  font-size: 14px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.revenue-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.revenue-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 18px;
  border-radius: 10px;
  text-align: center;
}

.revenue-item-value {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}

.revenue-item-label {
  font-size: 11px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.metric-box {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  border-radius: var(--border-radius);
  padding: 28px 24px;
  color: white;
  text-align: center;
  box-shadow: 0 4px 16px rgba(20, 66, 234, 0.25);
  transition: var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.metric-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.metric-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(20, 66, 234, 0.35);
}

.metric-box.metric-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  box-shadow: 0 4px 16px rgba(40, 167, 69, 0.25);
}

.metric-box.metric-success:hover {
  box-shadow: 0 8px 24px rgba(40, 167, 69, 0.35);
}

.metric-box.metric-warning {
  background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
  box-shadow: 0 4px 16px rgba(253, 126, 20, 0.25);
}

.metric-box.metric-warning:hover {
  box-shadow: 0 8px 24px rgba(253, 126, 20, 0.35);
}

.metric-box.metric-info {
  background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
  box-shadow: 0 4px 16px rgba(23, 162, 184, 0.25);
}

.metric-box.metric-info:hover {
  box-shadow: 0 8px 24px rgba(23, 162, 184, 0.35);
}

.metric-number {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.metric-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.95;
  margin-bottom: 12px;
}

.metric-sublabel {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.progress-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
  transition: var(--transition-base);
}

.progress-card:hover {
  box-shadow: var(--box-shadow-md);
  transform: translateX(4px);
}

.progress-card.progress-warning {
  border-left-color: var(--warning-color);
}

.progress-card.progress-success {
  border-left-color: var(--success-color);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.progress-client {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gray-200);
}

.progress-info h5 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--gray-900);
}

.progress-info p {
  margin: 0;
  font-size: 12px;
  color: var(--gray-600);
}

.progress-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

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

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color) 0%, #5a67d8 100%);
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar-fill.fill-warning {
  background: linear-gradient(90deg, var(--warning-color) 0%, #ffca2c 100%);
}

.progress-bar-fill.fill-success {
  background: linear-gradient(90deg, var(--success-color) 0%, #20c997 100%);
}

.progress-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.progress-text {
  color: var(--gray-600);
}

.progress-percentage {
  font-weight: 700;
  color: var(--primary-color);
}

.progress-percentage.warning {
  color: var(--warning-color);
}

.progress-percentage.success {
  color: var(--success-color);
}

.engagement-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 2px solid var(--gray-200);
}

.engagement-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}

.engagement-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: var(--transition-base);
}

.engagement-item:hover {
  background: white;
  box-shadow: var(--box-shadow-sm);
}

.engagement-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  min-width: 130px;
}

.engagement-bar {
  flex: 1;
  height: 6px;
  background: var(--gray-200);
  border-radius: 10px;
  margin: 0 16px;
  overflow: hidden;
}

.engagement-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color) 0%, #5a67d8 100%);
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.engagement-percentage {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  min-width: 45px;
  text-align: right;
}

.schedule-item {
  border-left: 4px solid var(--warning-color);
  background: #fff3cd;
  border: 1px solid #ffeeba;
  border-left: 4px solid var(--warning-color);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 14px;
  transition: var(--transition-base);
}

.schedule-item:hover {
  box-shadow: var(--box-shadow-sm);
  transform: translateX(2px);
}

.schedule-item.schedule-info {
  background: #d1ecf1;
  border-color: #bee5eb;
  border-left-color: var(--info-color);
}

.schedule-item.schedule-success {
  background: #d4edda;
  border-color: #c3e6cb;
  border-left-color: var(--success-color);
}

.schedule-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.schedule-details h5 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #856404;
}

.schedule-item.schedule-info .schedule-details h5 {
  color: #0c5460;
}

.schedule-item.schedule-success .schedule-details h5 {
  color: #155724;
}

.schedule-details p {
  margin: 0;
  font-size: 12px;
  color: inherit;
  opacity: 0.9;
}

.schedule-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.satisfaction-box {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  border-radius: var(--border-radius);
  padding: 28px;
  text-align: center;
  color: white;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.25);
}

.satisfaction-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px 0;
  opacity: 0.95;
}

.satisfaction-score {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 12px 0;
}

.satisfaction-label {
  font-size: 13px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.quick-stat-box {
  background: white;
  border: 1px solid var(--gray-200);
  padding: 20px 16px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
}

.quick-stat-box:hover {
  transform: scale(1.05);
  box-shadow: var(--box-shadow-md);
  border-color: var(--primary-color);
}

.quick-stat-value {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1;
}

.quick-stat-label {
  font-size: 12px;
  color: var(--gray-600);
  font-weight: 600;
}

/* Empty State (Unified) */
.empty-state {
  text-align: center;
  padding: 60px 30px;
  color: var(--gray-600);
}

.empty-state i {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.4;
  color: var(--gray-400);
}

.empty-state p {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--gray-600);
}

.empty-state small {
  font-size: 13px;
  color: var(--gray-500);
}

/* Alerts (Unified) */
.alert-info-custom {
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  border-left: 4px solid var(--info-color);
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.alert-info-custom .alert-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alert-info-custom .alert-text {
  font-size: 14px;
  color: #0c5460;
}

.alert-success-custom {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-left: 4px solid var(--success-color);
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.alert-success-custom .alert-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alert-success-custom .alert-text {
  font-size: 14px;
  color: #155724;
}

/* Badges (Unified) */
.badge-custom {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Buttons (Unified) */
.btn-outline-primary-custom {
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  background: transparent;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-outline-primary-custom:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 66, 234, 0.25);
}

/* Utilities */
.text-primary-custom {
  color: var(--primary-color) !important;
}

.bg-primary-light {
  background: var(--primary-light) !important;
}

.mb-section {
  margin-bottom: 24px;
}

.section-spacing {
  padding: 28px 0;
}

.card {
  background: white;
  border-radius: var(--border-radius);
  padding: 24px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition-base);
}

/* ========================================
   Consolidated Responsive Adjustments
   ======================================== */

@media (max-width: 1200px) {
  .coaching-plan-card {
    flex-direction: column;
    /* Stack vertically on medium screens */
  }

  .coaching-plan-header {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    min-width: auto;
    flex-direction: row;
    align-items: flex-start;
  }

  .plan-info .plan-date {
    margin-top: 0;
  }

  .plan-sections-container {
    grid-template-columns: 1fr;
    /* Single column on medium screens */
  }

  .plan-meta {
    grid-template-columns: 1fr;
    /* Single column for meta on medium screens */
  }

  .page-container {
    max-width: 100%;
    padding: 0 1rem;
  }

  .dashboard-grid-2 {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .page-container {
    padding: 0 0.75rem;
  }

  .hero-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-meta {
    gap: 1rem;
  }

  .hero-stats-row {
    display: flex;
    /* Changed from grid to flex for strict horizontal layout */
    justify-content: space-around;
    /* Distributes boxes evenly */
    gap: 1rem;
    align-items: center;
  }

  .tabs-nav {
    padding: 0 0.5rem;
  }

  .tab-link {
    padding: 1rem 0.75rem;
    font-size: 0.85rem;
  }

  .tabs-content {
    padding: 1.5rem 1rem;
  }

  .card-modern-header {
    padding: 1rem;
  }

  .card-modern-body {
    padding: 1rem;
  }

  .summary-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feedback-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .feedback-rating {
    align-self: flex-start;
  }

  .feedback-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .feedback-view-link {
    margin-left: 0;
    align-self: flex-end;
  }

  .progress-overview {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .progress-stats {
    width: 100%;
  }

  .progress-stat-badge {
    flex: 1;
    justify-content: center;
  }

  .sessions-grid {
    grid-template-columns: 1fr;
  }

  .sessions-view-all {
    grid-column: 1;
  }

  .documents-header {
    padding: 1.5rem;
  }

  .documents-header-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .documents-stats {
    align-self: stretch;
    justify-content: center;
  }

  .stat-item {
    flex: 1;
    padding: 1rem;
  }

  .section-header-modern {
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .section-header-left {
    width: 100%;
  }

  .section-header-right {
    width: 100%;
    justify-content: space-between;
  }

  .documents-grid-modern {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .document-card-header {
    padding: 1rem;
  }

  .document-icon-modern {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .btn-group-modern {
    gap: 0.5rem;
  }

  .journey-timeline-card {
    padding: 1rem;
  }

  .journey-card-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .journey-card-actions {
    width: 100%;
    justify-content: space-between;
  }

  .btn-journey-compact {
    flex: 1;
    justify-content: center;
  }

  .note-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .note-meta {
    width: 100%;
    justify-content: space-between;
  }

  .notes-grid-modern {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .dashboard-header {
    padding: 24px 20px;
  }

  .header-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
  }

  .btn-header {
    width: 100%;
    justify-content: center;
  }

  .priority-content {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .btn-priority {
    width: 100%;
  }

  .stat-value {
    font-size: 30px;
  }

  .revenue-amount {
    font-size: 36px;
  }

  .metric-number {
    font-size: 34px;
  }

  .satisfaction-score {
    font-size: 52px;
  }

  .section-container {
    padding: 20px;
  }

  .section-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .section-action {
    width: 100%;
  }

  .revenue-header {
    flex-direction: column;
    gap: 16px;
  }

  .revenue-breakdown {
    grid-template-columns: 1fr;
  }

  .schedule-content {
    flex-direction: column;
    gap: 10px;
  }

  .schedule-badge {
    align-self: flex-start;
  }

  .client-avatar-wrapper {
    width: 100px;
    height: 100px;
    left: 50%;
    transform: translateX(-50%);
    top: -50px;
  }

  .client-profile-details {
    margin-left: 150px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
  }

  .client-name-block {
    width: 100%;
  }

  .client-name {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    word-break: break-word;
    line-height: 1.2;
  }

  .client-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
  }

  .client-actions-header {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
  }

  .client-content-card {
    padding: 20px;
    margin-bottom: 16px;
  }

  .content-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .content-card-action {
    width: 100%;
    justify-content: flex-end;
  }

  .engagement-actions-modern {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  .page-container {
    padding: 0 0.5rem;
  }

  .hero-section {
    padding: 1rem;
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
  }

  .tabs-content {
    padding: 1rem 0.75rem;
  }

  .documents-header {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .documents-title {
    font-size: 1.25rem;
  }

  .documents-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .section-icon-wrapper {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .section-title-modern {
    font-size: 1.125rem;
  }

  .documents-grid-modern {
    gap: 1rem;
    padding: 0.75rem;
  }

  .document-card-body {
    padding: 0.75rem 1rem 1rem;
  }

  .upload-drop-zone {
    padding: 2rem 1rem;
  }

  .upload-icon {
    font-size: 2.5rem;
  }

  .upload-title {
    font-size: 1rem;
  }

  .file-preview-card {
    padding: 1rem;
    gap: 0.75rem;
  }

  .file-preview-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .client-feedback-header {
    flex-direction: column;
    gap: 1rem;
  }

  .client-feedback-rating {
    align-self: flex-start;
  }

  .client-feedback-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .client-feedback-view-link {
    margin-left: 0;
    align-self: flex-end;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dashboard-grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .quick-stats-grid {
    grid-template-columns: 1fr;
  }

  .client-management-header {
    padding: 1rem;
  }

  .client-header-title {
    font-size: 1.25rem;
  }

  .client-tabs-nav {
    padding: 0 0.5rem;
  }

  .client-tab-link {
    padding: 1rem 0.75rem;
    font-size: 0.85rem;
  }

  .client-tabs-content {
    padding: 1rem 0.75rem;
  }

  .client-stats-grid {
    grid-template-columns: 1fr;
  }

  .client-stat-card {
    padding: 1rem;
  }

  .client-stat-value {
    font-size: 1.5rem;
  }

  .client-cover-title {
    font-size: 1.5rem;
  }

  .client-profile-info-section {
    padding: 20px 30px 30px;
    position: relative;
  }

  .client-name-block h2 {
    font-size: 24px;
  }

  .client-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #666;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    min-width: 0;
  }

  .client-content-card {
    padding: 16px;
  }

  .content-card-title {
    font-size: 1.125rem;
  }
}

@media (max-width: 1199px) {
  .engagement-hero-compact {
    gap: 1.5rem;
    padding: 1.75rem;
  }

  .engagement-hero-compact .hero-title {
    font-size: 1.5rem;
  }

  .engagement-hero-compact .hero-meta {
    gap: 1.25rem;
  }

  .engagement-hero-compact .hero-stats-row {
    gap: 0.75rem;
  }

  .engagement-hero-compact .hero-stat-box {
    min-width: 70px;
    padding: 0.875rem;
  }

  .engagement-hero-compact .hero-progress-circle {
    width: 70px;
    height: 70px;
  }

  .engagement-hero-compact .hero-progress-circle .progress-value {
    font-size: 0.9rem;
  }
}

@media (max-width: 991px) {
  .engagement-hero-compact {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .engagement-hero-compact .hero-info {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .engagement-hero-compact .hero-title {
    font-size: 1.375rem;
  }

  .engagement-hero-compact .hero-meta {
    justify-content: center;
    gap: 1rem;
  }

  .engagement-hero-compact .hero-stats-row {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .engagement-hero-compact .hero-stat-box {
    min-width: 85px;
    flex: 0 0 auto;
  }

  .engagement-hero-compact .hero-progress-circle {
    width: 75px;
    height: 75px;
    margin: 0.5rem 0;
  }
}

@media (max-width: 767px) {
  .engagement-hero-compact {
    padding: 1.25rem;
    gap: 1.25rem;
  }

  .engagement-hero-compact .hero-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .engagement-hero-compact .hero-meta {
    gap: 0.875rem;
  }

  .engagement-hero-compact .hero-meta-item {
    font-size: 0.825rem;
  }

  .engagement-hero-compact .hero-stats-row {
    gap: 0.75rem;
  }

  .engagement-hero-compact .hero-stat-box {
    min-width: 75px;
    padding: 0.75rem 0.5rem;
  }

  .engagement-hero-compact .hero-stat-label {
    font-size: 0.65rem;
  }

  .engagement-hero-compact .hero-progress-circle {
    width: 65px;
    height: 65px;
  }

  .engagement-hero-compact .hero-progress-circle .progress-value {
    font-size: 0.875rem;
  }

  .engagement-hero-compact .hero-progress-circle .progress-label {
    font-size: 0.6rem;
  }

  .client-management-header {
    padding: 1.5rem;
  }

  .client-header-title {
    font-size: 1.5rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .client-page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .client-actions-section {
    justify-content: center;
  }

  .client-tabs-content {
    padding: 1.5rem 1rem;
  }

  .client-table-header {
    padding: 1rem;
  }

  .client-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 575px) {
  .engagement-hero-compact {
    padding: 1rem;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .engagement-hero-compact .hero-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
  }

  .engagement-hero-compact .hero-title {
    font-size: 1.125rem;
  }

  .engagement-hero-compact .hero-meta {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .engagement-hero-compact .hero-meta-item {
    font-size: 0.8rem;
  }

  .engagement-hero-compact .hero-stats-row {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .engagement-hero-compact .hero-stat-box {
    flex: 1;
    min-width: 0;
    max-width: none;
    padding: 0.625rem 0.375rem;
  }

  .engagement-hero-compact .hero-stat-label {
    font-size: 0.6rem;
    line-height: 1.2;
  }

  .engagement-hero-compact .hero-progress-circle {
    width: 60px;
    height: 60px;
    border-width: 2px;
    margin: 0.25rem 0 0;
  }

  .engagement-hero-compact .hero-progress-circle .progress-value {
    font-size: 0.8rem;
  }

  .engagement-hero-compact .hero-progress-circle .progress-label {
    font-size: 0.55rem;
  }
}

/* Timeline (Journey Tab) */
.journey-timeline {
  position: relative;
  padding-left: 40px;
}

.journey-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 12px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(
    180deg,
    var(--primary-color) 0%,
    var(--border-color) 50%,
    var(--border-color) 100%
  );
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--border-color);
  z-index: 2;
}

.timeline-dot.completed {
  background: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(20, 66, 234, 0.2);
}

.timeline-dot.in-progress {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.3);
  }
}

.timeline-card {
  background: #fafbfc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.timeline-card:hover {
  background: white;
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateX(2px);
}

.timeline-card.assessment-card {
  background: white;
  border-left: 3px solid var(--primary-color);
}

.timeline-card.final-review-card {
  background: white;
  border-left: 3px solid #f59e0b;
}

.engagement-tab-item {
  flex: 1;
  min-width: 150px;
}

.engagement-tabs-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.engagement-tabs-header {
  background: #fafbfc;
  border-bottom: 2px solid var(--border-color);
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.engagement-tabs-nav li {
  margin-bottom: 0;
}

.engagement-tab-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  position: relative;
  white-space: nowrap;
}

.engagement-tab-link i {
  font-size: 18px;
}

.engagement-tab-link:hover {
  color: var(--primary-color);
  background: rgba(20, 66, 234, 0.05);
}

.engagement-tab-link.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: white;
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--border-color);
  color: var(--text-gray);
  border-radius: 10px;
  font-size: 0.6875rem;
  font-weight: 700;
}

.engagement-tab-link.active .tab-badge {
  background: var(--primary-color);
  color: white;
}

/* Tab Content */
.engagement-tabs-content {
  padding: 32px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

.btn-view-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  height: 35px;
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-view-icon::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.6s ease;
}

.btn-view-icon:hover {
  background: var(--primary-dark, #0056b3);
  border-color: var(--primary-dark, #0056b3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb, 0, 123, 255), 0.3);
  color: white;
  text-decoration: none;
}

.btn-view-icon:hover::before {
  left: 100%;
}

.btn-view-icon:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-view-icon i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.btn-view-icon:hover i {
  transform: translateX(2px);
}

/* Alternative style with text label for better accessibility */
.btn-view-icon.with-text {
  min-width: auto;
  padding: 8px 16px;
  gap: 8px;
}

.btn-view-icon.with-text::after {
  content: 'View Details';
  font-size: 14px;
  font-weight: 500;
}

/* Progress card specific adjustments */
.progress-actions .btn-view-icon {
  background: var(--primary-color, #28a745);
  border-color: var(--primary-color, #28a745);
}

.progress-actions .btn-view-icon:hover {
  background: var(--primary-dark, #1e7e34);
  border-color: var(--primary-dark, #1e7e34);
}

.client-management-header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 123, 255, 0.2);
  position: relative;
  overflow: hidden;
}

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

.header-content-client {
  position: relative;
  z-index: 1;
}

.client-header-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.client-header-title i {
  font-size: 2rem;
  opacity: 0.9;
}

.client-header-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-weight: 400;
}

.client-tabs-modern {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 2rem;
}

.client-tabs-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #e9ecef;
  padding: 0;
}

.client-tabs-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
}

.client-tab-item {
  flex-shrink: 0;
}

.client-tab-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.client-tab-link:hover {
  color: var(--primary-color);
  background: rgba(0, 123, 255, 0.05);
  text-decoration: none;
}

.client-tab-link.active {
  color: var(--primary-color);
  background: rgba(0, 123, 255, 0.08);
  border-bottom-color: var(--primary-color);
}

.client-tab-link i {
  font-size: 1.1rem;
}

.client-tabs-content {
  padding: 2rem;
}

.client-page-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.client-info-section {
  flex: 1;
  min-width: 300px;
}

.client-info-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.client-info-title i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.client-info-description {
  color: var(--gray-600);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
}

.client-actions-section {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-add-client {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(20, 66, 234, 0.3);
}

.btn-add-client:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 66, 234, 0.4);
  color: white;
  text-decoration: none;
}

.btn-add-client:active {
  transform: translateY(0);
}

.btn-add-client i {
  font-size: 1rem;
}

.client-search-container {
  background: white;
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
}

.client-search-header {
  display: flex;
  align-items: center;
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.client-search-icon {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-right: 0.75rem;
}

.client-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.9375rem;
  background: transparent;
  color: var(--gray-700);
}

.client-search-input::placeholder {
  color: var(--gray-400);
}

.client-table-container {
  background: white;
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.client-table-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.client-table-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.client-table-title i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.client-table-wrapper {
  overflow-x: auto;
  min-height: 600px;
}

#myClient {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

#myClient thead th {
  background: #f8fafc;
  color: var(--gray-700);
  font-weight: 600;
  padding: 1rem;
  border-bottom: 2px solid var(--gray-200);
  text-align: left;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#myClient tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}

#myClient tbody tr {
  transition: all 0.2s ease;
}

#myClient tbody tr:hover {
  background: rgba(20, 66, 234, 0.02);
}

.client-name-cell {
  font-weight: 600;
  color: var(--gray-800);
}

.client-email-cell {
  color: var(--primary-color);
}

.client-phone-cell {
  color: var(--gray-600);
}

.client-occupation-cell {
  color: var(--gray-700);
}

.client-date-cell {
  color: var(--gray-500);
  font-size: 0.8125rem;
}

.client-actions-cell {
  text-align: center;
}

.dataTables_wrapper {
  padding: 0;
}

.dataTables_wrapper .dataTables_info {
  padding: 1rem 1.5rem;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_paginate {
  padding: 1rem 1.5rem;
  text-align: right;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 0.5rem 0.75rem;
  margin: 0 0.125rem;
  border-radius: 6px;
  border: 1px solid var(--gray-300);
  background: white;
  color: var(--gray-700);
  text-decoration: none;
  transition: all 0.2s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.client-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.client-stat-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.client-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: 50%;
  transform: translate(30%, -30%);
  transition: all 0.3s ease;
}

.client-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.client-stat-card:hover::before {
  transform: translate(30%, -30%) scale(1.2);
}

.client-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}

.client-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.client-stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

a {
  color: var(--primary-color);
}

/* Add to existing <style> section */

/* Modern Client Actions */
.client-actions-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.actions-primary {
  display: flex;
  gap: 0.25rem;
}

.btn-action-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(20, 66, 234, 0.2);
  white-space: nowrap;
}

.btn-action-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0a2a9e 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 66, 234, 0.3);
  color: white;
  text-decoration: none;
}

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

.btn-action-primary i {
  font-size: 1rem;
}

.actions-dropdown {
  position: relative;
  display: inline-block;
}

.btn-actions-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.125rem;
}

.btn-actions-toggle:hover {
  background: var(--gray-50);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-actions-toggle:focus {
  outline: none;
  ring: 2px solid rgba(20, 66, 234, 0.2);
}

.actions-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 999999999;
  min-width: 220px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
}

.actions-dropdown.show .actions-dropdown-menu,
.actions-dropdown:hover .actions-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-section {
  padding: 0.5rem 0;
}

.dropdown-section:not(:last-child) {
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 1rem;
  margin-bottom: 0.5rem;
}

.action-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 0;
}

.action-item:hover {
  background: var(--gray-50);
  color: var(--gray-900);
  text-decoration: none;
  transform: translateX(2px);
}

.action-item i {
  font-size: 1.125rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* .action-item span {
  flex: 1;
} */

/* Specific action item colors */
.action-item.action-session:hover {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
}

.action-item.action-session:hover i {
  color: var(--success-color);
}

.action-item.action-plan:hover {
  background: rgba(23, 162, 184, 0.1);
  color: var(--info-color);
}

.action-item.action-plan:hover i {
  color: var(--info-color);
}

.action-item.action-edit:hover {
  background: rgba(255, 193, 7, 0.1);
  color: var(--warning-color);
}

.action-item.action-edit:hover i {
  color: var(--warning-color);
}

.action-item.action-whatsapp:hover {
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
}

.action-item.action-whatsapp:hover i {
  color: #25d366;
}

.action-item.action-delete:hover {
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger-color);
}

.action-item.action-delete:hover i {
  color: var(--danger-color);
}

/* Responsive adjustments for actions */
@media (max-width: 768px) {
  .btn-action-primary span {
    display: none;
  }

  .btn-action-primary {
    padding: 0.5rem;
    min-width: 36px;
    justify-content: center;
  }

  .actions-dropdown-menu {
    min-width: 200px;
    right: -50px;
  }

  .action-item {
    padding: 1rem;
    font-size: 0.9375rem;
  }
}

@media (max-width: 576px) {
  .client-actions-modern {
    gap: 0.25rem;
  }

  .actions-dropdown-menu {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    min-width: 280px;
    max-height: 80vh;
    overflow-y: auto;
    margin-top: 0;
  }

  .actions-dropdown.show .actions-dropdown-menu {
    transform: translate(-50%, -50%) !important;
  }
}

/* DataTables integration */
table.dataTable tbody td.client-actions-cell {
  text-align: center;
  vertical-align: middle;
  padding: 0.75rem 0.5rem;
}

/* Loading state for action buttons */
.btn-action-primary.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-action-primary.loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.client-profile-header-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.client-profile-cover {
  height: 200px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.client-cover-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.client-cover-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.client-cover-title i {
  font-size: 2rem;
  opacity: 0.9;
  flex-shrink: 0;
}

.client-cover-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.4;
}

.client-profile-info-section {
  padding: 20px 30px 30px;
  position: relative;
}

.client-avatar-wrapper {
  width: 120px;
  height: 120px;
  position: absolute;
  top: -60px;
  left: 30px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.client-avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.client-profile-details {
  margin-left: 150px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.client-name-block h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.client-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.client-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #666;
  background: #f8f9fa;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.client-meta-item i {
  font-size: 1rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.meta-text {
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: var(--success-color);
  white-space: nowrap;
}

.client-actions-header {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-client-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

/* Client Menu Sidebar */
.client-menu-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 20px;
}

.client-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.client-menu-list li {
  border-bottom: 1px solid #f0f0f0;
}

.client-menu-list li:last-child {
  border-bottom: none;
}

.client-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  color: #555;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
}

.client-menu-link:hover,
.client-menu-link.active {
  background: #f8f9ff;
  color: var(--primary-color);
  text-decoration: none;
}

.client-menu-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-color);
}

.client-menu-link i {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.client-menu-badge {
  margin-left: auto;
  background: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

/* Content Cards */
.client-content-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.content-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f0f0;
}

.content-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.content-card-title i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.content-card-action {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-card-action:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  color: white;
  text-decoration: none;
}

.btn-card-action.secondary {
  background: white;
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
}

.btn-card-action.secondary:hover {
  background: var(--gray-50);
  color: var(--gray-800);
}

/* Engagement Cards */
.engagement-item-modern {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.engagement-item-modern::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-color);
}

.engagement-item-modern:hover {
  background: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.engagement-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  margin-top: 15px;
}

.engagement-title-modern {
  font-size: 1.125rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px 0;
  text-decoration: none;
}

.engagement-title-modern:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.engagement-meta-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.engagement-meta-item-modern {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #666;
}

.engagement-meta-item-modern i {
  font-size: 1rem;
  color: var(--primary-color);
}

.engagement-type-badge-modern {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.type-coaching {
  background: rgba(20, 66, 234, 0.1);
  color: var(--primary-color);
}

.type-mentoring {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
}

.progress-section-modern {
  margin: 16px 0;
}

.progress-label-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.875rem;
}

.progress-bar-modern {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill-modern {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color) 0%, #5a67d8 100%);
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.engagement-actions-modern {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* Latest Items */
.latest-item-modern {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.latest-item-modern:hover {
  background: #f8f9fa;
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.latest-item-header {
  display: flex;
  justify-content: between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 12px;
}

.latest-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  flex: 1;
  line-height: 1.4;
}

.latest-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: #666;
  margin-top: 8px;
}

.latest-item-date {
  color: #999;
}

/* Star Rating */
.star-rating-modern {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #ffc107;
}

.star-rating-modern i {
  font-size: 14px;
}

/* Empty States */
.empty-state-modern {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.empty-state-modern i {
  /* font-size: 48px;
  margin-bottom: 16px; */
  opacity: 0.5;
  color: #ccc;
}

.empty-state-modern p {
  margin: 0;
  font-size: 0.9375rem;
}

.top-breadcrumb-modern {
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  margin-top: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #e9ecef;
}

.btn-breadcrumb-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  color: #495057;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-breadcrumb-modern:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* Client specific dashboard grid */
.client-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.client-stat-card-mini {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.client-stat-card-mini::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: 50%;
  transform: translate(30%, -30%);
  transition: all 0.3s ease;
}

.client-stat-card-mini:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.client-stat-card-mini:hover::before {
  transform: translate(30%, -30%) scale(1.2);
}

.client-stat-icon-mini {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 12px;
  position: relative;
  z-index: 1;
}

.client-stat-value-mini {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}

.client-stat-label-mini {
  font-size: 0.8125rem;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.client-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.client-avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 2rem;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 320px) {
  .client-profile-cover {
    height: 120px;
  }

  .client-cover-title {
    font-size: 1.125rem;
  }

  .client-cover-title i {
    font-size: 1.25rem;
  }

  .client-cover-subtitle {
    font-size: 0.75rem;
  }

  .client-avatar-wrapper {
    width: 80px;
    height: 80px;
    top: -40px;
  }

  .client-avatar-initials {
    font-size: 1.25rem;
  }

  .client-profile-details {
    margin-top: 50px;
    gap: 10px;
  }

  .client-name {
    font-size: 18px;
  }

  .client-meta-item {
    font-size: 0.6875rem;
    padding: 2px 4px;
  }

  .meta-text {
    font-size: 0.6875rem;
    max-width: 60px;
  }

  .client-actions-header {
    flex-direction: column;
    gap: 8px;
  }

  .btn-client-action {
    width: 100%;
    max-width: none;
    padding: 12px 16px;
    flex-direction: row;
    gap: 8px;
  }

  .action-text {
    display: inline;
    font-size: 0.8125rem;
    margin-top: 0;
  }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
  .client-profile-details {
    margin-left: 160px;
    gap: 24px;
  }

  .client-meta-info {
    gap: 18px;
  }

  .client-actions-header {
    gap: 12px;
  }

  .btn-client-action {
    padding: 10px 18px;
    gap: 8px;
  }
}

/* Landscape orientation adjustments for mobile devices */
@media (max-height: 600px) and (orientation: landscape) {
  .client-profile-cover {
    height: 120px;
  }

  .client-cover-title {
    font-size: 1.25rem;
  }

  .client-profile-info-section {
    padding: 10px 20px 20px;
  }

  .client-avatar-wrapper {
    width: 80px;
    height: 80px;
    top: -40px;
  }

  .client-profile-details {
    margin-top: 50px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .client-avatar-wrapper {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }

  .client-profile-header-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  }
}

/* Print styles */
@media print {
  .client-profile-header-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .client-actions-header {
    display: none;
  }

  .client-profile-cover {
    background: #f5f5f5 !important;
    color: #333 !important;
  }

  .client-cover-title,
  .client-cover-subtitle {
    color: #333 !important;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .btn-client-action {
    transition: none;
  }

  .client-profile-header-card {
    transition: none;
  }
}

/* Focus management for keyboard navigation */
.btn-client-action:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.btn-client-action:focus:not(:focus-visible) {
  outline: none;
}

/* ========================================
   Session Detail Enhancements
   ======================================== */

/* Session Hero Enhanced */
.session-hero-enhanced {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 123, 255, 0.2);
  position: relative;
  overflow: hidden;
}

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

.session-hero-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.session-hero-info {
  flex: 1;
}

.session-status-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-transform: capitalize;
}

.session-hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: white;
}

.session-hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.5rem 0;
}

.session-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.session-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.session-meta-item i {
  font-size: 1.125rem;
}

.session-number-display {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.session-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.session-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Prominent Session Actions */
.session-actions-prominent {
  margin-bottom: 2rem;
}

.actions-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.actions-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.actions-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.actions-title i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.session-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: capitalize;
}

.session-status-indicator i {
  font-size: 0.75rem;
}

.session-status-indicator.status-completed {
  background: rgba(34, 197, 94, 0.1);
  color: #059669;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.session-status-indicator.status-scheduled {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.session-status-indicator.status-proposed {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.session-status-indicator.status-unscheduled,
.session-status-indicator.status-cancelled {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
  border: 1px solid rgba(107, 114, 128, 0.2);
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.action-btn::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.6s ease;
}

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

.action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.action-content {
  flex: 1;
}

.action-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.action-subtitle {
  font-size: 0.875rem;
  opacity: 0.8;
  margin: 0;
}

/* Action Button Variants */
.action-btn-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.action-btn-primary .action-icon {
  background: var(--primary-color);
}

.action-btn-primary:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.action-btn-primary:hover .action-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.action-btn-success {
  border-color: var(--success-color);
  color: var(--success-color);
}

.action-btn-success .action-icon {
  background: var(--success-color);
}

.action-btn-success:hover {
  background: var(--success-color);
  color: white;
  border-color: var(--success-color);
}

.action-btn-success:hover .action-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.action-btn-warning {
  border-color: var(--warning-color);
  color: #d97706;
}

.action-btn-warning .action-icon {
  background: var(--warning-color);
}

.action-btn-warning:hover {
  background: var(--warning-color);
  color: white;
  border-color: var(--warning-color);
}

.action-btn-warning:hover .action-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.action-btn-info {
  border-color: var(--info-color);
  color: var(--info-color);
}

.action-btn-info .action-icon {
  background: var(--info-color);
}

.action-btn-info:hover {
  background: var(--info-color);
  color: white;
  border-color: var(--info-color);
}

.action-btn-info:hover .action-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.action-btn-danger {
  border-color: var(--danger-color);
  color: var(--danger-color);
}

.action-btn-danger .action-icon {
  background: var(--danger-color);
}

.action-btn-danger:hover {
  background: var(--danger-color);
  color: white;
  border-color: var(--danger-color);
}

.action-btn-danger:hover .action-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.action-completed-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(34, 197, 94, 0.05);
  border: 2px dashed rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  color: #059669;
  font-weight: 600;
  text-align: center;
  grid-column: 1 / -1;
}

.action-completed-state i {
  font-size: 2rem;
  color: var(--success-color);
}

/* Session Content Grid */
.session-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.main-content {
  min-width: 0;
}

.sidebar-content {
  min-width: 0;
}

/* Session Timeline Card */
.session-timeline-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.timeline-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.timeline-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-title i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.timeline-item {
  display: block;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.timeline-item:hover {
  background: var(--gray-50);
  text-decoration: none;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item.current {
  background: rgba(20, 66, 234, 0.05);
  border-left: 4px solid var(--primary-color);
}

.timeline-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.timeline-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  background: var(--gray-200);
  color: var(--gray-600);
}

.timeline-marker.completed {
  background: var(--success-color);
  color: white;
}

.timeline-marker.scheduled {
  background: var(--primary-color);
  color: white;
}

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

.timeline-session-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0 0 0.25rem 0;
}

.timeline-session-meta {
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* Content blocks */
.content-block {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.content-block h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0 0 0.75rem 0;
}

.content-block p {
  margin: 0;
  line-height: 1.6;
}

/* Item cards for notes, action items */
.item-card-modern {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.item-card-modern:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
  flex: 1;
}

.item-title a {
  color: inherit;
  text-decoration: none;
}

.item-title a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.item-meta {
  font-size: 0.8125rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}

.progress-wrapper {
  margin-top: 1rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  color: var(--gray-600);
}

.progress-bar-container {
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  transition: width 0.3s ease;
  border-radius: 4px;
}

/* Modern button styles */
.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid;
  cursor: pointer;
}

.btn-modern-primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(20, 66, 234, 0.2);
}

.btn-modern-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 66, 234, 0.3);
}

.btn-modern-secondary {
  background: white;
  color: var(--gray-700);
  border-color: var(--gray-300);
}

.btn-modern-secondary:hover {
  background: var(--gray-50);
  color: var(--gray-800);
  text-decoration: none;
}

/* ========================================
   Responsive Design for Session Details
   ======================================== */

@media (max-width: 991px) {
  .session-content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .session-timeline-card {
    position: static;
    max-height: none;
  }

  .actions-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .session-hero-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .session-number-display {
    align-self: center;
  }

  .session-hero-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .session-hero-enhanced {
    padding: 1.5rem;
  }

  .actions-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
  }

  .actions-grid {
    padding: 1.25rem 1.5rem;
  }

  .action-btn {
    padding: 1.25rem;
  }

  .action-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .action-title {
    font-size: 0.9375rem;
  }

  .action-subtitle {
    font-size: 0.8125rem;
  }
}

@media (max-width: 576px) {
  .session-hero-enhanced {
    padding: 1rem;
  }

  .session-hero-title {
    font-size: 1.5rem;
  }

  .session-number-display {
    width: 64px;
    height: 64px;
  }

  .session-number {
    font-size: 1rem;
  }

  .actions-header {
    padding: 1rem;
  }

  .actions-title {
    font-size: 1.125rem;
  }

  .actions-grid {
    padding: 1rem;
    gap: 0.75rem;
  }

  .action-btn {
    padding: 1rem;
    gap: 0.75rem;
  }

  .action-icon {
    width: 36px;
    height: 36px;
    font-size: 1.125rem;
  }

  .action-completed-state {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
  }

  .action-completed-state i {
    font-size: 1.5rem;
  }
}

/* Loading states */
.action-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.action-btn.loading .action-icon i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   Modern Form Components (Reusable)
   ======================================== */

.modern-form-wrapper {
  background: #f9fafb;
  min-height: 100vh;
  padding: 2rem 0;
}

.modern-form-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.modern-form-header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  color: white;
  box-shadow: 0 4px 20px rgba(20, 66, 234, 0.15);
  position: relative;
  overflow: hidden;
}

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

.modern-form-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: white;
  position: relative;
  z-index: 1;
}

.modern-form-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.9375rem;
  position: relative;
  z-index: 1;
}

.modern-form-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.modern-form-breadcrumb a,
.modern-form-breadcrumb span {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.modern-form-breadcrumb a {
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  background: transparent;
}

.modern-form-breadcrumb a:hover {
  color: var(--primary-color);
  background: rgba(20, 66, 234, 0.05);
  text-decoration: none;
}

.modern-form-breadcrumb a i {
  font-size: 1rem;
}

.modern-form-breadcrumb .separator {
  color: #d1d5db;
  font-weight: 400;
  user-select: none;
}

.modern-form-breadcrumb span:not(.separator) {
  color: #111827;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  background: rgba(20, 66, 234, 0.08);
  border-radius: 8px;
}

.modern-form-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 2rem;
}

.modern-form-section {
  padding: 30px;
  border-bottom: 1px solid #f3f4f6;
}

.modern-form-section:last-child {
  border-bottom: none;
}

.modern-section-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.modern-section-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    rgba(20, 66, 234, 0.1) 0%,
    rgba(20, 66, 234, 0.05) 100%
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.modern-section-title {
  flex: 1;
}

.modern-section-title h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.25rem 0;
}

.modern-section-title p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.modern-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.modern-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.modern-form-group.full-width {
  grid-column: 1 / -1;
}

.modern-form-label {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.modern-form-label .required {
  color: #ef4444;
}

.modern-form-label .label-icon {
  font-size: 1rem;
  color: var(--primary-color);
}

.modern-form-input,
.modern-form-select,
.modern-form-textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.9375rem;
  transition: all 0.2s;
  background: white;
  font-family: inherit;
}

.modern-form-input:hover,
.modern-form-select:hover,
.modern-form-textarea:hover {
  border-color: #d1d5db;
}

.modern-form-input:focus,
.modern-form-select:focus,
.modern-form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(20, 66, 234, 0.1);
}

.modern-form-textarea {
  min-height: 150px;
  resize: vertical;
}

.modern-form-helper {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.4;
  margin-top: 0.25rem;
}

.modern-form-helper i {
  margin-right: 0.25rem;
  font-size: 0.875rem;
}

/* Phone Input Styling */
.modern-phone-input {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.modern-country-select {
  flex: 0 0 140px;
  padding: 0.75rem 0.5rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.9375rem;
  background: white;
}

.modern-phone-number {
  flex: 1;
}

/* Radio Button Styling */
.modern-radio-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.modern-radio-option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  position: relative;
}

.modern-radio-option:hover {
  border-color: var(--primary-color);
  background: rgba(20, 66, 234, 0.02);
}

.modern-radio-option input[type='radio'] {
  display: none;
}

.radio-checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  background: white;
  position: relative;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.radio-checkmark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s;
}

.modern-radio-option input[type='radio']:checked + .radio-checkmark {
  border-color: var(--primary-color);
  background: white;
}

.modern-radio-option input[type='radio']:checked + .radio-checkmark::after {
  transform: translate(-50%, -50%) scale(1);
}

.modern-radio-option input[type='radio']:checked ~ .radio-content {
  color: var(--primary-color);
}

.radio-content {
  flex: 1;
}

.radio-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}

.radio-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.4;
}

/* Checkbox Styling */
.modern-checkbox-wrapper {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
}

.modern-checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.modern-checkbox-input {
  display: none;
}

.checkbox-checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background: white;
  position: relative;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.checkbox-checkmark::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s;
}

.modern-checkbox-option input[type='checkbox']:checked + .checkbox-checkmark {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.modern-checkbox-option
  input[type='checkbox']:checked
  + .checkbox-checkmark::after {
  transform: rotate(45deg) scale(1);
}

.checkbox-content {
  flex: 1;
}

.checkbox-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}

.checkbox-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
}

.checkbox-subtitle a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.checkbox-subtitle a:hover {
  text-decoration: underline;
}

/* Form Actions */
.modern-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.modern-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.modern-btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  box-shadow: 0 4px 12px rgba(20, 66, 234, 0.25);
}

.modern-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 66, 234, 0.35);
  color: white;
  text-decoration: none;
}

.modern-btn-secondary {
  background: white;
  color: #6b7280;
  border: 1.5px solid #e5e7eb;
}

.modern-btn-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #6b7280;
  text-decoration: none;
}

/* Loading State */
.modern-btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.modern-btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Validation States */
.modern-form-input.is-invalid,
.modern-form-select.is-invalid,
.modern-form-textarea.is-invalid {
  border-color: #ef4444;
}

.modern-form-input.is-invalid:focus,
.modern-form-select.is-invalid:focus,
.modern-form-textarea.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.modern-form-error {
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: 0.25rem;
}

/* Show/Hide Animation */
.hide {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
}

.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Select2 Modern Styling */
.modern-form-group .select2-container--default .select2-selection--single {
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  height: auto;
  padding: 0.5rem;
  transition: all 0.2s;
}

.modern-form-group
  .select2-container--default
  .select2-selection--single:hover {
  border-color: #d1d5db;
}

.modern-form-group
  .select2-container--default.select2-container--focus
  .select2-selection--single {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(20, 66, 234, 0.1);
}

.modern-form-group
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  padding: 0 0.5rem;
  line-height: 1.5;
  font-size: 0.9375rem;
}

.modern-form-group
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 100%;
  right: 0.5rem;
}

.modern-form-group .select2-dropdown {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.modern-form-group
  .select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: rgba(20, 66, 234, 0.1);
  color: var(--primary-color);
}

/* ========================================
   Responsive Design for Modern Forms
   ======================================== */

@media (max-width: 768px) {
  .modern-form-wrapper {
    padding: 1rem 0;
  }

  .modern-form-container {
    padding: 0 1rem;
  }

  .modern-form-header {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .modern-form-header h1 {
    font-size: 1.5rem;
  }

  .modern-form-section {
    padding: 1.25rem;
  }

  .modern-form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .modern-section-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .modern-form-actions {
    flex-direction: column;
    padding: 1rem;
  }

  .modern-btn {
    width: 100%;
    justify-content: center;
  }

  .modern-phone-input {
    flex-direction: column;
    gap: 1rem;
  }

  .modern-country-select {
    flex: none;
    padding: 0.75rem 0.75rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9375rem;
    background: white;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
  }

  modern-country-select:hover {
    border-color: #d1d5db;
  }

  .modern-country-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(20, 66, 234, 0.1);
  }

  .modern-phone-number {
    flex: 1;
  }

  .modern-radio-group {
    gap: 0.75rem;
  }

  .modern-radio-option {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .modern-form-breadcrumb {
    flex-wrap: wrap;
    padding: 0.625rem 0.875rem;
  }

  .modern-form-breadcrumb a,
  .modern-form-breadcrumb span {
    font-size: 0.8125rem;
    padding: 0.25rem 0.5rem;
  }

  .modern-form-breadcrumb a i {
    font-size: 0.875rem;
  }

  .modern-section-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .modern-section-title h2 {
    font-size: 1.125rem;
  }

  .modern-radio-option {
    padding: 0.875rem;
  }

  .radio-title {
    font-size: 0.9375rem;
  }

  .radio-subtitle {
    font-size: 0.8125rem;
  }

  .checkbox-title {
    font-size: 0.9375rem;
  }

  .checkbox-subtitle {
    font-size: 0.8125rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .modern-form-card {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }

  .modern-form-header {
    box-shadow: 0 6px 30px rgba(20, 66, 234, 0.2);
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .modern-btn,
  .modern-radio-option,
  .modern-checkbox-option,
  .modern-form-input,
  .modern-form-select,
  .modern-form-textarea {
    transition: none;
  }
}

/* Focus management for keyboard navigation */
.modern-btn:focus,
.modern-form-input:focus,
.modern-form-select:focus,
.modern-form-textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.modern-btn:focus:not(:focus-visible),
.modern-form-input:focus:not(:focus-visible),
.modern-form-select:focus:not(:focus-visible),
.modern-form-textarea:focus:not(:focus-visible) {
  outline: none;
}

@media (min-width: 769px) {
  .modern-radio-group {
    gap: 1.25rem;
  }

  .modern-radio-option {
    min-height: auto;
    align-items: center;
  }

  .modern-radio-option .radio-content {
    min-height: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Better phone input visual alignment */
.modern-phone-input .modern-form-label {
  grid-column: 1 / -1;
}

/* Ensure consistent height between country select and phone input */
.modern-country-select,
.modern-phone-number {
  height: 48px;
  display: flex;
  align-items: center;
}

/* Improved Select2 styling for country select */
.modern-phone-input .select2-container--default .select2-selection--single {
  height: 48px;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  display: flex;
  align-items: center;
}

.modern-phone-input
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  line-height: 1.5;
  font-size: 0.9375rem;
}

.modern-phone-input
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 100%;
  right: 0.75rem;
  display: flex;
  align-items: center;
}

/* Fine-tune spacing for better compactness */
.modern-section-title h2 {
  margin-bottom: 0.125rem;
  /* Reduced from 0.25rem */
}

.modern-form-helper {
  margin-top: 0.125rem;
  /* Reduced from 0.25rem */
}

.radio-title {
  margin-bottom: 0.125rem;
  /* Reduced from 0.25rem */
}

.checkbox-title {
  margin-bottom: 0.125rem;
  /* Reduced from 0.25rem */
}

.modern-phone-group {
  display: flex;
  position: relative;
  align-items: stretch;
  width: 100%;
}

.modern-phone-group .input-group-prepend {
  display: flex;
  margin-right: 0;
}

.modern-phone-group .input-group-prepend .modern-country-select {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
  width: 140px;
  min-width: 140px;
  max-width: 140px;
  padding: 0.75rem 2.5rem 0.75rem 0.75rem;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  appearance: none;
  background-color: #f8f9fa;
  border-color: #e5e7eb;
  position: relative;
  z-index: 2;
}

.modern-phone-group .modern-phone-number {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
  flex: 1;
  position: relative;
  z-index: 1;
}

.modern-phone-group .modern-country-select:focus {
  z-index: 3;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(20, 66, 234, 0.15);
  border-right: 1.5px solid var(--primary-color);
}

.modern-phone-group .modern-phone-number:focus {
  z-index: 3;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(20, 66, 234, 0.15);
  border-left: 1.5px solid var(--primary-color);
}

.modern-phone-group .modern-country-select:hover {
  border-color: #d1d5db;
  border-right: 1.5px solid #d1d5db;
}

.modern-phone-group .modern-phone-number:hover {
  border-color: #d1d5db;
  border-left: 1.5px solid #d1d5db;
}

/* Ensure consistent height and styling */
.modern-phone-group .modern-country-select,
.modern-phone-group .modern-phone-number {
  height: 48px;
  border: 1.5px solid #e5e7eb;
  font-size: 0.9375rem;
  transition: all 0.2s;
  background: white;
}

/* Select2 styling for the country select in input group */
.modern-phone-group .select2-container {
  width: 140px !important;
  min-width: 140px;
  max-width: 140px;
}

.modern-phone-group .select2-container--default .select2-selection--single {
  height: 48px;
  border-radius: 10px 0 0 10px;
  border: 1.5px solid #e5e7eb;
  border-right: none;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
}

.modern-phone-group
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  padding: 0 0.75rem;
  line-height: 1.5;
  font-size: 0.875rem;
  color: #374151;
  display: flex;
  align-items: center;
  height: 100%;
}

.modern-phone-group
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 100%;
  right: 0.5rem;
  display: flex;
  align-items: center;
}

.modern-phone-group
  .select2-container--default.select2-container--focus
  .select2-selection--single {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(20, 66, 234, 0.15);
  border-right: 1.5px solid var(--primary-color);
  z-index: 3;
}

.modern-phone-group .select2-dropdown {
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  overflow: hidden;
  z-index: 9999;
}

.modern-phone-group
  .select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: rgba(20, 66, 234, 0.1);
  color: var(--primary-color);
}

/* Enhanced visual connection between the two inputs */
.modern-phone-group .modern-country-select:focus + .modern-phone-number,
.modern-phone-group .modern-phone-number:focus {
  border-left-color: var(--primary-color);
}

/* Validation states for phone group */
.modern-phone-group .is-invalid {
  border-color: #ef4444;
}

.modern-phone-group .is-invalid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.15);
}

/* Responsive adjustments for phone group */
@media (max-width: 576px) {
  .modern-phone-group {
    flex-direction: column;
  }

  .modern-phone-group .input-group-prepend {
    width: 100%;
    margin-bottom: 0.75rem;
  }

  .modern-phone-group .modern-country-select {
    border-radius: 10px;
    border-right: 1.5px solid #e5e7eb;
    width: 100%;
    min-width: auto;
    max-width: none;
  }

  .modern-phone-group .modern-phone-number {
    border-radius: 10px;
    border-left: 1.5px solid #e5e7eb;
  }

  .modern-phone-group .select2-container {
    width: 100% !important;
    min-width: auto;
    max-width: none;
  }

  .modern-phone-group .select2-container--default .select2-selection--single {
    border-radius: 10px;
    border-right: 1.5px solid #e5e7eb;
  }
}

/* Loading state for phone inputs */
.modern-phone-group.loading .modern-country-select,
.modern-phone-group.loading .modern-phone-number {
  opacity: 0.7;
  pointer-events: none;
}

/* Improved accessibility for phone group */
.modern-phone-group .modern-country-select:focus,
.modern-phone-group .modern-phone-number:focus {
  outline: none;
}

/* Better visual hierarchy */
.modern-phone-group .modern-country-select {
  font-weight: 500;
  color: #4b5563;
}

.modern-phone-group .modern-phone-number {
  font-weight: 400;
  color: #111827;
}

.modern-phone-group .modern-phone-number::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* ========================================
   Session Form Enhancements
   ======================================== */

/* Single column content grid for forms */
.session-content-grid-single {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Session form content styling */
.session-form-content {
  padding: 0;
}

.modern-session-form {
  background: transparent;
}

/* Compact section headers for forms */
.modern-section-header-compact {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.modern-section-icon-compact {
  width: 40px;
  height: 40px;
  background: linear-gradient(
    135deg,
    rgba(20, 66, 234, 0.1) 0%,
    rgba(20, 66, 234, 0.05) 100%
  );
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.modern-section-title-compact {
  flex: 1;
}

.modern-section-title-compact h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.25rem 0;
}

.modern-section-title-compact p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

/* Enhanced session hero for non-client pages */
.session-hero-enhanced .session-icon {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.session-hero-enhanced .session-icon i {
  font-size: 2rem;
  color: white;
}

/* Modern breadcrumb */
.top-breadcrumb-modern {
  margin-bottom: 1.5rem;
}

.btn-breadcrumb-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-breadcrumb-modern:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
  text-decoration: none;
}

.btn-breadcrumb-modern i {
  font-size: 1rem;
}

/* Enhanced form sections with better spacing */
.modern-form-section {
  border-bottom: 1px solid #f3f4f6;
}

.modern-form-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Better responsive form grid */
.modern-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.modern-form-group.full-width {
  grid-column: 1 / -1;
}

/* Enhanced Select2 styling for session forms */
.modern-session-form .select2-container--default .select2-selection--single {
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  height: 48px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.modern-session-form
  .select2-container--default
  .select2-selection--single:hover {
  border-color: #d1d5db;
}

.modern-session-form
  .select2-container--default.select2-container--focus
  .select2-selection--single {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(20, 66, 234, 0.1);
}

.modern-session-form
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  padding: 0 1rem;
  line-height: 1.5;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  height: 100%;
}

.modern-session-form
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 100%;
  right: 1rem;
  display: flex;
  align-items: center;
}

.modern-session-form .select2-dropdown {
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  overflow: hidden;
}

.modern-session-form
  .select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: rgba(20, 66, 234, 0.1);
  color: var(--primary-color);
}

/* Enhanced form actions */
.modern-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem 0 0 0;
  margin-top: 1.5rem;
  border-top: 1px solid #f3f4f6;
}

/* Show/hide animation improvements */
.wrapper-organization.hide {
  display: none;
  opacity: 0;
  transform: translateY(-8px);
}

.wrapper-organization.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Responsive Design for Session Forms
   ======================================== */

@media (max-width: 768px) {
  .session-content-grid-single {
    gap: 1.5rem;
  }

  .modern-form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .modern-section-header-compact {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 0.75rem;
  }

  .modern-form-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .modern-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .top-breadcrumb-modern {
    margin-bottom: 1rem;
  }

  .btn-breadcrumb-modern {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }

  .btn-breadcrumb-modern i {
    font-size: 0.875rem;
  }

  .modern-section-icon-compact {
    width: 36px;
    height: 36px;
    font-size: 1.125rem;
  }

  .modern-section-title-compact h4 {
    font-size: 1rem;
  }

  .modern-section-title-compact p {
    font-size: 0.8125rem;
  }

  .modern-form-actions {
    padding-top: 1.25rem;
    margin-top: 1.25rem;
  }
}

/* Loading state enhancements */
.modern-btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.modern-btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Validation states for session form */
.modern-session-form .is-invalid {
  border-color: #ef4444;
}

.modern-session-form .is-invalid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.modern-session-form .form-error {
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: 0.25rem;
}

/* Enhanced required field styling */
.modern-form-label .required {
  color: #ef4444;
  margin-left: 0.25rem;
}

/* Single column form group */
.modern-form-group.single-column {
  display: block;
  width: 100%;
  margin-bottom: 1.5rem;
}

/* Ensure single column takes full width */
.modern-form-section .modern-form-group.single-column {
  grid-column: 1 / -1;
}

/* Better spacing for mixed layouts */
.modern-form-section .modern-form-group.single-column + .modern-form-grid {
  margin-top: 0.5rem;
}

/* Enhanced styling for single column select */
.modern-form-group.single-column .modern-form-select {
  width: 100%;
}

.modern-form-group.single-column .select2-container {
  width: 100% !important;
}

/* Better visual separation between single and grid layouts */
.modern-form-section .modern-form-group.single-column {
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 1.25rem;
}

.modern-form-section .modern-form-group.single-column:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Responsive adjustments for single column */
@media (max-width: 768px) {
  .modern-form-group.single-column {
    margin-bottom: 1.25rem;
  }

  .modern-form-section .modern-form-group.single-column {
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .modern-form-group.single-column {
    margin-bottom: 1rem;
  }

  .modern-form-section .modern-form-group.single-column {
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
  }
}

/* Enhanced Select2 styling for single column coaching program */
.modern-form-group.single-column
  .select2-container--default
  .select2-selection--single {
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  height: 48px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  background: white;
}

.modern-form-group.single-column
  .select2-container--default
  .select2-selection--single:hover {
  border-color: #d1d5db;
}

.modern-form-group.single-column
  .select2-container--default.select2-container--focus
  .select2-selection--single {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(20, 66, 234, 0.1);
}

.modern-form-group.single-column
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  padding: 0 1rem;
  line-height: 1.5;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  height: 100%;
  color: #374151;
}

.modern-form-group.single-column
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 100%;
  right: 1rem;
  display: flex;
  align-items: center;
}

.modern-form-group.single-column .select2-dropdown {
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  overflow: hidden;
}

.modern-form-group.single-column
  .select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: rgba(20, 66, 234, 0.1);
  color: var(--primary-color);
}

/* Visual emphasis for coaching program field */
.modern-form-group.single-column .modern-form-label {
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.modern-form-group.single-column .modern-form-label .label-icon {
  font-size: 1.125rem;
  color: var(--primary-color);
}

/* Better spacing and visual hierarchy */
.modern-form-section .modern-form-grid {
  margin-top: 0;
}

/* Ensure proper alignment in mixed layout */
.modern-form-section > .modern-form-group.single-column:first-child {
  margin-top: 0;
}

.modern-form-section > .modern-form-grid:last-child {
  margin-bottom: 0;
}

/* ========================================
   Comprehensive Report Styles
   ======================================== */

.comprehensive-report-section {
  grid-column: 1 / -1;
  margin-bottom: 2rem;
}

.comprehensive-report-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.report-header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.report-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.report-header-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.report-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.report-title-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: white;
}

.report-subtitle {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
}

.report-actions {
  display: flex;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.btn-report-action {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
}

.btn-report-action:not(.secondary) {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-report-action:not(.secondary):hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-report-action.secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-report-action.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.report-content {
  padding: 2rem;
}

.report-section {
  margin-bottom: 2.5rem;
}

.report-section:last-child {
  margin-bottom: 0;
}

.report-section-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f3f4f6;
}

.report-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.report-section-title i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.executive-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary-metric {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  text-align: center;
  transition: all 0.2s;
}

.summary-metric:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.875rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.metric-change {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.metric-change.positive {
  background: rgba(34, 197, 94, 0.1);
  color: #059669;
}

.metric-change.neutral {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
}

.metric-change.negative {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.executive-narrative {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.executive-narrative h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1rem 0;
}

.executive-narrative p {
  color: #374151;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.executive-narrative p:last-child {
  margin-bottom: 0;
}

.achievements-timeline {
  space-y: 1.5rem;
}

.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 1rem;
  transition: all 0.2s;
}

.achievement-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

.achievement-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.achievement-icon.completed {
  background: rgba(34, 197, 94, 0.1);
  color: #059669;
}

.achievement-content h5 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem 0;
}

.achievement-content p {
  color: #6b7280;
  margin: 0 0 0.75rem 0;
  line-height: 1.6;
}

.achievement-date {
  font-size: 0.8125rem;
  color: var(--primary-color);
  font-weight: 600;
}

.progress-analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.analysis-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}

.analysis-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.analysis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.analysis-header h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.trend-indicator {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.analysis-content p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.analysis-stats {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.stat-item {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.8125rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.recommendations-list {
  space-y: 1.5rem;
}

.recommendation-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 1rem;
  position: relative;
}

.recommendation-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 2px;
}

.recommendation-item.priority-high::before {
  background: #ef4444;
}

.recommendation-item.priority-medium::before {
  background: #f59e0b;
}

.recommendation-item.priority-low::before {
  background: #10b981;
}

.recommendation-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.recommendation-item.priority-high .recommendation-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.recommendation-item.priority-medium .recommendation-icon {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.recommendation-item.priority-low .recommendation-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.recommendation-content h5 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem 0;
}

.recommendation-content p {
  color: #6b7280;
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.recommendation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.recommendation-tags .tag {
  padding: 0.25rem 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.report-footer {
  background: #f8fafc;
  padding: 1.5rem 2rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.report-generated {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.report-generated i {
  color: var(--primary-color);
}

.signature-info {
  text-align: right;
}

.signature-title {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.signature-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0.25rem 0;
}

.signature-role {
  display: block;
  font-size: 0.8125rem;
  color: #6b7280;
}

/* ========================================
   Responsive Design for Comprehensive Report
   ======================================== */

@media (max-width: 768px) {
  .report-header {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 1.5rem;
  }

  .report-header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .report-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-report-action {
    justify-content: center;
  }

  .report-content {
    padding: 1.5rem;
  }

  .executive-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }

  .summary-metric {
    padding: 1rem;
  }

  .metric-value {
    font-size: 1.5rem;
  }

  .progress-analysis-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .analysis-stats {
    flex-direction: column;
    gap: 0.75rem;
  }

  .report-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1.25rem;
  }

  .signature-info {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .report-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .report-title-section h2 {
    font-size: 1.5rem;
  }

  .executive-summary-grid {
    grid-template-columns: 1fr;
  }

  .achievement-item,
  .recommendation-item {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 1.25rem;
  }

  .executive-narrative {
    padding: 1.5rem;
  }

  .analysis-card {
    padding: 1.25rem;
  }
}

.ai-simulation-container {
  padding: 0;
}

.ai-simulations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.ai-simulation-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.ai-simulation-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.simulation-card-header {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.simulation-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.simulation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ai-simulation-card:hover .simulation-image img {
  transform: scale(1.05);
}

.simulation-type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.simulation-type-badge.roleplay {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.9) 0%,
    rgba(37, 99, 235, 0.9) 100%
  );
  color: white;
}

.simulation-type-badge.simulation {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.9) 0%,
    rgba(5, 150, 105, 0.9) 100%
  );
  color: white;
}

.simulation-card-body {
  padding: 1.5rem;
}

.simulation-agent-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.agent-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-details {
  flex: 1;
  min-width: 0;
}

.agent-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.agent-occupation {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
}

.simulation-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1rem 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.simulation-highlight {
  margin-bottom: 1rem;
}

.simulation-highlight p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.simulation-description {
  margin-bottom: 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.simulation-description.expanded {
  max-height: 200px;
  overflow-y: auto;
}

.simulation-description p {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 0.75rem 0;
}

.simulation-description p:last-child {
  margin-bottom: 0;
}

.simulation-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-simulation-primary {
  flex: 1;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-simulation-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

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

.btn-simulation-secondary {
  background: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.btn-simulation-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

.btn-simulation-secondary:active {
  background: #f3f4f6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ai-simulations-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .simulation-card-body {
    padding: 1rem;
  }

  .simulation-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-simulation-primary,
  .btn-simulation-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Loading and Error States */
.simulation-loading {
  opacity: 0.7;
  pointer-events: none;
}

.simulation-error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

/* Enhanced Animation */
@keyframes simulationPulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.simulation-loading .simulation-image {
  animation: simulationPulse 2s infinite;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.avatar-img-dashboard {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  object-fit: cover;
  border: 3px solid #f3f4f6;
  transition: all 0.3s ease;
}

.session-avatar-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #007bff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

/* Coaching Notes Specific Styles */
.coaching-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-top: 20px;
}

.coaching-note-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.coaching-note-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.coaching-note-header {
  padding: 1.25rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.note-session-info .session-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.note-session-info .session-topic {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.coaching-note-body {
  padding: 1.25rem;
}

.note-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  padding-left: 20px;
}

.note-title a:hover {
  color: var(--primary-color) !important;
  text-decoration: underline !important;
}

.note-summary {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.note-attachment-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.attachment-icon {
  width: 40px;
  height: 40px;
  background: var(--success-color);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.attachment-details {
  flex: 1;
}

.attachment-name {
  display: block;
  font-weight: 600;
  color: #111827;
  font-size: 0.9rem;
}

.attachment-label {
  display: block;
  color: #6b7280;
  font-size: 0.8rem;
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
}

.note-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.85rem;
}

.note-meta .meta-item.shared {
  color: var(--success-color);
  font-weight: 600;
}

.note-meta .meta-item i {
  font-size: 1rem;
}

.grow-insights {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.grow-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.grow-grid {
  display: grid;
  gap: 0.5rem;
}

.grow-item {
  font-size: 0.85rem;
  color: #78350f;
  line-height: 1.4;
}

.grow-item strong {
  color: #92400e;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .coaching-notes-grid {
    grid-template-columns: 1fr;
  }

  .coaching-note-header {
    flex-direction: column;
    gap: 1rem;
  }

  .note-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Coaching Plans Specific Styles */
.coaching-plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Changed to single column */
  gap: 1.5rem;
  margin-top: 20px;
}

.coaching-plans-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.coaching-plan-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  /* Added flex display for horizontal layout */
  min-height: 200px;
  /* Set minimum height for consistency */
}

.coaching-plan-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.coaching-plan-header {
  padding: 1.25rem;
  background: linear-gradient(135deg, #fef7ff 0%, #f3e8ff 100%);
  border-right: 1px solid #e5e7eb;
  /* Changed from border-bottom to border-right */
  display: flex;
  flex-direction: column;
  /* Stack items vertically in header */
  justify-content: space-between;
  align-items: flex-start;
  min-width: 250px;
  /* Set minimum width for header section */
  flex-shrink: 0;
  /* Prevent shrinking */
}

.plan-info .program-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  /* Increased margin for better spacing */
  display: inline-block;
}

.plan-info .plan-date {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  /* Push to bottom of header */
}

.coaching-plan-body {
  padding: 1.25rem;
  flex: 1;
  /* Take remaining space */
  display: flex;
  flex-direction: column;
}

.plan-status-badge {
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  display: inline-block;
  align-self: flex-start;
  /* Align to start */
}

.plan-status-badge.status-active,
.plan-status-badge.status-approved {
  background: #d1fae5;
  color: #065f46;
}

.plan-sections-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Two columns for sections */
  gap: 1rem;
  flex: 1;
  margin-bottom: 1rem;
}

.plan-status-badge.status-draft {
  background: #fef3c7;
  color: #92400e;
}

.plan-status-badge.status-pending {
  background: #dbeafe;
  color: #1e40af;
}

.plan-section {
  margin-bottom: 0;
  /* Remove bottom margin since we're using grid */
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 8px;
  height: fit-content;
  /* Adjust height to content */
}

.plan-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.plan-section-content {
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
  font-size: 0.9rem;
}

.plan-attachment-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 1rem;
  grid-column: 1 / -1;
  /* Span full width if in sections container */
}

.plan-attachment-info .attachment-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.plan-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Two columns for meta items */
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
  margin-top: auto;
  /* Push to bottom */
}

.plan-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.85rem;
}

.plan-meta .meta-item i {
  font-size: 1rem;
  width: 16px;
}

/* Plans icon styling */
.section-icon-wrapper.plans-icon {
  background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
}

.section-count-badge.plans-badge {
  background: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .coaching-plans-grid {
    grid-template-columns: 1fr;
  }

  .coaching-plan-header {
    flex-direction: column;
    gap: 1rem;
  }

  .plan-meta {
    gap: 0.375rem;
  }
}

/* Enhanced Modal Styles - Compatible with dashboard.css */

/* Modal Overlay Enhancement */
.modal.fade {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal .modal-backdrop {
  background-color: rgba(0, 0, 0, 0.65);
}

/* Modal Dialog */
.modal-dialog {
  margin: 1.5rem auto;
  max-width: 500px;
  transition: var(--transition-base);
}

.modal-dialog.modal-lg {
  max-width: 800px;
}

.modal.fade .modal-dialog {
  transform: translate(0, -40px);
  opacity: 0;
}

.modal.show .modal-dialog {
  transform: none;
  opacity: 1;
}

/* Modal Content */
.modal-content {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-lg);
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

/* Modal Header */

.modal-header {
  background: linear-gradient(
    135deg,
    var(--vise-primary, #1442ea) 0%,
    #0f34b8 100%
  );
  color: white;
  padding: 1.5rem 2rem;
  border-bottom: none;
}

.modal-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-header .close {
  color: white;
  opacity: 0.8;
  font-size: 1.5rem;
  font-weight: 300;
  text-shadow: none;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  transition: opacity 0.2s ease;
}

.modal-header .close:hover {
  opacity: 1;
  color: white;
}

.modal-header .close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
  transform: scale(1.1);
}

.modal-header .close i {
  font-size: 18px;
}

/* Modal Body */
.modal-body {
  padding: 1.5rem;
  color: var(--gray-700);
  line-height: 1.6;
  min-height: 80px;
  margin-top: 20px;
}

.modal-body p {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.modal-body .form-group {
  margin-bottom: 1.25rem;
}

.modal-body .form-control {
  border-radius: 8px;
  border: 1.5px solid var(--gray-300);
  padding: 0.75rem 1rem;
  transition: var(--transition-base);
  font-size: 0.95rem;
}

.modal-body .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(20, 66, 234, 0.1);
  outline: none;
}

.modal-body .control-label {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  display: block;
}

.modal-body .control-label sup {
  color: var(--danger-color);
  margin-left: 2px;
}

/* Modal Footer */
.modal-footer {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-100);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modal-footer .btn {
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1.5px solid transparent;
  transition: var(--transition-base);
  min-width: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-footer .btn-secondary {
  background: #ffffff;
  border-color: var(--gray-400);
  color: var(--gray-600);
}

.modal-footer .btn-secondary:hover {
  background: var(--gray-100);
  border-color: var(--gray-500);
  color: var(--gray-700);
  transform: translateY(-1px);
}

.modal-footer .btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  border-color: var(--primary-color);
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--box-shadow-sm);
}

.modal-footer .btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0a2a9e 100%);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--box-shadow-md);
}

.modal-footer .btn-primary:active {
  transform: translateY(0);
}

/* Confirmation Modal Specific */
.modal-confirm .modal-content::before {
  background: linear-gradient(90deg, var(--warning-color), var(--danger-color));
}

.modal-confirm .modal-body {
  text-align: center;
  padding: 2rem 1.5rem;
}

.modal-confirm .modal-body::before {
  content: '⚠️';
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

/* Button Groups in Modal Body */
.modal-body .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.modal-body .btn-group .btn-outline {
  background: #ffffff;
  border: 1.5px solid var(--gray-400);
  color: var(--gray-600);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: var(--transition-base);
  cursor: pointer;
}

.modal-body .btn-group .btn-outline:hover,
.modal-body .btn-group .btn-outline.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

/* Dual Field Layout */
.modal-body .dual-field {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 576px) {
  .modal-body .dual-field {
    grid-template-columns: 1fr;
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .modal-dialog {
    margin: 1rem;
  }
}

/* Hide/Show Utilities */
.hide {
  display: none !important;
}

.show {
  display: block !important;
}

/* Animation Enhancement */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal.show .modal-content {
  animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading State */
.modal-footer .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.modal-footer .btn.loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}

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

/* Enhanced Modal Classes for Different Types */
.modal-modern {
  /* Use this class on modal elements that need enhanced styling */
}

.modal-modern .modal-header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  border-bottom: none;
}

.modal-modern .modal-header .modal-title {
  color: white;
}

.modal-modern .modal-header .close {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.modal-modern .modal-header .close:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

/* Form Enhancement within Modals */
.modal-body .modern-form-group {
  margin-bottom: 1.25rem;
}

.modal-body .modern-form-label {
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  display: block;
}

.modal-body .modern-form-input,
.modal-body .modern-form-select,
.modal-body .modern-form-textarea {
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  transition: var(--transition-base);
  background: white;
  font-family: inherit;
}

.modal-body .modern-form-input:focus,
.modal-body .modern-form-select:focus,
.modal-body .modern-form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(20, 66, 234, 0.1);
}

/* ========================================
   Quick Actions Enhancement (Client Dashboard)
   ======================================== */

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.quick-action-card {
  background: white;
  border: 2px solid #f1f5f9;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 140px;
}

.quick-action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.quick-action-card:hover::before {
  transform: scaleX(1);
}

.quick-action-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(20, 66, 234, 0.15);
  color: inherit;
  text-decoration: none;
}

.quick-action-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(20, 66, 234, 0.1) 0%,
    rgba(20, 66, 234, 0.05) 100%
  );
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(20, 66, 234, 0.1);
  position: relative;
  overflow: hidden;
}

.quick-action-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--primary-color);
  border-radius: 50%;
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.quick-action-card:hover .quick-action-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(20, 66, 234, 0.2);
}

.quick-action-card:hover .quick-action-icon::before {
  width: 120%;
  height: 120%;
}

.quick-action-card:hover .quick-action-icon {
  color: white;
  border-color: var(--primary-color);
}

.quick-action-icon i {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.quick-action-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.quick-action-card:hover h4 {
  color: var(--primary-color);
}

.quick-action-card p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.quick-action-card:hover p {
  color: #4b5563;
}

/* Specific icon colors for different actions */
.quick-action-card.action-agenda .quick-action-icon {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1) 0%,
    rgba(59, 130, 246, 0.05) 100%
  );
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.1);
}

.quick-action-card.action-agenda:hover .quick-action-icon::before {
  background: #3b82f6;
}

.quick-action-card.action-board .quick-action-icon {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1) 0%,
    rgba(16, 185, 129, 0.05) 100%
  );
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.1);
}

.quick-action-card.action-board:hover .quick-action-icon::before {
  background: #10b981;
}

.quick-action-card.action-coaches .quick-action-icon {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1) 0%,
    rgba(139, 92, 246, 0.05) 100%
  );
  color: #8b5cf6;
  border-color: rgba(139, 92, 246, 0.1);
}

.quick-action-card.action-coaches:hover .quick-action-icon::before {
  background: #8b5cf6;
}

.quick-action-card.action-courses .quick-action-icon {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.1) 0%,
    rgba(245, 158, 11, 0.05) 100%
  );
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.1);
}

.quick-action-card.action-courses:hover .quick-action-icon::before {
  background: #f59e0b;
}

/* Enhanced hover effects for specific cards */
.quick-action-card.action-agenda:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.quick-action-card.action-board:hover {
  border-color: #10b981;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

.quick-action-card.action-coaches:hover {
  border-color: #8b5cf6;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.quick-action-card.action-courses:hover {
  border-color: #f59e0b;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
}

/* Loading state for quick actions */
.quick-action-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.quick-action-card.loading .quick-action-icon {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

/* Responsive enhancements */
@media (max-width: 768px) {
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .quick-action-card {
    padding: 1.5rem 1rem;
    min-height: 120px;
  }

  .quick-action-icon {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .quick-action-card h4 {
    font-size: 1rem;
  }

  .quick-action-card p {
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .quick-actions-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .quick-action-card {
    padding: 1.25rem;
    min-height: 110px;
  }

  .quick-action-icon {
    width: 48px;
    height: 48px;
    font-size: 1.375rem;
    margin-bottom: 0.875rem;
  }
}

/* Enhanced section container for Quick Actions */
.section-container .quick-actions-grid {
  margin-top: 0;
}

/* Better visual hierarchy */
.section-container .section-title {
  margin-bottom: 1.25rem;
}

/* Add subtle animation on load */
.quick-action-card {
  animation: fadeInUp 0.4s ease forwards;
  animation-delay: calc(var(--card-index, 0) * 0.1s);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced accessibility */
.quick-action-card:focus {
  outline: 3px solid rgba(20, 66, 234, 0.3);
  outline-offset: 2px;
  border-color: var(--primary-color);
}

.quick-action-card:focus:not(:focus-visible) {
  outline: none;
}

/* Better spacing in section */
.section-container:has(.quick-actions-grid) {
  padding-bottom: 2rem;
}

.feedback-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.feedback-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.feedback-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.feedback-client-info {
  flex: 1;
}

.feedback-client-name {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.feedback-rating {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.feedback-rating i {
  color: #ffc107;
  margin-right: 2px;
}

.feedback-rating-number {
  margin-left: 8px;
  font-weight: 500;
  color: #666;
}

.feedback-date-badge {
  background: #f8f9fa;
  color: #666;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
}

.feedback-comment {
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

.feedback-meta {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #888;
  margin-bottom: 16px;
}

.feedback-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.feedback-option {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.feedback-option:hover {
  transform: translateY(-1px);
}

.feedback-option i {
  margin-right: 6px;
}

.btn-hide {
  background: #dc3545;
  color: white;
  border: 1px solid #dc3545;
}

.btn-hide:hover {
  background: #c82333;
  border-color: #c82333;
}

.btn-success {
  background: #28a745;
  color: white;
  border: 1px solid #28a745;
}

.btn-success:hover {
  background: #218838;
  border-color: #218838;
  color: #fff;
}

.page-pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.empty-state i {
  font-size: 48px;
  color: #ccc;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 18px;
  margin-bottom: 8px;
}

.empty-state small {
  color: #888;
}

.btn-primary-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary-outline:hover {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(20, 66, 234, 0.2);
}

/* Primary Action Button - MORE VISIBLE */
.vise-primary-action {
  background: linear-gradient(
    135deg,
    var(--vise-primary) 0%,
    var(--vise-primary-dark) 100%
  ) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(20, 66, 234, 0.25);
  font-weight: 600 !important;
  padding: 12px 24px !important;
  border-radius: 12px;
}

.vise-primary-action svg {
  stroke-width: 2.5;
}

.vise-primary-action:hover {
  background: linear-gradient(
    135deg,
    var(--vise-primary-dark) 0%,
    #0a2380 100%
  ) !important;
  color: white !important;
  box-shadow: 0 6px 20px rgba(20, 66, 234, 0.35);
  transform: translateY(-3px);
  border-radius: 12px;
}

.vise-primary-action .vise-nav-label {
  display: inline-block;
  margin-left: 2px;
}

/* Modern Button Styles */
.btn-icon-outline {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  background: white;
  color: #64748b;
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 0;
}

.btn-icon-outline i {
  font-size: 16px;
}

.btn-icon-outline.btn-edit:hover {
  background-color: #f0f7ff;
  color: #1442ea;
  border-color: #1442ea;
  box-shadow: 0 2px 8px rgba(20, 66, 234, 0.15);
}

.btn-icon-outline.btn-delete:hover {
  background-color: #fff1f2;
  color: #ef4444;
  border-color: #ef4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

.btn-group-modern {
  display: flex;
  gap: 8px;
}

/* ========================================
   Enhanced Quick Actions (Professional Version)
   ======================================== */

.quick-actions-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  margin-left: auto;
  font-style: italic;
}

.quick-action-card-modern {
  background: white;
  border: 1.5px solid #f1f5f9;
  border-radius: 20px;
  padding: 0;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 140px;
  /* Reduced from 160px since we removed meta */
  transform: translateY(0);
  background-image: radial-gradient(
    circle at 20% 80%,
    rgba(120, 119, 198, 0.02) 0%,
    transparent 50%
  );
}

.quick-action-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.quick-action-card-modern:hover::before {
  transform: scaleX(1);
}

.quick-action-card-modern:hover {
  border-color: var(--primary-color);
  transform: translateY(-6px);
  box-shadow:
    0 12px 40px rgba(20, 66, 234, 0.12),
    0 0 0 1px rgba(20, 66, 234, 0.1);
  color: inherit;
  text-decoration: none;
}

.action-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 1.5rem 1rem;
  /* Added bottom padding for better spacing */
  margin-bottom: 0;
}

.quick-action-icon-modern {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: all 0.4s ease;
  border: 1px solid rgba(20, 66, 234, 0.1);
  position: relative;
  overflow: hidden;
}

.quick-action-icon-modern::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--primary-color);
  border-radius: 50%;
  transition: all 0.5s ease;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.quick-action-card-modern:hover .quick-action-icon-modern {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(20, 66, 234, 0.2);
  border-color: var(--primary-color);
}

.quick-action-card-modern:hover .quick-action-icon-modern::before {
  width: 120%;
  height: 120%;
}

.quick-action-card-modern:hover .quick-action-icon-modern {
  color: white;
}

.quick-action-icon-modern i {
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}

.action-badge {
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  border: 1px solid;
  backdrop-filter: blur(10px);
}

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

.quick-action-card-modern:hover .action-badge::before {
  left: 100%;
}

/* Badge Variants */
.action-badge {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.2);
}

.action-badge.expert {
  background: rgba(139, 92, 246, 0.1);
  color: #6d28d9;
  border-color: rgba(139, 92, 246, 0.2);
}

.action-badge.active {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.2);
  animation: pulse-badge 2s infinite;
}

.action-badge.ai {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  color: #4c1d95;
  border-color: rgba(99, 102, 241, 0.2);
}

.action-badge.new {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.2);
}

.action-badge.premium {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.1),
    rgba(245, 158, 11, 0.1)
  );
  color: #92400e;
  border-color: rgba(251, 191, 36, 0.2);
}

@keyframes pulse-badge {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.action-card-content {
  padding: 0 1.5rem 1.5rem;
  /* Updated padding - removed top, added bottom */
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  /* For positioning the arrow */
}

.quick-action-card-modern h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.75rem 0;
  /* Increased bottom margin */
  line-height: 1.3;
  transition: color 0.3s ease;
}

.quick-action-card-modern:hover h4 {
  color: var(--primary-color);
}

.quick-action-card-modern p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
  transition: color 0.3s ease;
  flex: 1;
  padding-bottom: 3rem;
  /* Space for the arrow */
}

.quick-action-card-modern:hover p {
  color: #4b5563;
}

/* REMOVED: action-meta styles completely */

/* UPDATED: Neater arrow positioning */
.action-card-arrow {
  position: absolute;
  bottom: 15px;
  /* Positioned at the bottom of card content */
  right: 15px;
  /* Aligned to the right edge of content (respects content padding) */
  width: 36px;
  /* Slightly larger for better visual presence */
  height: 36px;
  border-radius: 50%;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.4s ease;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  /* Subtle shadow for depth */
}

.quick-action-card-modern:hover .action-card-arrow {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(20, 66, 234, 0.3);
}

.action-card-arrow i {
  font-size: 1.125rem;
  /* Slightly larger icon */
  transition: transform 0.4s ease;
}

.quick-action-card-modern:hover .action-card-arrow i {
  transform: translateX(2px);
}

/* Specific Action Colors (unchanged) */
.quick-action-card-modern.action-assessment:hover {
  border-color: #059669;
  box-shadow: 0 12px 40px rgba(5, 150, 105, 0.12);
}

.quick-action-card-modern.action-assessment .quick-action-icon-modern {
  color: #059669;
}

.quick-action-card-modern.action-assessment:hover
  .quick-action-icon-modern::before {
  background: #059669;
}

.quick-action-card-modern.action-assessment:hover .action-card-arrow {
  background: #059669;
}

.quick-action-card-modern.action-coach:hover {
  border-color: #7c3aed;
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.12);
}

.quick-action-card-modern.action-coach .quick-action-icon-modern {
  color: #7c3aed;
}

.quick-action-card-modern.action-coach:hover .quick-action-icon-modern::before {
  background: #7c3aed;
}

.quick-action-card-modern.action-coach:hover .action-card-arrow {
  background: #7c3aed;
}

.quick-action-card-modern.action-sessions:hover .action-card-arrow {
  background: var(--primary-color);
}

.quick-action-card-modern.action-ai-chat:hover {
  border-color: #3b82f6;
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.12);
}

.quick-action-card-modern.action-ai-chat .quick-action-icon-modern {
  color: #3b82f6;
}

.quick-action-card-modern.action-ai-chat:hover
  .quick-action-icon-modern::before {
  background: #3b82f6;
}

.quick-action-card-modern.action-ai-chat:hover .action-card-arrow {
  background: #3b82f6;
}

.quick-action-card-modern.action-simulations:hover {
  border-color: #f59e0b;
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.12);
}

.quick-action-card-modern.action-simulations .quick-action-icon-modern {
  color: #f59e0b;
}

.quick-action-card-modern.action-simulations:hover
  .quick-action-icon-modern::before {
  background: #f59e0b;
}

.quick-action-card-modern.action-simulations:hover .action-card-arrow {
  background: #f59e0b;
}

.quick-action-card-modern.action-learning:hover {
  border-color: #d97706;
  box-shadow: 0 12px 40px rgba(217, 119, 6, 0.12);
}

.quick-action-card-modern.action-learning .quick-action-icon-modern {
  color: #d97706;
}

.quick-action-card-modern.action-learning:hover
  .quick-action-icon-modern::before {
  background: #d97706;
}

.quick-action-card-modern.action-learning:hover .action-card-arrow {
  background: #d97706;
}

/* Loading State */
.quick-action-card-modern.loading {
  opacity: 0.7;
  pointer-events: none;
}

.quick-action-card-modern.loading .quick-action-icon-modern {
  animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.95);
  }
}

/* Enhanced Accessibility */
.quick-action-card-modern:focus {
  outline: 3px solid rgba(20, 66, 234, 0.3);
  outline-offset: 2px;
  border-color: var(--primary-color);
}

.quick-action-card-modern:focus:not(:focus-visible) {
  outline: none;
}

/* Animation on Load */
.quick-action-card-modern {
  animation: slideInUp 0.5s ease forwards;
  animation-delay: calc(var(--action-index, 0) * 0.08s);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
  .quick-actions-grid-enhanced {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .quick-action-card-modern {
    min-height: 120px;
    /* Further reduced */
  }
}

@media (max-width: 768px) {
  .quick-actions-grid-enhanced {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .quick-action-card-modern {
    min-height: 110px;
    border-radius: 16px;
  }

  .action-card-header {
    padding: 1.25rem 1.25rem 0.75rem;
  }

  .quick-action-icon-modern {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    border-radius: 12px;
  }

  .action-card-content {
    padding: 0 1.25rem 1.25rem;
  }

  .quick-action-card-modern h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .quick-action-card-modern p {
    font-size: 0.8125rem;
    padding-bottom: 2.5rem;
    /* Adjusted for smaller arrow */
  }

  .action-card-arrow {
    width: 30px;
    height: 30px;
    bottom: 0.5rem;
  }

  .action-card-arrow i {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .quick-actions-grid-enhanced {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .quick-action-card-modern {
    min-height: 100px;
    border-radius: 14px;
  }

  .action-card-header {
    padding: 1rem 1rem 0.5rem;
  }

  .quick-action-icon-modern {
    width: 44px;
    height: 44px;
    font-size: 1.375rem;
    border-radius: 10px;
  }

  .action-card-content {
    padding: 0 1rem 1rem;
  }

  .quick-action-card-modern h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
  }

  .quick-action-card-modern p {
    font-size: 0.8rem;
    padding-bottom: 2.25rem;
  }

  .action-badge {
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
  }

  .action-card-arrow {
    width: 28px;
    height: 28px;
    bottom: 0.375rem;
  }

  .action-card-arrow i {
    font-size: 0.875rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .quick-action-card-modern {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  }

  .quick-action-card-modern:hover {
    box-shadow: 0 16px 50px rgba(20, 66, 234, 0.15);
  }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .quick-action-card-modern,
  .quick-action-icon-modern,
  .action-card-arrow,
  .action-badge::before {
    transition: none;
  }

  .quick-action-card-modern {
    animation: none;
  }
}

/* Dark mode support (if needed in the future) */
@media (prefers-color-scheme: dark) {
  .quick-action-card-modern {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
  }

  .quick-action-card-modern h4 {
    color: #f9fafb;
  }

  .quick-action-card-modern p {
    color: #d1d5db;
  }
}

/* Footer Enhancements */
.app-download-card {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.app-download-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
  border-color: var(--primary-color);
}

.app-download-card a {
  color: inherit;
}

.app-download-card:hover .card-modern-icon.icon-info {
  background: var(--info-light);
  color: var(--info-color);
  transform: scale(1.05);
}

.app-download-card:hover .card-modern-icon.icon-success {
  background: var(--success-light);
  color: var(--success-color);
  transform: scale(1.05);
}

.app-download-card .card-modern-body {
  padding: 1.25rem;
}

/* Responsive adjustments */
@media (max-width: 575.98px) {
  .summary-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Professional Footer Styling */
.footer-professional {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
  border-top: 2px solid #e3e6f0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.footer-brand-name {
  color: #2c3e50;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #6c757d;
  font-style: italic;
}

.footer-download-section {
  text-align: center;
}

.footer-download-title {
  color: #495057;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.app-buttons-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.app-download-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 160px;
  position: relative;
  overflow: hidden;
}

.app-download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: #fff;
  background: #1a1a1a;
}

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

.app-download-btn:hover::before {
  left: 100%;
}

.app-btn-icon {
  font-size: 1.8rem;
  margin-right: 12px;
  display: flex;
  align-items: center;
}

.app-btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.app-btn-subtitle {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 1px;
}

.app-btn-title {
  font-size: 1rem;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid #e9ecef !important;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.footer-copyright {
  color: #6c757d;
  font-size: 0.875rem;
}

.footer-credits {
  color: #6c757d;
  font-size: 0.875rem;
}

.footer-credits strong {
  color: #495057;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-download-section {
    text-align: center;
  }

  .app-buttons-container {
    flex-direction: column;
    align-items: center;
  }

  .app-download-btn {
    width: 200px;
    justify-content: center;
  }

  .footer-brand {
    text-align: center;
    margin-bottom: 2rem;
  }

  .footer-bottom .col-md-6:last-child {
    text-align: center !important;
  }
}

@media (max-width: 575px) {
  .footer-professional {
    padding: 2rem 0 !important;
  }

  .app-download-btn {
    width: 100%;
    max-width: 250px;
  }

  .footer-brand-name {
    font-size: 1.2rem;
  }

  .footer-tagline {
    font-size: 0.85rem;
  }
}

/* Animation for when footer comes into view */
.footer-professional {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Daily Reflection Styles - Updated */

/* Reflection Hero using engagement-hero-compact pattern */
.reflection-hero-compact {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 123, 255, 0.2);
  position: relative;
  overflow: hidden;
}

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

.reflection-hero-compact .hero-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.reflection-hero-compact .hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.reflection-hero-compact .hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  color: white;
}

.reflection-hero-compact .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.reflection-hero-compact .hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.reflection-hero-compact .hero-meta-item i {
  font-size: 1.1rem;
  opacity: 0.8;
}

.reflection-hero-compact .hero-stats-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.reflection-hero-compact .hero-stat-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  min-width: 120px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.reflection-hero-compact .hero-stat-box:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.reflection-hero-compact .hero-stat-box.hero-stat-success {
  background: rgba(40, 167, 69, 0.2);
  border-color: rgba(40, 167, 69, 0.3);
}

.reflection-hero-compact .hero-stat-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.reflection-hero-compact .hero-stat-label {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reflection-hero-compact .hero-progress-circle {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.reflection-hero-compact .hero-progress-circle.completed {
  border-color: #fff;
  background: rgba(40, 167, 69, 0.2);
}

.reflection-hero-compact .hero-progress-circle .progress-value {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.reflection-hero-compact .hero-progress-circle .progress-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* AI Summary Card - Using existing pattern */
.ai-summary-card {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  border-radius: var(--border-radius);
  padding: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

.ai-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.ai-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.analysis-date {
  font-size: 0.875rem;
  opacity: 0.8;
}

.summary-section {
  margin-bottom: 1rem;
}

.summary-section:last-child {
  margin-bottom: 0;
}

.summary-section h5 {
  /* display: flex; */
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.summary-section p {
  margin-bottom: 0;
  line-height: 1.5;
  opacity: 0.9;
}

.summary-section .recommendations-list ul li {
  list-style: disc;
  margin-left: 10px;
}

.recommendations-list {
  margin: 0;
  padding-left: 1.25rem;
}

.recommendations-list li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
  opacity: 0.9;
  list-style: circle;
}

/* Calendar Section */
.reflection-calendar-section {
  margin-bottom: 1.5rem;
}

.calendar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #495057;
}

.reflection-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.reflection-day {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reflection-day.day-completed {
  border-color: var(--success-color);
  background: rgba(25, 135, 84, 0.05);
}

.reflection-day.day-today {
  border-color: var(--primary-color);
  background: rgba(13, 110, 253, 0.05);
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}

.reflection-day.day-missed {
  border-color: var(--danger-color);
  background: rgba(220, 53, 69, 0.05);
}

.reflection-day.day-future {
  opacity: 0.6;
}

.day-header {
  margin-bottom: 0.5rem;
}

.day-name {
  font-size: 0.75rem;
  font-weight: 600;
  display: block;
  color: #6c757d;
  text-transform: uppercase;
}

.day-date {
  font-size: 1rem;
  font-weight: bold;
  color: #495057;
}

.day-status {
  margin-top: auto;
}

.day-status i {
  font-size: 1.2rem;
}

.reflection-day.day-completed .day-status i {
  color: var(--success-color);
}

.reflection-day.day-today .day-status i {
  color: var(--primary-color);
}

.reflection-day.day-missed .day-status i {
  color: var(--danger-color);
}

.day-mood-indicator {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.calendar-legend {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: #6c757d;
}

/* Actions using existing button classes */
.reflection-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 991px) {
  .reflection-hero-compact {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .reflection-hero-compact .hero-info {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .reflection-hero-compact .hero-title {
    font-size: 1.375rem;
  }

  .reflection-hero-compact .hero-meta {
    justify-content: center;
    gap: 1rem;
  }

  .reflection-hero-compact .hero-stats-row {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .reflection-hero-compact .hero-stat-box {
    min-width: 85px;
    flex: 0 0 auto;
  }

  .reflection-hero-compact .hero-progress-circle {
    width: 75px;
    height: 75px;
    margin: 0.5rem 0;
  }
}

@media (max-width: 768px) {
  .reflection-hero-compact {
    padding: 1.25rem;
    gap: 1.25rem;
  }

  .reflection-hero-compact .hero-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .reflection-hero-compact .hero-meta {
    gap: 0.875rem;
  }

  .reflection-hero-compact .hero-meta-item {
    font-size: 0.825rem;
  }

  .reflection-hero-compact .hero-stats-row {
    gap: 0.75rem;
  }

  .reflection-hero-compact .hero-stat-box {
    min-width: 75px;
    padding: 0.75rem 0.5rem;
  }

  .reflection-hero-compact .hero-stat-label {
    font-size: 0.65rem;
  }

  .reflection-hero-compact .hero-progress-circle {
    width: 65px;
    height: 65px;
  }

  .reflection-hero-compact .hero-progress-circle .progress-value {
    font-size: 0.875rem;
  }

  .reflection-hero-compact .hero-progress-circle .progress-label {
    font-size: 0.6rem;
  }

  .reflection-calendar {
    gap: 0.25rem;
  }

  .reflection-day {
    padding: 0.5rem 0.25rem;
    min-height: 70px;
  }

  .day-name {
    font-size: 0.625rem;
  }

  .day-date {
    font-size: 0.875rem;
  }

  .reflection-actions {
    flex-direction: column;
  }

  .ai-summary-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .calendar-legend {
    gap: 1rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 575px) {
  .reflection-hero-compact {
    padding: 1rem;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .reflection-hero-compact .hero-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
  }

  .reflection-hero-compact .hero-title {
    font-size: 1.125rem;
  }

  .reflection-hero-compact .hero-meta {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .reflection-hero-compact .hero-meta-item {
    font-size: 0.8rem;
  }

  .reflection-hero-compact .hero-stats-row {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .reflection-hero-compact .hero-stat-box {
    flex: 1;
    min-width: 0;
    max-width: none;
    padding: 0.625rem 0.375rem;
  }

  .reflection-hero-compact .hero-stat-label {
    font-size: 0.6rem;
    line-height: 1.2;
  }

  .reflection-hero-compact .hero-progress-circle {
    width: 60px;
    height: 60px;
    border-width: 2px;
    margin: 0.25rem 0 0;
  }

  .reflection-hero-compact .hero-progress-circle .progress-value {
    font-size: 0.8rem;
  }

  .reflection-hero-compact .hero-progress-circle .progress-label {
    font-size: 0.55rem;
  }

  .ai-summary-card {
    padding: 1.25rem;
  }

  .calendar-legend {
    justify-content: flex-start;
  }
}

!
/* Learning Card Component Styles */

/* Learning Grid */
.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Learning Card */
.learning-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: fit-content;
}

.learning-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

/* Learning Card Image */
.learning-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.learning-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.learning-card:hover .learning-card-image img {
  transform: scale(1.05);
}

/* Learning Card Placeholder */
.learning-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  position: relative;
}

.learning-card-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

.learning-card-placeholder i {
  position: relative;
  z-index: 1;
  opacity: 0.9;
}

/* Learning Card Overlay */
.learning-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.learning-card:hover .learning-card-overlay {
  opacity: 1;
}

/* Play Button */
.btn-play {
  background: white;
  color: var(--primary-color);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-play:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

/* Learning Card Body */
.learning-card-body {
  padding: 1.5rem;
}

/* Learning Card Meta */
.learning-card-meta {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* Badge Styles */
.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-primary {
  background: #dbeafe;
  color: #1e40af;
}

.badge-outline {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Learning Card Title */
.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.learning-card-title {
  margin: 0 0 0.75rem 0;
}

.learning-card-title a {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  line-height: 1.3;
  display: block;
  transition: color 0.2s ease;
}

.learning-card-title a:hover {
  color: var(--primary-color);
}

/* Learning Card Instructor */
.learning-card-instructor {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1.25rem;
}

.learning-card-instructor i {
  font-size: 1rem;
  color: var(--primary-color);
}

/* Learning Card Footer */
.learning-card-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 1.25rem;
}

/* Learning Progress */
.learning-progress {
  margin-bottom: 1.25rem;
}

.progress-info {
  /* display: flex;
  justify-content: space-between; */
  align-items: center;
  margin-bottom: 0.5rem;
}

.progress-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.progress-percentage {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-color);
}

.progress-bar-container {
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  transition: width 0.3s ease;
  border-radius: 3px;
}

/* Learning Card Actions */
.learning-card-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Facilitators Styles */
.learning-card-facilitators {
  margin: 12px 0;
}

.facilitators-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6c757d;
}

.facilitators-list i {
  font-size: 16px;
  color: #6c757d;
}

.facilitators-avatars {
  display: flex;
  align-items: center;
  margin-left: 4px;
}

.facilitator-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-left: -4px;
  border: 2px solid #fff;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.facilitator-avatar:first-child {
  margin-left: 0;
}

.facilitator-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.facilitator-initial {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}

.facilitator-more .facilitator-initial {
  background: #6c757d;
  font-size: 8px;
}

.facilitators-names {
  font-size: 13px;
  color: #495057;
  margin-left: 8px;
  flex: 1;
}

.text-muted {
  color: #6c757d !important;
}

/* Responsive Design for Learning Cards */
@media (max-width: 1200px) {
  .learning-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .learning-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .learning-card-body {
    padding: 1.25rem;
  }

  .learning-card-actions {
    flex-direction: column;
  }
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.learning-card {
  animation: fadeInUp 0.6s ease-out;
}

.learning-card:nth-child(2) {
  animation-delay: 0.1s;
}

.learning-card:nth-child(3) {
  animation-delay: 0.2s;
}

.learning-card:nth-child(4) {
  animation-delay: 0.3s;
}

/* Learning Header Card */
.learning-header-card {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(20, 66, 234, 0.15);
}

.learning-header-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 1;
}

.learning-header-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 10%;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: 1;
  transform: rotate(15deg);
}

.learning-header-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.learning-header-info {
  flex: 1;
}

.learning-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
  color: white;
  letter-spacing: -0.5px;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.learning-title i {
  font-size: 2.75rem;
  opacity: 0.9;
}

.learning-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0 0 2rem 0;
  max-width: 600px;
}

.learning-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.learning-stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.learning-stat-item i {
  font-size: 1.25rem;
  opacity: 0.8;
}

.learning-hero-badge {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.learning-hero-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  display: block;
}

.learning-hero-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive Design for Learning Header Card */
@media (max-width: 768px) {
  .learning-header-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .learning-title {
    font-size: 2rem;
    justify-content: center;
  }

  .learning-stats {
    justify-content: center;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .learning-header-card {
    padding: 2rem 1.5rem;
  }

  .learning-title {
    font-size: 1.75rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .learning-hero-number {
    font-size: 2rem;
  }
}

.ai-overview-section {
  padding: 1rem 0;
}

.ai-overview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.ai-overview-header h5 {
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
}

.ai-overview-header i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.period-badge {
  background: var(--primary-light);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.overview-content {
  space-y: 1rem;
}

.overview-summary {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.key-highlights {
  background: rgba(var(--primary-color-rgb), 0.05);
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 3px solid var(--primary-color);
  margin: 1rem 0;
}

.key-highlights h6 {
  margin: 0 0 0.75rem 0;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.key-highlights h6 i {
  color: var(--warning-color);
  margin-right: 0.5rem;
}

.highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlights-list li {
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.highlights-list li:before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.analysis-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.btn-view-full {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-view-full:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.analysis-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.processing-state {
  text-align: center;
  padding: 2rem 1rem;
}

.processing-icon {
  margin-bottom: 1rem;
}

.processing-icon i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.processing-state h5 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.processing-state p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.processing-timeline {
  margin-top: 1rem;
}

.processing-timeline small {
  color: var(--text-muted);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.mdi-spin {
  animation: spin 2s linear infinite;
}

/* ================================================
       MODERN MODAL SYSTEM - GENERIC CLASSES
       Use these classes across all modals in the app
       ================================================ */

/* Modal Dialog & Content */
.modal-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.modal-content-modern {
  border: none;
  border-radius: 16px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.15),
    0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  backdrop-filter: blur(20px);
  max-width: 500px;
  width: 100%;
  margin: 1rem;
  background: white;
  position: relative;
}

.modal-content-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-blue, #2563eb) 0%,
    var(--primary-blue-light, #3b82f6) 100%
  );
}

/* Modern Modal Header */
.modal-header-modern {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e5e7eb;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.modal-header-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    var(--primary-blue, #2563eb) 0%,
    var(--primary-blue-light, #3b82f6) 100%
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.modal-header-content {
  flex: 1;
  min-width: 0;
}

.modal-title-modern {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.025em;
}

.modal-subtitle-modern {
  font-size: 0.875rem;
  color: #fff;
  margin: 0;
  font-weight: 500;
}

.modal-close-modern {
  width: 32px;
  height: 32px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modal-close-modern:hover {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
  transform: scale(1.05);
}

.modal-close-modern:focus {
  outline: 2px solid var(--primary-blue, #2563eb);
  outline-offset: 2px;
}

/* Modern Modal Body */
.modal-body-modern {
  padding: 2rem;
  background: white;
}

.modal-form-modern {
  margin: 0;
}

/* Modern Form Elements */
.form-group-modern {
  margin-bottom: 1.5rem;
}

.form-group-modern:last-child {
  margin-bottom: 0;
}

.form-label-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.label-icon-modern {
  font-size: 1rem;
  color: var(--primary-blue, #2563eb);
}

.form-input-modern {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  background: #f9fafb;
  transition: all 0.2s ease;
  color: #1f2937;
}

.form-input-modern:hover {
  border-color: #d1d5db;
  background: #ffffff;
}

.form-input-modern:focus {
  border-color: var(--primary-blue, #2563eb);
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.form-input-modern::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.form-helper-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid var(--primary-blue, #2563eb);
}

.form-helper-modern i {
  font-size: 0.875rem;
  color: var(--primary-blue, #2563eb);
  flex-shrink: 0;
}

/* Modern Modal Footer */
.modal-footer-modern {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  padding: 1.5rem 2rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
}

/* Modern Buttons */
.btn-cancel-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-cancel-modern:hover {
  background: #f9fafb;
  color: #374151;
  border-color: #9ca3af;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-blue, #2563eb) 0%,
    var(--primary-blue-light, #3b82f6) 100%
  );
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary-modern:hover {
  background: linear-gradient(
    135deg,
    var(--primary-blue-light, #3b82f6) 0%,
    var(--primary-blue, #2563eb) 100%
  );
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

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

.btn-primary-modern:focus {
  outline: 2px solid var(--primary-blue, #2563eb);
  outline-offset: 2px;
}

/* Loading State */
.btn-primary-modern.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-primary-modern.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

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

/* Responsive Design */
@media (max-width: 576px) {
  .modal-content-modern {
    margin: 0.5rem;
    border-radius: 12px;
  }

  .modal-header-modern {
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }

  .modal-header-icon {
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
  }

  .modal-title-modern {
    font-size: 1.125rem;
  }

  .modal-subtitle-modern {
    font-size: 0.8125rem;
  }

  .modal-body-modern {
    padding: 1.5rem;
  }

  .modal-footer-modern {
    padding: 1rem 1.5rem;
    flex-direction: column-reverse;
    gap: 0.75rem;
  }

  .btn-cancel-modern,
  .btn-primary-modern {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1rem;
  }
}

/* Enhanced Focus States for Accessibility */
.modal-content-modern:focus-within {
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.15),
    0 5px 20px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Animation Enhancements */
.modal.fade .modal-content-modern {
  transform: translateY(-20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-content-modern {
  transform: translateY(0) scale(1);
}

/* Tag Input Specific Styling */
.tagInput.form-input-modern {
  min-height: 80px;
  resize: vertical;
}

/* Validation States */
.form-input-modern.is-valid {
  border-color: #10b981;
  background: #f0fdf4;
}

.form-input-modern.is-invalid {
  border-color: #ef4444;
  background: #fef2f2;
}

.form-feedback-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.form-feedback-modern.valid {
  color: #065f46;
  background: #d1fae5;
  border-left: 3px solid #10b981;
}

.form-feedback-modern.invalid {
  color: #991b1b;
  background: #fee2e2;
  border-left: 3px solid #ef4444;
}
