/* Goal Tracker - Modern Professional Design */

:root {

  --primary: #03101A;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #0094E9;
  --secondary-dark: #059669;
  --accent: #f59e0b;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
  --gray-50: #F8FAFD;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--gray-50);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-900);
}

.btn-secondary:hover {
  background: var(--gray-300);
}

.btn-success {
  background: var(--success);
  color: var(--white);
}

.btn-success:hover {
  background: var(--secondary-dark);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
}

.card-body {
  color: var(--gray-700);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-control {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(99 102 241 / 0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.alert-error,
.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

/* Progress */
.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.35s;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.progress-bar {
  width: 100%;
  height: 0.5rem;
  background: var(--gray-200);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Goal Cards */
.goal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid var(--primary);
}

/* Onboarding goal cards - flexbox layout to keep button at bottom */
.onboarding-goal-card {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.goal-card-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.goal-description {
  color: var(--gray-600);
  margin-bottom: 1rem;
  flex: 1;
}

.goal-card-action {
  padding: 0 1.5rem 1.5rem 1.5rem;
  margin-top: auto;
}

.goal-card-action .btn {
  width: 100%;
}

/* Category selection cards */
.category-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.category-selection-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
}

.category-selection-card:hover {
  border-color: var(--primary);
  background: var(--gray-50);
}

.category-checkbox {
  margin: 0;
  cursor: pointer;
}

.category-checkbox:checked+.category-selection-label {
  font-weight: 600;
}

/* Selected state - using :has() for modern browsers */
.category-selection-card:has(.category-checkbox:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
}

/* Fallback using JavaScript will be handled by form submission */

.category-selection-label {
  cursor: pointer;
  user-select: none;
  flex: 1;
}

.goal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.goal-card.overdue {
  border-left-color: var(--danger);
}

.goal-card.completed {
  border-left-color: var(--success);
  opacity: 0.8;
}

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

.goal-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.goal-category {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-transform: uppercase;
}

.goal-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--white);
}

.badge-success {
  background: var(--success);
  color: var(--white);
}

.badge-danger {
  background: var(--danger);
  color: var(--white);
}

.badge-warning {
  background: var(--warning);
  color: var(--white);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

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

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.flex {
  display: flex;
}

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

.gap-2 {
  gap: 1rem;
}

/* Login/Signup Pages */
/* Login Page - New Design */
.login-page-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 100vh;
  display: flex;
  z-index: 1;
  padding: 30px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--primary);
  background: #F5F7FA;
  overflow: hidden;
  /* Prevent body scroll */
}

/* Override container padding for login page */
body:not(.user-body) main.container {
  padding: 0 !important;
  max-width: 100% !important;
}

.login-form-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 3rem 2rem;
  background: #F5F7FA;
  /* Very light blue-grey background */
  overflow-y: auto;
  /* Enable internal scroll */
  height: 100%;
}

.login-form-wrapper {
  margin: auto;
  width: 100%;
  max-width: 420px;
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.login-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-logo-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.login-form {
  width: 100%;
}

.login-form-group {
  margin-bottom: 1.25rem;
}

.login-form-group:last-of-type {
  margin-bottom: 0;
}

.login-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.login-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  transition: all 0.2s;
  box-sizing: border-box;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.login-password-wrapper .login-input {
  padding-right: 3rem;
  /* Space for eye icon */
}

.login-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(68, 122, 237, 0.1);
}

.login-password-wrapper {
  position: relative;
}

.login-password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-500);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-password-toggle:hover {
  color: var(--gray-700);
}

.login-forgot-password {
  text-align: right;
  margin-bottom: 1.5rem;
}

.login-forgot-link {
  font-size: 0.875rem;
  color: #0094E9;
  /* Theme blue */
  text-decoration: none;
  font-weight: 600;
  /* Semibold */
}

.login-forgot-link:hover {
  text-decoration: underline;
}

.login-submit-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  background: #9CA3AF;
  /* Grey background */
  border: none;
  border-radius: 30px;
  /* Rounded like theme */
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.login-submit-btn:hover {
  background: #6B7280;
}

.login-divider {
  position: relative;
  text-align: center;
  margin: 2rem 0;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.login-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-bottom: 1px solid var(--gray-200);
  z-index: 0;
}

.login-divider span {
  position: relative;
  background: #F5F7FA;
  /* Match background */
  padding: 0 1rem;
  z-index: 1;
  font-style: italic;
  /* Slightly italic */
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-500);
}

.login-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.login-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 30px;
  /* Rounded like theme */
  transition: all 0.2s;
  border: 1px solid var(--gray-200);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.login-google-btn {
  background: var(--white);
  color: var(--primary);
}

.login-google-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.login-apple-btn {
  background: var(--white);
  color: var(--primary);
}

.login-apple-btn svg {
  color: var(--gray-900);
}

.login-apple-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.login-signup-link {
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 1rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.login-error-alert {
  background: #FEE2E2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.login-error-alert ul {
  margin: 0;
  padding-left: 1.5rem;
  list-style: disc;
}

.login-error-alert li {
  color: #DC2626;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.login-error-alert li:last-child {
  margin-bottom: 0;
}

/* Goal Template Page */
.goal-template-page {
  /* padding: 2rem 0; */
}

.goal-template-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.goal-template-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goal-template-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.goal-template-filter-chip {
  padding: 0.625rem 1.25rem;
  border-radius: 30px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goal-template-filter-chip:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.goal-template-filter-chip.active {
  background: #C8E5F7;
  color: #003E62;
  border-color: #C8E5F7;
}

.goal-template-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.goal-template-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.2s;
}

.goal-template-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-200);
}

.goal-template-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.goal-template-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.goal-template-icon.wellness {
  background: #D1FAE5;
  border: 2px solid #059669;
}

.goal-template-icon.wellness svg path {
  stroke: #059669;
  fill: none;
}

.goal-template-icon.learning {
  background: #FED7AA;
}

.goal-template-icon.productivity {
  background: #C8E5F7;
}

.goal-template-icon.community-service,
.goal-template-icon.community-services {
  background: #E0E7FF;
}

.goal-template-icon.personal-development {
  background: #FCE7F3;
}

.goal-template-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  flex: 1;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goal-template-card-description {
  font-size: 14px;
  color: #003E62;
  margin: 0;
  line-height: 1.5;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goal-template-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.goal-template-tracking {
  display: flex;
  align-items: center;
}

.goal-template-tracking-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  color: #565F66;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goal-template-tracking-item svg {
  color: var(--gray-700);
  flex-shrink: 0;
}

.goal-template-frequency-badge {
  padding: 0.375rem 0.875rem;
  background: #E6F4FD;
  color: #0069A5;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goal-template-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-500);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Template Details Sidebar */
.template-details-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.template-details-sidebar.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.template-details-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.template-details-sidebar.active .template-details-overlay {
  opacity: 1;
}

.template-details-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: var(--white);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  z-index: 1001;
}

.template-details-sidebar.active .template-details-panel {
  transform: translateX(0);
}

.template-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: none;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
}

.template-details-header h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.template-details-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  border-radius: 6px;
  transition: all 0.2s;
}

.template-details-close:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.template-details-content {
  padding: 0 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.template-details-summary-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.template-details-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0;
}

.template-details-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.template-details-title-section {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.template-details-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.template-details-category {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.template-details-description {
  font-size: 14px;
  color: #003E62;
  line-height: 1.6;
  margin: 0;
  margin-top: 0.5rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.template-details-section-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.template-details-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #667085;
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.template-details-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.template-details-detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--p);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.template-details-detail-item svg {
  color: var(--gray-600);
  flex-shrink: 0;
}

.template-details-usage-section-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


.template-details-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.template-details-section-header svg {
  color: var(--gray-700);
  flex-shrink: 0;
}

.template-details-section-header h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.template-details-section-subtitle {
  font-size: 14px;
  color: #667085;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.template-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.template-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  align-items: center;
  color: var(--gray-700);
  line-height: 1.5;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.template-details-list li svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.template-details-add-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: #0094E9;
  color: var(--white);
  border: none;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.template-details-add-btn:hover {
  background: #0077C2;
}

.template-details-disclaimer {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-align: center;
  margin: 0.5rem 0 0 0;
  font-style: italic;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Responsive */
@media (max-width: 1200px) {
  .goal-template-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .goal-template-cards-grid {
    grid-template-columns: 1fr;
  }
}

.login-signup-btn {
  color: #0094E9;
  /* Theme blue */
  text-decoration: none;
  font-weight: 600;
  /* Semibold */
  margin-left: 0.25rem;
}

.login-signup-btn:hover {
  text-decoration: underline;
}

/* Phone Mockup Section */
.login-phone-section {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(0, 148, 233, .15) 100%);
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.login-phone-section img {
  width: 100%;
  max-height: 80vh;
  height: auto;
  object-fit: contain;
  object-position: bottom right;
}

.login-phone-mockup {
  position: relative;
  width: 320px;
  height: 640px;
  background: #000;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-phone-screen {
  width: 100%;
  height: 100%;
  background: var(--white);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.phone-app-content {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.phone-app-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.phone-app-title {
  flex: 1;
}

.phone-app-title h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 0.25rem 0;
}

.phone-app-title span {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.phone-app-redo {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.phone-progress-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.phone-progress-circle-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
}

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

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

.phone-progress-count {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
}

.phone-progress-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0;
}

.phone-completion-section {
  background: #EFF5F9;
  padding: 1.25rem;
  border-radius: 12px;
}

.phone-completion-question {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin: 0 0 1rem 0;
}

.phone-completion-buttons {
  display: flex;
  gap: 0.75rem;
}

.phone-btn-yes,
.phone-btn-no {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
}

.phone-btn-yes {
  background: var(--primary);
  color: var(--white);
}

.phone-btn-yes.active {
  background: var(--primary);
}

.phone-btn-no {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.phone-history-section {
  margin-top: 0.5rem;
}

.phone-history-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 0.75rem 0;
}

.phone-history-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.phone-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.phone-history-item:last-child {
  border-bottom: none;
}

.phone-history-date {
  font-size: 0.75rem;
  color: var(--gray-700);
}

.phone-history-status {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.phone-history-status.completed {
  background: #D1FAE5;
  color: #059669;
}

.phone-history-status.not-completed {
  background: var(--gray-200);
  color: var(--gray-600);
}

.phone-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.phone-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s;
}

.phone-action-btn.delete {
  color: #F04438;
  border-color: #F04438;
}

.phone-action-btn:hover {
  background: var(--gray-50);
}

/* Responsive */
@media (max-width: 1024px) {
  .login-page-container {
    flex-direction: column;
  }

  .login-phone-section {
    display: none;
  }

  .login-form-section {
    padding: 2rem 1.5rem;
  }
}

/* Old auth styles for backward compatibility */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 2rem;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
}

.auth-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-subtitle {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--gray-100);
}

.auth-divider span {
  padding: 0 1rem;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.btn-google:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.btn-google svg {
  flex-shrink: 0;
}

.btn-apple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--gray-900);
  color: var(--white);
  border: 1px solid var(--gray-900);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.btn-apple:hover {
  background: var(--gray-800);
  border-color: var(--gray-800);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  color: var(--white);
}

.btn-apple svg {
  flex-shrink: 0;
}

/* Dashboard */
.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.dashboard-subtitle {
  color: var(--gray-600);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

/* Filter Chips */
.filter-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-chip {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-500);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Admin Sidebar */
.admin-body {
  display: flex;
  min-height: 100vh;
  background: var(--gray-50);
  margin: 0;
  padding: 15px 0 0 15px;
  overflow-x: hidden;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Apply DM Sans font to all admin elements */
.admin-body,
.admin-body *,
.admin-sidebar,
.admin-sidebar *,
.admin-main,
.admin-main *,
.admin-content,
.admin-content *,
[class^="admin-"],
[class^="admin-"] * {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.admin-sidebar {
  width: 280px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 15px;
  top: 15px;
  bottom: 0;
  height: 100vh;
  z-index: 1000;
  /* box-shadow: 4px 0 12px rgba(0, 0, 0, 0.06); */
  transition: transform 0.3s ease;
  border-radius: 16px 16px 0px 0;
  margin: 0;
  padding: 30px;
}

.sidebar-header {
  padding: 0px 0 30px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--white);
  border-radius: 0 24px 0 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--gray-900);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.sidebar-logo-link {
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-block;
}

.sidebar-logo-link:hover {
  opacity: 0.8;
}

.logo-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.logo-circle .logo-icon {
  width: 18px;
  height: 18px;
  stroke: var(--white);
  fill: none;
  display: block;
}

.sidebar-logo-image {
  width: 105px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.logo-text {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
  flex: 1;
}

.logo-menu-icon {
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  position: relative;
  flex-shrink: 0;
  z-index: 10;
}

.logo-menu-icon:hover {
  opacity: 1;
  background: var(--gray-50);
}

.logo-menu-icon:active {
  opacity: 1;
  background: var(--gray-100);
}

.logo-menu-icon .expand-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease, margin-left 0.3s ease;
  display: block;
}

/* Collapsed sidebar state */
.admin-sidebar {
  transition: width 0.3s ease, padding 0.3s ease;
}

.admin-sidebar.collapsed {
  width: 80px;
  padding: 30px 15px;
}

.admin-sidebar.collapsed .sidebar-header {
  padding-bottom: 30px;
  position: relative;
}

.admin-sidebar.collapsed .sidebar-logo {
  justify-content: center;
  position: relative;
  width: 100%;
}

.admin-sidebar.collapsed .sidebar-logo-image {
  display: none;
}

.admin-sidebar.collapsed .logo-menu-icon {
  margin-left: 0;
  position: absolute;
  right: -45px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  opacity: 1;
}

.admin-sidebar.collapsed .logo-menu-icon:hover {
  background: var(--gray-50);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.admin-sidebar.collapsed .logo-menu-icon .expand-arrow {
  transform: rotate(180deg);
}

.admin-sidebar.collapsed .sidebar-text {
  display: none;
}

.admin-sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: 0.75rem;
  width: 100%;
}

.admin-sidebar.collapsed .sidebar-icon {
  margin: 0;
}

.admin-sidebar.collapsed .sidebar-nav {
  padding: 1.25rem 0 1.5rem 0;
}

.admin-sidebar.collapsed~.admin-main {
  margin-left: 80px;
  width: calc(100% - 80px);
  transition: margin-left 0.3s ease, width 0.3s ease;
}

.sidebar-nav {
  flex: 1;
  padding: 1.25rem 0 1.5rem 0;
  overflow-y: auto;
  overflow-x: visible;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
  border-radius: 0 0 24px 0;
}

.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  margin: 0;
  color: #03101A;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.2s ease;
  position: relative;
  border-radius: 8px;
}

.sidebar-link:hover {
  background: #F5FAFD;
  color: #0094E9;
}

.sidebar-link:hover svg path {
  stroke: #0094E9;
}

.sidebar-link.active {
  background: #F5FAFD;
  color: #0094E9;
}

.sidebar-link.active svg path {
  stroke: #0094E9;
}



.sidebar-link.active .sidebar-icon {
  color: var(--primary);
}

.sidebar-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--gray-600);
}

.sidebar-icon svg {
  width: 100%;
  height: 100%;
}

.sidebar-text {
  font-size: 14px;
  color: inherit;
  line-height: 1.5;
}

.admin-main {
  flex: 1;
  margin-left: 280px;
  min-height: 100vh;
  transition: margin-left 0.3s ease, width 0.3s ease;
  width: calc(100% - 280px);
}

.admin-content {
  max-width: 100%;
  margin: 0;
  padding: 0 2rem 20px 2rem;
}

/* Admin Page Header */
.admin-page-header {
  background: var(--white);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--gray-100);
}

.admin-header-left {
  display: flex;
  align-items: center;
}

.admin-header-title {
  font-size: 1rem;
  font-weight: 500;
  color: #03101A;
  margin: 0;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: .5rem;

}

.admin-notification-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
  border-right: 1px solid #F0F1F3;
}

.admin-notification-btn:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}

.admin-user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border-radius: 12px;
  transition: background 0.2s;
}

.admin-user-profile:hover {
  background: var(--gray-50);
}

.admin-profile-picture {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.admin-profile-initial {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-user-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.admin-user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
}

.admin-user-role {
  font-size: 11px;
  color: #565F66;
  line-height: 1.4;
}

.admin-dropdown-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  margin-left: 0.25rem;
  pointer-events: none;
}

.admin-dropdown-btn:hover {
  color: var(--gray-900);
}

.admin-user-profile {
  position: relative;
}

.admin-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  min-width: 180px;
  z-index: 1000;
  overflow: hidden;
}

.admin-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  font-size: 14px;
  font-weight: 400;
  border: none;
  width: 100%;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.admin-dropdown-item:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}

.admin-dropdown-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Admin Statistics Cards */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-stat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-stat-icon img {
  object-fit: contain;
}

.admin-stat-icon-orange {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
}

.admin-stat-icon-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.admin-stat-icon-green {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.admin-stat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-stat-title {
  font-size: 16px;
  color: var(--primary);
  margin: 0;
  font-weight: 600;
}

.admin-stat-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-stat-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.admin-stat-badge {
  display: inline-block;
  padding: 3px 12px;
  background: #E7F8F0;
  color: #0D824B;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin Dashboard Cards */
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-dashboard-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--gray-100);
}

.admin-card-header {
  margin-bottom: 1.5rem;
}

.admin-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

.admin-card-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: #565F66;
  margin: 0;
}

/* Popular Templates */
.admin-template-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.admin-template-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 0 10px 0;
}

.admin-template-item:last-child {
  border-bottom: none;
}

.admin-rank-badge {
  width: 48px;
  height: 44px;
  border-radius: 8px;
  background: #ECF2FD;
  color: #447AED;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.admin-template-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.admin-template-name {
  font-size: 16px;
  font-weight: 600;
  color: #03101A;
  margin: 0;
  line-height: 1.4;
}

.admin-template-category {
  font-size: 14px;
  font-weight: 400;
  color: #565F66;
  margin: 0;
  line-height: 1.4;
}

.admin-template-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.375rem;
  flex-shrink: 0;
}

.admin-template-count {
  font-size: 14px;
  font-weight: 500;
  color: #03101A;
  line-height: 1.4;
}

.admin-template-badge {
  display: inline-block;
  padding: 3px 12px;
  background: #E7F8F0;
  color: #0D824B;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
}

/* Recent Reflections */
.admin-reflection-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.admin-reflection-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0 0 15px 0;
}

.admin-reflection-item:last-child {
  padding-bottom: 0;
}

.admin-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.admin-avatar-initial {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-reflection-info {
  flex: 1;
  min-width: 0;
}

.admin-reflection-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin: 0;
  line-height: 1.4;
}

.admin-reflection-snippet {
  font-size: 14px;
  font-weight: 400;
  color: #565F66;
  margin: 0;
  line-height: 1.4;
}

.admin-reflection-time {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--gray-600);
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.admin-reflection-time svg {
  flex-shrink: 0;
}

.admin-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-500);
}

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

@media (max-width: 1024px) {
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin Categories Page */
.admin-categories-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.admin-add-category-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 24px;
  height: 48px;
  min-width: 180px;
  background: var(--secondary);
  color: var(--white);
  border-radius: 9999px;
  border: none;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.2s;
  cursor: pointer;
}

.admin-add-category-btn:hover {
  background: #0080D1;
  color: var(--white);
}

.admin-add-category-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  stroke: var(--white);
}

.admin-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.admin-category-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.admin-category-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 5px;
}

.admin-category-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #ECF2FD;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-category-icon-box svg {
  width: 24px;
  height: 24px;
}

.admin-category-icon-box img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.admin-category-name {
  font-size: 16px;
  font-weight: 500;
  color: #03101A;
  margin: 0;
  flex: 1;
}

.admin-category-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.admin-category-action-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 0;
  transition: all 0.2s;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  padding: 0;
}

/* .admin-edit-btn {
  color: #565F66;
  border-color: var(--gray-100);
}

.admin-edit-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-100);
}

.admin-delete-btn {
  color: #DC2626;
  border-color: #FEE2E2;
  background: #FEE2E2;
}

.admin-delete-btn:hover {
  background: #FECACA;
  border-color: #FCA5A5;
} */

.admin-category-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 0.875rem 0;
}

.admin-category-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.admin-category-goals {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
}

.admin-category-goals strong {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
}

.admin-category-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
}

.admin-category-status.visible {
  background: #E7F8F0;
  color: #0D824B;
}

.admin-category-status.hidden {
  background: rgba(156, 163, 175, 0.15);
  color: var(--gray-500);
}

.admin-category-status svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

@media (max-width: 1024px) {
  .admin-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-categories-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin Modal */
.admin-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.admin-modal.active {
  display: flex;
}

.admin-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.admin-modal-content {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  z-index: 2001;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0 1.5rem;
  border-bottom: none;
}

.admin-delete-modal-content .admin-modal-header {
  justify-content: flex-end;
}

.admin-modal-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  margin: 0;
  text-align: left;
}

.admin-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.admin-modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.admin-modal-form {
  padding: 1.5rem;
}

.admin-template-modal-content {
  max-width: 640px;
}

.admin-template-modal-content .admin-modal-footer {
  padding: 0 0 1.5rem 0;
}

.admin-category-modal-content {
  max-width: 430px;
}

.admin-category-modal-content .admin-modal-footer {
  padding: 0 0 1.5rem 0;
}

.admin-form-group {
  margin-bottom: 1.5rem;
}

.admin-form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-form-label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.admin-form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--gray-900);
  transition: all 0.2s;
  box-sizing: border-box;
  background: var(--white);
}

.admin-form-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 148, 233, 0.1);
}

.admin-form-input select,
select.admin-form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23565F66' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.admin-icon-selection-wrapper {
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 1rem;
  background: var(--white);
}

.admin-icon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.admin-icon-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem;
  border: 2px solid #E8E8E8;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  min-height: 52px;
}

.admin-icon-option:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.admin-icon-option.selected {
  border-color: var(--primary);
  background: #ECF2FD;
}

.admin-icon-emoji {
  font-size: 1.5rem;
  line-height: 1;
}

/* Content Type Selection Grid */
.admin-content-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.admin-content-type-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
  font-size: 12px;
  font-weight: 400;
  color: var(--primary);
}

.admin-content-type-option:hover {
  border-color: #B0DEF8;
  background: #E6F4FD;
}

.admin-content-type-option:hover span {
  color: #0069A5;
}

.admin-content-type-option:hover svg path {
  stroke: #0069A5;
}

.admin-content-type-option#type_option_quote:hover svg path,
.admin-content-type-option#new_type_option_quote:hover svg path {
  fill: #0069A5;
  stroke: none;
}

.admin-content-type-option#type_option_quote.selected svg path,
.admin-content-type-option#new_type_option_quote.selected svg path {
  fill: #0069A5;
  stroke: none;
}


.admin-content-type-option.selected {
  border-color: #B0DEF8;
  background: #E6F4FD;
}

.admin-content-type-option.selected span {
  color: #0069A5;
}

.admin-content-type-option.selected svg path {
  stroke: #0069A5;
}

.admin-content-type-option svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.admin-content-type-option.selected svg {
  color: var(--primary);
}

.admin-content-type-option:not(.selected) svg {
  color: var(--gray-900);
}

.admin-content-type-option span {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
}

/* Video Upload Area */
.admin-upload-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  background: rgb(240, 241, 243, 0.27);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--primary);
  font-weight: normal;
}

.admin-upload-area:hover {
  border-color: var(--gray-100);
  background: rgba(99, 102, 241, 0.02);
  color: var(--primary);
}

.admin-upload-area svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.admin-upload-area span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: inherit;
}

.admin-upload-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(240, 241, 243, 0.27);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-upload-icon-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.admin-upload-icon-btn svg {
  flex-shrink: 0;
}

.admin-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 14px;
  color: var(--primary);
  font-weight: 400;
}

.admin-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--secondary);
  border-radius: 4px;
  border: 2px solid var(--secondary);
}

.admin-checkbox-label input[type="checkbox"]:checked {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.admin-modal-footer {
  display: flex;
  gap: 0.75rem;
  padding: 0 1.5rem 1.5rem 1.5rem;
  border-top: none;
  margin-top: 0;
}

.admin-modal-btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.admin-modal-btn-cancel {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--gray-100);
  font-weight: 400;
}

.admin-modal-btn-cancel:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.admin-modal-btn-primary {
  background: var(--secondary);
  color: var(--white);
  border: 1px solid var(--secondary);
}

.admin-modal-btn-primary:hover {
  background: #0080D1;
  border-color: #0080D1;
}

/* Delete Modal Specific Styles */
.admin-delete-modal-content {
  max-width: 400px;
  padding-bottom: 1.5rem;
}

.admin-delete-modal-content .admin-modal-footer {
  padding: 0 1.5rem 0 1.5rem;
  margin-top: 0;
}

.admin-delete-modal-body {
  padding: 0 1.5rem 0 1.5rem;
  text-align: center;
}

.admin-delete-modal-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  margin: 0 0 0.25rem 0;
}

.admin-delete-warning-icon {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-warning-icon-back {
  position: absolute;
  width: 80px;
  height: 80px;
  background: #dc2626;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: translate(-4px, -4px) rotate(-2deg);
  z-index: 1;
}

.admin-warning-icon-front {
  position: relative;
  width: 80px;
  height: 80px;
  background: rgba(239, 68, 68, 0.25);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.admin-warning-icon-front svg {
  color: #ef4444;
  margin-top: 10px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.admin-delete-confirmation-text {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

.admin-modal-btn-delete {
  background: var(--secondary);
  color: var(--white);
  border: 1px solid var(--secondary);
}

.admin-modal-btn-delete:hover {
  background: #0080D1;
  border-color: #0080D1;
}

/* Admin Goal Templates Page */
.admin-templates-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.admin-templates-header-left {
  flex: 1;
}

.admin-templates-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.admin-templates-subtitle {
  font-size: 14px;
  color: #565F66;
  margin: 0;
  font-weight: 400;
}

.admin-templates-header-right {
  display: flex;
  align-items: center;
}

.admin-create-template-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 24px;
  height: 48px;
  background: var(--secondary);
  color: var(--white);
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.2s;
  cursor: pointer;
}

.admin-create-template-btn:hover {
  background: #0080D1;
  color: var(--white);
}

.admin-create-template-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  stroke: var(--white);
}

.admin-templates-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0;
  padding-bottom: 1rem;
}

.admin-search-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.admin-search-box svg {
  position: absolute;
  left: 0.875rem;
  color: var(--gray-400);
  pointer-events: none;
}

.admin-search-input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.75rem;
  border: 1px solid #F0F1F3;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 400;
  color: var(--primary);
  transition: all 0.2s;
  background: var(--white);
}

.admin-search-input::placeholder {
  color: #565F66;
}

.admin-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.admin-filter-btn {
  display: inline-flex;
  min-width: 171px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid #F0F1F3;
  border-radius: 16px;
  color: #565F66;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.admin-filter-dropdown-wrapper {
  position: relative;
}

.admin-filter-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--white);
  border: 1px solid #F0F1F3;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 1000;
  padding: 0.5rem 0;
}

.admin-filter-option {
  padding: 0;
}

.admin-filter-link {
  display: block;
  padding: 0.75rem 1rem;
  color: #03101A;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s;
}

.admin-filter-link:hover {
  background: #F7FBFD;
  color: var(--secondary);
}

.admin-filter-link.active {
  background: #E6F4FD;
  color: var(--secondary);
  font-weight: 500;
}

/* Admin User Show Page */
.admin-user-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.admin-user-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-user-info-label {
  font-size: 12px;
  font-weight: 500;
  color: #8B9196;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-user-info-value {
  font-size: 14px;
  font-weight: 500;
  color: #03101A;
}

.admin-weekly-summaries {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-weekly-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #F8FAFD;
  border-bottom: 1px solid #F0F1F3;
}

.admin-weekly-summary-item:last-child {
  border-bottom: none;
}

.admin-weekly-summary-info {
  flex: 1;
  min-width: 0;
}

.admin-weekly-summary-date {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #03101A;
  margin-bottom: 0.25rem;
}

.admin-weekly-summary-text {
  font-size: 13px;
  color: #565F66;
  margin: 0;
}

.admin-weekly-summary-percentage {
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary);
  flex-shrink: 0;
  padding-left: 1rem;
}

.admin-goals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.admin-goal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #F7FBFD;
  border-radius: 8px;
  border: 1px solid #E8F4F8;
}

.admin-goal-info {
  flex: 1;
  min-width: 0;
}

.admin-goal-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #03101A;
  margin-bottom: 0.25rem;
}

.admin-goal-meta {
  font-size: 13px;
  color: #565F66;
  margin: 0;
}

.admin-reflections-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-reflection-item-card {
  padding: 1rem;
  background: #F7FBFD;
  border-radius: 8px;
  border: 1px solid #E8F4F8;
}

.admin-reflection-date {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #03101A;
  margin-bottom: 0.5rem;
}

.admin-reflection-preview {
  font-size: 13px;
  color: #565F66;
  margin: 0;
  line-height: 1.5;
}

.admin-empty-text {
  color: #8B9196;
  font-size: 14px;
  margin: 0;
  text-align: center;
  padding: 2rem 0;
}

.admin-templates-table-container {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-100);
  padding: 1.25rem;
  overflow: visible;
}

.admin-templates-table-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
}

.admin-templates-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-templates-table thead {
  background: var(--white);
}

.admin-templates-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #8B9196;
  text-transform: none;
  background: var(--white);
}

.admin-templates-table tr {
  border-bottom: 1px solid #F0F1F3;
  transition: background 0.2s;
}

.admin-templates-table tbody tr:hover {
  background: var(--gray-50);
}

.admin-templates-table tbody tr:last-child {
  border-bottom: none;
}

.admin-templates-table td {
  padding: 1rem 1.25rem;
  font-size: 14px;
  color: #03101A;
  vertical-align: middle;
}

.admin-template-name-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-template-name {
  font-weight: 500;
  color: var(--primary);
  font-size: 14px;
  margin: 0;
}

.admin-template-description {
  font-size: 13px;
  font-weight: 400;
  color: #565F66;
  line-height: 1.4;
  margin: 0;
}

.admin-category-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
}

/* Category tag colors - will be set dynamically based on category */
.admin-category-tag.wellness {
  background: #EBF0E7;
  color: #0D824B;
}

.admin-category-tag.learning,
.admin-category-tag.community-service,
.admin-category-tag.personal-development {
  background: #E7F8F0;
  color: #0D824B;
}

.admin-category-tag.productivity,
.admin-category-tag.career {
  background: #ECF2FD;
  color: #447AED;
}

.admin-template-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #03101A;
  font-size: 14px;
  font-weight: 400;
}

.admin-template-type svg {
  flex-shrink: 0;
  color: #565F66;
  width: 16px;
  height: 16px;
}

.admin-template-frequency {
  color: #03101A;
  font-size: 14px;
  font-weight: 400;
}

.admin-template-target {
  color: #03101A;
  font-size: 14px;
  font-weight: 400;
}

.admin-status-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
}

.admin-status-tag.active {
  background: #E7F8F0;
  color: #0D824B;
}

.admin-status-tag.inactive {
  background: rgba(156, 163, 175, 0.15);
  color: var(--gray-500);
}

.admin-template-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 0;
  transition: all 0.2s;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
}

.admin-action-btn.admin-edit-btn {
  color: #565F66;
  border-color: #E8E8E8;
}

.admin-action-btn.admin-edit-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-100);
}

.admin-action-btn.admin-delete-btn {
  color: #DC2626;
  border-color: #FEE2E2;
  background: #FEE2E2;
}

.admin-action-btn.admin-delete-btn:hover {
  background: #FECACA;
  border-color: #FCA5A5;
}

@media (max-width: 1024px) {
  .admin-templates-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-templates-table-container,
  .admin-users-table-container {
    overflow: visible;
  }

  .admin-templates-table,
  .admin-users-table {
    min-width: 900px;
  }

  .admin-templates-table th,
  .admin-templates-table td,
  .admin-users-table th,
  .admin-users-table td {
    padding: 1rem 1rem;
    font-size: 14px;
    white-space: nowrap;
  }

  .admin-templates-table th:first-child,
  .admin-templates-table td:first-child,
  .admin-users-table th:first-child,
  .admin-users-table td:first-child {
    min-width: 200px;
  }

  .admin-templates-table th:nth-child(2),
  .admin-templates-table td:nth-child(2),
  .admin-users-table th:nth-child(2),
  .admin-users-table td:nth-child(2) {
    min-width: 150px;
  }

  /* Prevent action buttons from wrapping */
  .admin-user-actions {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .admin-action-btn {
    flex-shrink: 0;
  }

  .admin-templates-table td:last-child,
  .admin-users-table td:last-child {
    white-space: nowrap;
    min-width: 100px;
  }
}

/* Admin Content Manager Page */
.admin-content-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.admin-content-header-left {
  flex: 1;
}

.admin-content-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.admin-content-subtitle {
  font-size: 14px;
  color: #565F66;
  margin: 0;
  font-weight: 400;
}

.admin-content-header-right {
  display: flex;
  align-items: center;
}

.admin-create-content-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 24px;
  height: 48px;
  background: var(--secondary);
  color: var(--white);
  border-radius: 9999px;
  border: none;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.2s;
  cursor: pointer;
}

.admin-create-content-btn:hover {
  background: #0080D1;
  color: var(--white);
}

.admin-create-content-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  stroke: var(--white);
}

.admin-content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.admin-content-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--gray-100);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-content-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-content-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.admin-content-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #ECF2FD;
  color: #447AED;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-content-icon-number {
  font-size: 16px;
  font-weight: 600;
  color: #447AED;
  line-height: 1;
}

.admin-content-icon-box svg {
  width: 20px;
  height: 20px;
}

.admin-content-icon-box svg path {
  fill: #447AED;
  stroke: #447AED;
}

.admin-content-icon-box svg path[fill] {
  fill: #447AED;
}

.admin-content-icon-box svg path[stroke] {
  stroke: #447AED;
  fill: none;
}

.admin-content-title-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.admin-content-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.admin-content-action-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #F0F1F3;
  background: var(--white);
  padding: 0;
}

.admin-content-action-btn.admin-edit-btn {
  color: #03101A;
  border: 1px solid #F0F1F3;
  background: var(--white);
}

.admin-content-action-btn.admin-edit-btn:hover {
  background: var(--gray-50);
}

.admin-content-action-btn.admin-delete-btn {
  color: #DA3E33;
  border: 1px solid #FEE2E2;
  background: transparent;
}

.admin-content-action-btn.admin-delete-btn:hover {
  opacity: 0.9;
}

.admin-content-action-btn.admin-delete-btn svg {
  display: block;
}

.admin-content-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.admin-content-type-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  background: #ECF2FD;
  color: #447AED;
}

.admin-content-card-body {
  background: #F7FBFD;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.admin-content-preview {
  font-size: 14px;
  font-weight: 400;
  color: #03101A;
  line-height: 1.5;
  word-break: break-word;
  margin: 0;
}

.admin-content-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  margin-top: 0;
}

.admin-content-date {
  font-size: 14px;
  font-weight: 400;
  color: #565F66;
}

.admin-content-visibility-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-content-visibility-btn.visible {
  background: #E7F8F0;
  color: #0D824B;
}

.admin-content-visibility-btn.visible svg {
  stroke: #0D824B;
}

.admin-content-visibility-btn.hidden {
  background: rgba(156, 163, 175, 0.15);
  color: var(--gray-500);
}

.admin-content-visibility-btn svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

@media (max-width: 1024px) {
  .admin-content-grid {
    grid-template-columns: 1fr;
  }
}

.admin-alert-container {
  width: 100%;
  padding: 1rem 0 0;
  margin: 0;
}

.sidebar-toggle {
  display: none !important;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.active {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }

  .sidebar-toggle {
    display: none !important;
  }

  .sidebar-overlay.active {
    display: block;
  }

  .admin-content {
    padding: 1rem 1rem 20px 1rem;
  }

  .admin-alert-container {
    padding: 1rem 1rem 0;
  }
}

@media (max-width: 768px) {
  .navbar-content {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 1.5rem;
  }
}

/* Admin Users Management Page */
.admin-users-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.admin-users-header-left {
  flex: 1;
}

.admin-users-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.admin-users-subtitle {
  font-size: 14px;
  color: #565F66;
  margin: 0;
  font-weight: 400;
}

.admin-users-search-form {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  align-items: center;
}

.admin-users-table-container {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  padding: 1.25rem;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-users-table thead {
  background: var(--white);
}

.admin-users-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #8B9196;
  text-transform: none;
  background: var(--white);
}

.admin-users-table tr {
  border-bottom: 1px solid #F0F1F3;
  transition: background 0.2s;
}

.admin-users-table tbody tr:hover {
  background: var(--gray-50);
}

.admin-users-table tbody tr:last-child {
  border-bottom: none;
}

.admin-users-table td {
  padding: 1rem 1.25rem;
  font-size: 14px;
  color: #03101A;
  vertical-align: middle;
}

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-avatar-initial {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

.admin-user-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.admin-user-name {
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
}

.admin-user-email {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.admin-active-goals-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  background: #E7F8F0;
  color: #0D824B;
}

.admin-inactive-goals-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(156, 163, 175, 0.15);
  color: var(--gray-500);
}

.admin-completion-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 4px;
  overflow: hidden;
  min-width: 40px;
}

.admin-progress-fill {
  height: 100%;
  background: #22c55e;
  border-radius: 4px;
  transition: width 0.3s;
}

.admin-completion-percentage {
  font-size: 13px;
  font-weight: 400;
  color: var(--primary);
  text-align: right;
}

.admin-user-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-action-btn.admin-view-btn {
  color: var(--gray-700);
}

.admin-action-btn.admin-view-btn:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.admin-empty-state {
  background: var(--white);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.admin-empty-state p {
  color: var(--gray-500);
  font-size: 1rem;
  margin: 0;
}

/* ============================================
   COMPREHENSIVE RESPONSIVE STYLES
   ============================================ */

/* Tablet and below (max-width: 1024px) */
@media (max-width: 1024px) {

  /* Sidebar adjustments */
  .admin-sidebar {
    width: 240px;
  }

  .admin-main {
    margin-left: 240px;
    width: calc(100% - 240px);
  }

  /* Page header */
  .admin-page-header {
    padding: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .admin-header-right {
    flex-wrap: wrap;
  }

  /* Dashboard stats grid */
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Templates header */
  .admin-templates-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .admin-templates-header-right {
    width: 100%;
  }

  .admin-create-template-btn {
    width: 100%;
    justify-content: center;
  }

  /* Tables - horizontal scroll */
  .admin-templates-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-templates-table {
    min-width: 800px;
  }

  /* Content grid */
  .admin-content-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Categories grid */
  .admin-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* User info grid */
  .admin-user-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Goals grid */
  .admin-goals-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Modals */
  .admin-modal-content {
    max-width: 90%;
    margin: 1rem;
  }

  .admin-category-modal-content {
    max-width: 90%;
  }

  /* Filters */
  .admin-templates-filters {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .admin-search-input {
    flex: 1;
    min-width: 200px;
  }

  .admin-filter-btn {
    min-width: 150px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {

  /* Sidebar - hidden by default */
  .admin-sidebar {
    transform: translateX(-100%);
    width: 280px;
    position: fixed;
    z-index: 1000;
    height: 100vh;
    left: 0;
    top: 0;
    border-radius: 0;
  }

  .admin-sidebar.active {
    transform: translateX(0);
  }

  /* Logo menu icon on mobile - always visible outside sidebar */
  .logo-menu-icon-mobile {
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    left: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #F5FAFD !important;
    border: 1px solid var(--gray-100) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    width: 40px !important;
    height: 40px !important;
    z-index: 1001 !important;
    opacity: 1 !important;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .logo-menu-icon-mobile:hover,
  .logo-menu-icon-mobile:active {
    background: #F5FAFD !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  }

  .logo-menu-icon-mobile svg {
    width: 20px;
    height: 20px;
    display: block;
    transition: transform 0.3s ease;
  }

  .logo-menu-icon-mobile svg path {
    stroke: #03101A;
    transition: all 0.3s ease;
  }

  /* Hamburger to X animation - handled by JavaScript */
  .logo-menu-icon-mobile.active svg path {
    transition: d 0.3s ease;
  }

  /* Logo menu icon inside sidebar on mobile - hide it */
  .logo-menu-icon {
    display: none !important;
  }

  .admin-sidebar.collapsed {
    width: 280px;
    padding: 30px;
    transform: translateX(-100%);
  }

  .admin-sidebar.collapsed.active {
    transform: translateX(0);
  }

  .admin-sidebar.collapsed .logo-menu-icon {
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin-left: auto;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .admin-sidebar.collapsed .logo-menu-icon .expand-arrow {
    transform: rotate(180deg);
  }

  .admin-sidebar.collapsed .sidebar-logo-image {
    display: block;
  }

  .admin-sidebar.collapsed .sidebar-text {
    display: block;
  }

  .admin-sidebar.collapsed .sidebar-link {
    justify-content: flex-start;
    padding: 14px;
  }

  .admin-main {
    margin-left: 0;
    width: 100%;
  }

  .admin-sidebar.collapsed~.admin-main {
    margin-left: 0;
    width: 100%;
  }

  .sidebar-toggle {
    display: none !important;
  }

  .sidebar-overlay.active {
    display: block;
  }

  /* Content padding */
  .admin-content {
    padding: 1rem 1rem 20px 1rem;
  }

  .admin-alert-container {
    padding: 1rem 1rem 0;
  }

  /* Page header */
  .admin-page-header {
    padding: 0.75rem 1rem 0.75rem 4rem;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
  }

  .admin-header-title {
    font-size: 0.875rem;
  }

  .admin-header-right {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Dashboard stats - single column */
  .admin-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .admin-stat-title {
    font-size: 14px;
  }

  .admin-stat-value {
    font-size: 20px;
  }

  /* Templates header */
  .admin-templates-header {
    margin-bottom: 1.5rem;
  }

  .admin-templates-title {
    font-size: 18px;
  }

  .admin-templates-subtitle {
    font-size: 13px;
  }

  /* Tables - full width scroll */
  .admin-templates-table-container,
  .admin-users-table-container {
    padding: 1rem;
    border-radius: 8px;
    overflow: visible;
  }

  .admin-templates-table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    margin-top: 1rem;
  }

  .admin-templates-filters {
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 1rem;
  }

  .admin-search-input {
    width: 100%;
    min-width: 100%;
  }

  .admin-filter-btn {
    width: 100%;
    min-width: 100%;
    justify-content: space-between;
  }

  .admin-templates-table,
  .admin-users-table {
    min-width: 850px;
    font-size: 14px;
  }

  .admin-templates-table th,
  .admin-templates-table td,
  .admin-users-table th,
  .admin-users-table td {
    padding: 0.875rem 1rem;
    font-size: 13px;
    white-space: nowrap;
  }

  .admin-templates-table th:first-child,
  .admin-templates-table td:first-child,
  .admin-users-table th:first-child,
  .admin-users-table td:first-child {
    min-width: 180px;
  }

  .admin-templates-table th:nth-child(2),
  .admin-templates-table td:nth-child(2),
  .admin-users-table th:nth-child(2),
  .admin-users-table td:nth-child(2) {
    min-width: 140px;
  }

  .admin-template-name,
  .admin-template-description {
    white-space: normal;
    word-break: break-word;
  }

  .admin-template-name-cell {
    min-width: 200px;
  }

  .admin-user-cell {
    min-width: 180px;
  }

  /* Content grid - single column */
  .admin-content-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .admin-content-card {
    padding: 1rem;
  }

  .admin-content-card-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .admin-content-title-row {
    flex: 1;
    min-width: 0;
  }

  .admin-content-actions {
    flex-shrink: 0;
  }

  /* Categories grid - single column */
  .admin-categories-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .admin-category-card {
    padding: 1rem;
  }

  .admin-add-category-btn {
    width: 100%;
    min-width: 100%;
  }

  /* User management */
  .admin-users-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .admin-users-title {
    font-size: 18px;
  }

  .admin-users-subtitle {
    font-size: 13px;
  }

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

  /* User info grid - single column */
  .admin-user-info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .admin-goals-grid {
    grid-template-columns: 1fr;
  }

  /* Weekly summaries */
  .admin-weekly-summary-item {
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .admin-weekly-summary-percentage {
    padding-left: 0;
    min-width: auto;
    text-align: left;
    width: 100%;
  }

  /* Modals - full width on mobile */
  .admin-modal {
    padding: 0.5rem;
  }

  .admin-modal-content {
    max-width: 100%;
    margin: 0;
    border-radius: 12px;
    max-height: 95vh;
    overflow-y: auto;
  }

  .admin-category-modal-content {
    max-width: 100%;
  }

  .admin-modal-header {
    padding: 1rem;
  }

  .admin-modal-title {
    font-size: 18px;
  }

  .admin-modal-form {
    padding: 1rem;
  }

  .admin-modal-footer {
    flex-direction: column-reverse;
    gap: 0.75rem;
    padding: 0 1rem 1.5rem 1rem;
  }

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

  /* Icon grid */
  .admin-icon-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }

  .admin-icon-option {
    min-height: 48px;
  }

  /* Forms */
  .admin-form-group {
    margin-bottom: 1rem;
  }

  .admin-form-label {
    font-size: 14px;
    margin-bottom: 0.5rem;
  }

  .admin-form-input {
    font-size: 14px;
    padding: 0.625rem 0.75rem;
  }

  /* Action buttons - larger touch targets */
  .admin-user-actions {
    flex-wrap: nowrap;
    gap: 0.5rem;
    white-space: nowrap;
  }

  .admin-action-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    flex-shrink: 0;
  }

  .admin-action-btn svg {
    width: 40px;
    height: 40px;
  }

  /* Ensure action column doesn't shrink */
  .admin-templates-table td:last-child,
  .admin-users-table td:last-child {
    white-space: nowrap;
    min-width: 100px;
  }

  .admin-content-action-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .admin-category-action-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  /* Filter dropdown */
  .admin-filter-dropdown {
    width: 100%;
    left: 0;
    right: 0;
  }

  /* Dashboard cards */
  .admin-dashboard-card {
    padding: 1rem;
  }

  .admin-card-header {
    padding-bottom: 1rem;
  }

  .admin-card-title {
    font-size: 16px;
  }

  /* Popular templates and reflections */
  .admin-template-item,
  .admin-reflection-item {
    padding: 0.75rem 0;
  }

  .admin-rank-badge {
    width: 40px;
    height: 36px;
    font-size: 14px;
  }

  /* Content card body */
  .admin-content-card-body {
    padding: 0.75rem;
  }

  /* Empty state */
  .admin-empty-state {
    padding: 2rem 1rem;
  }

  /* Prevent action buttons from wrapping */
  .admin-user-actions {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .admin-action-btn {
    flex-shrink: 0;
  }

  .admin-templates-table td:last-child,
  .admin-users-table td:last-child {
    white-space: nowrap;
    min-width: 100px;
  }
}

/* Small mobile (max-width: 480px) */
@media (max-width: 480px) {
  .admin-content {
    padding: 0.75rem 0.75rem 20px 0.75rem;
  }

  .admin-page-header {
    padding: 0.75rem 0.75rem 0.75rem 4rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
  }


  .admin-stat-card {
    padding: 0.75rem;
  }

  .admin-templates-table-container,
  .admin-users-table-container {
    padding: 0.75rem;
    overflow: visible;
  }

  .admin-templates-table-wrapper {
    margin-top: 0.75rem;
  }

  .admin-templates-table,
  .admin-users-table {
    min-width: 800px;
    font-size: 13px;
  }

  .admin-templates-table th,
  .admin-templates-table td,
  .admin-users-table th,
  .admin-users-table td {
    padding: 0.75rem 0.875rem;
    font-size: 12px;
    white-space: nowrap;
  }

  .admin-templates-table th:first-child,
  .admin-templates-table td:first-child,
  .admin-users-table th:first-child,
  .admin-users-table td:first-child {
    min-width: 160px;
  }

  .admin-templates-table th:nth-child(2),
  .admin-templates-table td:nth-child(2),
  .admin-users-table th:nth-child(2),
  .admin-users-table td:nth-child(2) {
    min-width: 120px;
  }

  .admin-template-name,
  .admin-template-description {
    white-space: normal;
    word-break: break-word;
  }

  .admin-template-name-cell {
    min-width: 180px;
  }

  .admin-user-cell {
    min-width: 160px;
  }

  .admin-content-card {
    padding: 0.75rem;
  }

  .admin-category-card {
    padding: 0.75rem;
  }

  .admin-modal-form {
    padding: 0.75rem;
  }

  .admin-icon-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-templates-title {
    font-size: 16px;
  }

  .admin-users-title {
    font-size: 16px;
  }

  .admin-card-title {
    font-size: 14px;
  }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .admin-modal-content {
    max-height: 90vh;
  }

  .admin-sidebar {
    width: 240px;
  }
}

/* Print styles */
@media print {

  .admin-sidebar,
  .admin-page-header,
  .admin-header-right,
  .admin-action-btn,
  .admin-modal,
  .admin-create-template-btn,
  .admin-add-category-btn {
    display: none !important;
  }

  .admin-main {
    margin-left: 0;
    width: 100%;
  }

  .admin-content {
    padding: 0 0 20px 0;
  }
}

/* ============================================
   USER PORTAL STYLES
   ============================================ */

.user-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--gray-50);
}

/* User Sidebar */
.user-sidebar {
  width: 240px;
  background: var(--white);
  border-right: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  height: calc(100vh - 64px);
  padding-left: 2rem;
  padding-right: 2rem;
}

.user-sidebar-add-goal {
  padding: 1.5rem 0;
}

.user-add-goal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem 1rem;
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--gray-100);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.user-add-goal-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.user-sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}

.user-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin: 0;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s;
  font-size: 0.875rem;
  font-weight: 500;
}

.user-sidebar-link:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.user-sidebar-link:hover .user-sidebar-icon {
  color: var(--primary);
}

.user-sidebar-link:hover .user-sidebar-icon svg {
  color: var(--primary);
}

.user-sidebar-link:hover .user-sidebar-icon svg path {
  stroke: var(--primary);
}

.user-sidebar-link.active {
  background: #E6F4FD;
  color: var(--secondary);
}

.user-sidebar-link.active .user-sidebar-icon {
  color: var(--secondary);
}

.user-sidebar-link.active .user-sidebar-icon svg {
  color: var(--secondary);
}

.user-sidebar-link.active .user-sidebar-icon svg path {
  stroke: var(--secondary);
}

.user-sidebar-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
}

.user-sidebar-text {
  flex: 1;
}

.user-sidebar-footer {
  padding: 1rem 0;
}

/* User Navbar */
.user-navbar {
  width: 100%;
  height: 70px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  z-index: 1000;
  position: relative;
}

.user-navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 2rem;
  max-width: 100%;
}

.user-navbar-left {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--gray-700);
}

.user-sidebar-toggle:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.user-navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.user-navbar-logo-icon {
  flex-shrink: 0;
}

.user-navbar-logo-text {
  font-size: 1.125rem;
  color: var(--primary);
}

.user-logo-bold {
  font-weight: 700;
}

.user-logo-regular {
  font-weight: 400;
}

.user-navbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

.user-search-bar {
  position: relative;
  width: 100%;
  max-width: 350px;
}

.user-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.user-search-icon svg {
  width: 20px;
  height: 20px;
}

.user-search-icon svg path {
  stroke: #565F66;
}

.user-search-input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.75rem;
  border: 1px solid var(--gray-100);
  border-radius: 9999px;
  font-size: 0.875rem;
  background: var(--white);
  color: var(--gray-900);
  transition: all 0.2s;
  height: 40px;
}

.user-search-input:focus {
  outline: none;
  border-color: var(--gray-100);
  background: var(--white);
}

.user-search-input::placeholder {
  color: var(--gray-500);
}

.user-navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.user-notification-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--gray-700);
}

.user-notification-btn:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.user-profile-dropdown {
  position: relative;
}

.user-profile-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.user-profile-trigger:hover {
  background: var(--gray-100);
}

.user-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-profile-initial {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
}

.user-profile-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-900);
}

.user-profile-arrow {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  z-index: 1000;
}

.user-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
  border-bottom: 1px solid var(--gray-100);
}

.user-dropdown-item:last-child {
  border-bottom: none;
}

.user-dropdown-item:hover {
  background: var(--gray-50);
  color: var(--primary);
}

.user-dropdown-item-danger {
  color: var(--danger);
}

.user-dropdown-item-danger:hover {
  background: #FEE2E2;
  color: var(--danger);
}

/* User Container: Sidebar + Content */
.user-container {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 64px);
}

/* User Main Content */
.user-main {
  flex: 1;
  min-height: calc(100vh - 64px);
  overflow-y: auto;
  transition: margin-left 0.3s ease;
}

.user-content {
  padding: 2rem;
  width: 100%;
}

.user-alert-container {
  margin-bottom: 1.5rem;
}

/* Sidebar Overlay for Mobile */
.user-sidebar-overlay {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.user-sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* Responsive Styles for User Portal */
@media (max-width: 1024px) {
  .user-sidebar-toggle {
    display: flex;
  }

  .user-container {
    position: relative;
  }

  .user-sidebar {
    position: fixed;
    left: 0;
    top: 64px;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    height: calc(100vh - 64px);
  }

  .user-sidebar.active {
    transform: translateX(0);
  }

  .user-main {
    width: 100%;
  }

  .user-navbar-center {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .user-navbar-content {
    padding: 0 1rem;
  }

  .user-navbar-logo-text {
    display: none;
  }

  .user-navbar-center {
    max-width: 300px;
  }

  .user-profile-name {
    display: none;
  }

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

@media (max-width: 480px) {
  .user-navbar-center {
    max-width: 200px;
  }

  .user-search-input {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  }

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

/* ============================================
   USER DASHBOARD STYLES
   ============================================ */

/* Dashboard Header */
.user-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.user-dashboard-greeting {
  flex: 1;
}

.user-dashboard-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.user-dashboard-date {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0;
}

.user-dashboard-filter {
  flex-shrink: 0;
}

.user-dashboard-select {
  padding: 0.625rem 1rem;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-900);
  font-size: 0.875rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23374151' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.user-dashboard-select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 148, 233, 0.1);
}

/* Top Grid: Due Today and Reflection */
/* Main Dashboard Layout: 2 Columns */
.user-dashboard-main-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.user-dashboard-left-column,
.user-dashboard-right-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.user-dashboard-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Dashboard Card */
.user-dashboard-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.user-dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.user-dashboard-card-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-dashboard-card-icon {
  color: var(--gray-700);
  flex-shrink: 0;
}

.user-dashboard-card-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  margin: 0;
}

.user-dashboard-card-link {
  font-size: 0.875rem;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.user-dashboard-card-link:hover {
  color: #0080c7;
}

.user-dashboard-card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Task Items */
.user-dashboard-task-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
}

.user-dashboard-task-item:last-child {
  margin-bottom: 0;
}

.user-dashboard-task-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: 50%;
  color: var(--gray-700);
  flex-shrink: 0;
}

.user-dashboard-task-icon.task-icon-read {
  background: #FED7AA;
  color: #EA580C;
}

.user-dashboard-task-icon.task-icon-water {
  background: #DBEAFE;
  color: #3B82F6;
}

.user-dashboard-task-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-dashboard-task-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
}

.user-dashboard-task-label {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.user-dashboard-task-checkbox {
  flex-shrink: 0;
}

.user-task-check-form {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.user-task-checkbox-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-task-checked {
  flex-shrink: 0;
}

.user-dashboard-empty {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin: 0;
}

/* Reflection Card */
.user-dashboard-reflection-box {
  background: #E6F4FD;
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.user-dashboard-reflection-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.user-dashboard-reflection-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #003E62;
  font-size: 0.875rem;
  font-weight: 500;
}

.user-dashboard-reflection-date svg {
  color: #447AED;
  flex-shrink: 0;
}

.user-dashboard-reflection-view-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #447AED;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s;
}

.user-dashboard-reflection-view-link:hover {
  color: #0069A5;
}

.user-dashboard-reflection-view-link svg {
  flex-shrink: 0;
}

.user-dashboard-reflection-text {
  font-size: 16px;
  color: var(--primary);
  line-height: 1.6;
  margin: 0;
  font-weight: 600;
}

/* Section Headers */
.user-dashboard-section {
  margin-bottom: 2rem;
}

.user-dashboard-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.user-dashboard-section-icon {
  color: var(--gray-700);
  flex-shrink: 0;
}

.user-dashboard-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

/* Goals Grid */
.user-dashboard-goals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.user-dashboard-goal-card {
  background: #F7FBFD;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  min-height: 180px;
}

.user-dashboard-goal-card.wellness {
  background: #F0F9F4;
}

.user-dashboard-goal-card.productivity {
  background: #F7FBFD;
}

.user-dashboard-goal-progress {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  align-self: flex-start;
}

.user-goal-progress-circle {
  width: 100%;
  height: 100%;
}

.user-goal-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  z-index: 1;
  pointer-events: none;
}

.user-goal-progress-count {
  font-size: 1rem;
  font-weight: 700;
  color: #2E6B2E;
  line-height: 1;
}

.user-dashboard-goal-card.wellness .user-goal-progress-count {
  color: #2E6B2E;
}

.user-dashboard-goal-card.productivity .user-goal-progress-count {
  color: #447AED;
}

.user-dashboard-goal-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  align-self: flex-start;
}

.user-dashboard-goal-name {
  font-size: 1rem;
  font-weight: 700;
  color: #03101A;
  margin: 0;
}

.user-dashboard-goal-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  width: fit-content;
}

.user-dashboard-goal-card.wellness .user-dashboard-goal-category.wellness {
  background: #E7F8F0;
  color: #2E6B2E;
  border: none;
}

.user-dashboard-goal-card.productivity .user-dashboard-goal-category.productivity {
  background: #D6E5FC;
  color: #447AED;
}

/* Default category tag colors for non-wellness/productivity cards */
.user-dashboard-goal-card:not(.wellness):not(.productivity) .user-dashboard-goal-category {
  background: #F3F4F6;
  color: #6B7280;
}

.user-dashboard-goal-category.learning,
.user-dashboard-goal-category.personal-development,
.user-dashboard-goal-category.community-service {
  background: #FEF3C7;
  color: #D97706;
}

.user-dashboard-goal-actions {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  z-index: 10;
}

.user-dashboard-goal-view-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--gray-700);
}

.user-dashboard-goal-view-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  color: var(--primary);
}

.user-dashboard-goal-add-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.user-dashboard-goal-add-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.user-dashboard-goal-add-btn:hover:not(:disabled) {
  background: var(--gray-50);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.user-dashboard-goal-add-btn:disabled,
.user-task-checkbox-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Upcoming Deadlines List Style */
.user-upcoming-deadlines-list {
  background: var(--white);
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-upcoming-deadlines-items-wrapper {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 20px;
  overflow: hidden;
}

.user-upcoming-deadlines-list .user-dashboard-card-header {
  border-bottom: none;
}

.user-upcoming-deadlines-list .user-dashboard-card-title {
  color: var(--primary);
  font-weight: 500;
}

.user-upcoming-deadlines-list .user-dashboard-card-icon {
  color: #6B7280;
}

.user-upcoming-deadline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s;
}

.user-upcoming-deadline-item:hover {
  background-color: transparent;
}

.user-upcoming-deadline-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.user-upcoming-deadline-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.user-upcoming-deadline-date-tag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  background: #FFFBF0;
  color: #EA580C;
  width: fit-content;
  border: 1px solid rgba(255, 152, 0, 0.15);
}

.user-upcoming-deadline-arrow {
  flex-shrink: 0;
  color: #6B7280;
}

.user-upcoming-deadline-divider {
  height: 1px;
  background-color: var(--gray-100);
  margin: 0;
}

/* Deadlines Grid */
.user-dashboard-deadlines-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.user-dashboard-deadline-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.75rem;
  border: 1px solid var(--gray-100);
  position: relative;
}

.user-deadline-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #DBEAFE;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #447AED;
  flex-shrink: 0;
  align-self: flex-start;
}

.user-deadline-card-icon svg {
  width: 24px;
  height: 24px;
}

.user-deadline-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #03101A;
  margin: 0;
  align-self: flex-start;
  line-height: 1.4;
}

.user-deadline-date-tag {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  background: #FFFBF0;

  color: #EA580C;
  width: fit-content;
  line-height: 1.2;
  border: 1px solid rgba(255, 152, 0, 0.15);
}

.user-deadline-date-tag.session-tag {
  background: #E0F2FE;

  color: #447AED;
  border: 1px solid rgba(66, 122, 237, 0.2);
  align-self: flex-start;
}

.user-deadline-date-tag.session-tag.orange-tag {
  background: #FFFBF0;

  color: #EA580C;
  border: 1px solid rgba(255, 152, 0, 0.15);
  align-self: flex-start;
}

.user-deadline-date-tag.session-tag.blue-tag {
  background: #E0F2FE;

  color: #447AED;
  border: 1px solid rgba(66, 122, 237, 0.2);
  align-self: flex-start;
}

.user-dashboard-deadlines-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.user-deadline-icon {
  color: var(--secondary);
  flex-shrink: 0;
}

.user-deadline-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-deadline-date {
  font-size: 0.75rem;
  color: #F59E0B;
  font-weight: 500;
}

.user-deadline-arrow {
  color: var(--gray-400);
  flex-shrink: 0;
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
  .user-dashboard-main-layout {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 768px) {
  .user-dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .user-dashboard-title {
    font-size: 1.5rem;
  }

  .user-dashboard-card {
    padding: 1.25rem;
  }
}

/* Goal Modal Styles */
.goal-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.goal-modal-content {
  background: #FFFFFF;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

.goal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.goal-modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #03101A;
  margin: 0;
}

.goal-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  transition: color 0.2s;
}

.goal-modal-close:hover {
  color: #374151;
}

.goal-modal-body {
  padding: 1.5rem;
}

.goal-modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.goal-modal-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.goal-modal-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.goal-modal-currency-input {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  overflow: hidden;
  background: #FFFFFF;
}

.goal-modal-currency-symbol {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: #6B7280;
  background: #F9FAFB;
  border-right: 1px solid var(--gray-100);
}

.goal-modal-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  outline: none;
  font-size: 1rem;
  font-weight: 500;
  color: #03101A;
  background: #FFFFFF;
}

.goal-modal-arrows {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--gray-100);
}

.goal-modal-arrow-btn {
  background: #F9FAFB;
  border: none;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  color: #6B7280;
  transition: background-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.goal-modal-arrow-btn:hover {
  background: #E5E7EB;
  color: #374151;
}

.goal-modal-arrow-btn:first-child {
  border-bottom: 1px solid #D1D5DB;
}

.goal-modal-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.goal-modal-textarea:focus {
  border-color: #447AED;
}

.goal-modal-buttons {
  display: flex;
  gap: 0.75rem;
}

.goal-modal-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: #FFFFFF;
  color: #374151;
}

.goal-modal-btn-yes {
  border-color: #22C55E;
  color: #22C55E;
}

.goal-modal-btn-yes:hover,
.goal-modal-btn-yes.active {
  background: #22C55E;
  color: #FFFFFF;
}

.goal-modal-btn-no {
  border-color: #EF4444;
  color: #EF4444;
}

.goal-modal-btn-no:hover,
.goal-modal-btn-no.active {
  background: #EF4444;
  color: #FFFFFF;
}

.goal-modal-actions {
  margin-top: 0.5rem;
}

.goal-modal-submit-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: #447AED;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.goal-modal-submit-btn:hover {
  background: #3563D9;
}

.goal-modal-submit-btn:active {
  background: #2E56C7;
}

/* Goals Page Styles */
.goals-page-header {
  margin-bottom: 2rem;
}

.goals-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.goals-page-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-add-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #0094E9;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  transition: background-color 0.2s ease;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
}

.goals-add-button:hover {
  background: #0077C2;
}

.goals-filter-chips {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.goals-filter-chip {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: var(--white);
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
  cursor: pointer;
  font-family: inherit;
}


.goals-filter-chip:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.goals-filter-chip.active {
  background: #C8E5F7;
  color: #003E62;
}

.goals-month-section {
  margin-bottom: 2.5rem;
  background: transparent;
}

.goals-cards-wrapper {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.goals-cards-wrapper .goals-month-header {
  margin-bottom: 1.5rem;
}

.goals-month-section .goals-grid {
  background: transparent;
}

.goals-month-header {
  margin-bottom: 1.5rem;
}

.goals-month-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.goals-month-icon {
  color: var(--gray-700);
  flex-shrink: 0;
}

.goals-month-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--gray-900);
  margin: 0;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.goals-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.goals-card-info {
  cursor: pointer;
}

.goals-card.wellness {
  background: #E7F8F0;
}

.goals-card.productivity {
  background: #ECF2FD;
}

.goals-card-progress {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.goals-progress-circle {
  transform: rotate(-90deg);
}

.goals-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.goals-progress-count {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.goals-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.goals-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
  line-height: 1.4;
}

.goals-card-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  width: fit-content;
}

.goals-card-actions {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  z-index: 10;
}

.goals-card-view-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  text-decoration: none;
  color: var(--gray-700);
}

.goals-card-view-btn:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
  color: var(--primary);
}

.goals-card-add-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.goals-card-add-btn:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.goals-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.goals-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.goals-empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.goals-empty-state p {
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.goals-browse-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  margin-left: 0.75rem;
  transition: all 0.2s;
}

.goals-browse-button:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

/* Responsive adjustments for goals grid */
@media (max-width: 1200px) {
  .goals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .goals-grid {
    grid-template-columns: 1fr;
  }
}

/* Goal Details Sidebar */
.goals-details-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.goals-details-sidebar.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.goals-details-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.goals-details-sidebar.active .goals-details-overlay {
  opacity: 1;
}

.goals-details-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: var(--white);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  z-index: 1001;
}

.goals-details-sidebar.active .goals-details-panel {
  transform: translateX(0);
}

.goals-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: none;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
}

.goals-details-header h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.goals-details-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.goals-details-view-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.goals-details-view-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--primary);
}

.goals-details-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  border-radius: 6px;
  transition: all 0.2s;
}

.goals-details-close:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.goals-details-content {
  padding: 0 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Goal Summary Top Section */
.goals-details-top-section {
  background: linear-gradient(180deg, rgba(99, 206, 22, 0.25) 0%, rgba(255, 255, 255, 1) 60%);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0;
}

.goals-details-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 0.75rem 0;
}

.goals-details-category {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.goals-details-progress {
  position: relative;
  width: 200px;
  height: 120px;
  margin: 1.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.goals-details-progress-circle {
  position: absolute;
  top: 0;
  left: 0;
}

.goals-details-progress-text {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 30px;
}

.goals-details-progress-count {
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: var(--gray-900);
}

.goals-details-frequency {
  font-size: 12px;
  color: var(--gray-600);
  text-align: center;
}

/* Completion and History Card */
.goals-details-completion-history-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.goals-details-completion-section {
  background: #EFF5F9;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.goals-details-question {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  margin: 0 0 1.25rem 0;
  text-align: center;
}

.goals-details-buttons {
  display: flex;
  gap: 0.75rem;
}

.goals-details-buttons form {
  flex: 1;
  display: flex;
}

.goals-details-yes-btn,
.goals-details-no-btn {
  flex: 1;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  transform: scale(1);
}

.goals-details-yes-btn {
  background: #0094E9;
  color: white;
}

.goals-details-yes-btn:hover {
  background: #0077C2;
}

.goals-details-yes-btn.active {
  background: #059669;
  animation: goalMarkSuccess 0.4s ease;
}

.goals-details-yes-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.goals-details-no-btn {
  background: var(--white);
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
}

.goals-details-no-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.goals-details-no-btn.active {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
  animation: goalMarkFailure 0.4s ease;
}

.goals-details-no-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.goals-details-history {
  margin-top: 0;
}

.goals-details-history h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 .7rem 0;
}

.goals-details-history-divider {
  height: 1px;
  background: var(--gray-100);
  margin-bottom: 0;
}

.goals-details-history-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.goals-details-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
  gap: 1rem;
}

.goals-details-history-item:last-child {
  border-bottom: none;
}

.goals-details-history-date {
  font-size: 13px;
  color: #565F66;
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
}

.goals-details-history-date strong {
  font-weight: 500;
  display: block;
  font-size: 13px;
  color: var(--primary);
}

.goals-details-history-status {
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
}

.goals-details-history-status.completed {
  background: #D1FAE5;
  color: #059669;
}

.goals-details-history-status.not-completed {
  background: var(--gray-200);
  color: var(--gray-600);
}

.goals-details-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 0;
  border-top: none;
}

.goals-details-edit-btn,
.goals-details-delete-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.goals-details-edit-btn {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.goals-details-edit-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.goals-details-delete-btn {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}

.goals-details-delete-btn:hover {
  background: var(--danger);
  color: white;
}

.goals-details-delete-btn svg {
  transition: all 0.2s;
}

/* Edit Goal Sidebar */
.goals-edit-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.goals-edit-sidebar.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.goals-edit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.goals-edit-sidebar.active .goals-edit-overlay {
  opacity: 1;
}

.goals-edit-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: var(--white);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  z-index: 1001;
}

.goals-edit-sidebar.active .goals-edit-panel {
  transform: translateX(0);
}

.goals-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: none;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
}

.goals-edit-header h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.goals-edit-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  border-radius: 6px;
  transition: all 0.2s;
}

.goals-edit-close:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.goals-edit-content {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.goals-edit-error {
  background: #FEE2E2;
  color: #DC2626;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.goals-edit-error ul {
  margin: 0;
  padding-left: 1.5rem;
}

.goals-edit-error li {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.goals-edit-error li:last-child {
  margin-bottom: 0;
}

.goals-edit-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.goals-edit-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.goals-edit-checkbox {
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  cursor: pointer;
}

.goals-edit-input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.2s;
}

.goals-edit-input:focus {
  outline: none;
  border-color: #0094E9;
}

.goals-edit-type-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--gray-100);
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.goals-edit-type-field span:first-child {
  color: var(--gray-900);
  font-weight: 500;
}

.goals-edit-type-note {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.goals-edit-recurring-section {
  border: 1px solid var(--gray-100);
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 15px;
}

.goals-edit-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.goals-edit-frequency-buttons {
  display: flex;
  gap: 0.5rem;
}

.goals-edit-frequency-btn {
  flex: 1;
  padding: 0.625rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.goals-edit-frequency-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.goals-edit-frequency-btn.active {
  background: #C8E5F7;
  color: #003E62;
  border-color: #C8E5F7;
}

.goals-edit-time-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: var(--white);
}

.goals-edit-time-input svg {
  color: var(--gray-600);
  flex-shrink: 0;
}

.goals-edit-time-field {
  border: none;
  background: transparent;
  font-size: 0.875rem;
  color: var(--gray-900);
  flex: 1;
  outline: none;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-edit-additional-reminder {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  width: 100%;
}

.goals-edit-additional-reminder .goals-edit-time-input {
  flex: 1;
  min-width: 0;
}

.goals-edit-add-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #0094E9;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}

.goals-edit-add-btn:hover {
  background: #0077C2;
}


.goals-edit-active-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  background: var(--white);
  margin-bottom: 1.5rem;
}

.goals-edit-active-toggle>div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.goals-edit-active-toggle .goals-edit-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary);
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.goals-edit-toggle-desc {
  font-size: 0.8125rem;
  color: var(--gray-600);
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.goals-edit-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.goals-edit-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.goals-edit-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #C8E5F7;
  transition: 0.3s;
  border-radius: 24px;
}

.goals-edit-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #447AED;
  transition: 0.3s;
  border-radius: 50%;
}

.goals-edit-switch input:checked+.goals-edit-slider {
  background-color: #C8E5F7;
}

.goals-edit-switch input:checked+.goals-edit-slider:before {
  transform: translateX(20px);
  background-color: #447AED;
}

.goals-edit-switch input:not(:checked)+.goals-edit-slider {
  background-color: var(--gray-300);
}

.goals-edit-switch input:not(:checked)+.goals-edit-slider:before {
  background-color: white;
}

.goals-edit-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.goals-edit-actions-top {
  display: flex;
  gap: 0.75rem;
}

.goals-edit-cancel-btn,
.goals-edit-save-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.goals-edit-delete-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.goals-edit-cancel-btn {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.goals-edit-cancel-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.goals-edit-save-btn {
  background: var(--gray-200);
  color: var(--gray-600);
  cursor: not-allowed;
}

.goals-edit-save-btn:enabled {
  background: #0094E9;
  color: white;
  cursor: pointer;
}

.goals-edit-save-btn:enabled:hover {
  background: #0077C2;
}

.goals-edit-delete-btn {
  background: var(--white);
  color: #F04438;
  border: 1px solid #F04438;
}

.goals-edit-delete-btn:hover {
  background: rgba(240, 68, 56, 0.1);
}

.goals-edit-delete-btn svg {
  stroke: currentColor;
}

/* Reflection Journal Page */
.reflection-journal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.reflection-journal-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.reflection-journal-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #0094E9;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: background 0.2s;
}

.reflection-journal-add-btn:hover {
  background: #0077C2;
}

.reflection-journal-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1200px) {
  .reflection-journal-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .reflection-journal-cards {
    grid-template-columns: 1fr;
  }
}

.reflection-journal-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  min-height: 200px;
}

.reflection-journal-quote-icon {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.reflection-journal-card-content {
  margin-top: 3.5rem;
}

.reflection-journal-date {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.reflection-journal-text {
  font-size: 0.9375rem;
  color: #667085;
  line-height: 1.6;
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.reflection-journal-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.reflection-journal-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--gray-200);
  border-top-color: #0094E9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.reflection-journal-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.reflection-journal-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.reflection-journal-empty h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.reflection-journal-empty p {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* New Reflection Modal */
.new-reflection-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.new-reflection-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.new-reflection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.new-reflection-modal.active .new-reflection-overlay {
  opacity: 1;
}

.new-reflection-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  max-width: 90vw;
  height: 100%;
  background: var(--white);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  z-index: 1001;
}

.new-reflection-modal.active .new-reflection-panel {
  transform: translateX(0);
}

.new-reflection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: none;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
}

.new-reflection-header>div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.new-reflection-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.new-reflection-date {
  font-size: 0.875rem;
  color: var(--primary);
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.new-reflection-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
}

.new-reflection-close:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.new-reflection-content {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.new-reflection-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.new-reflection-error {
  background: #FEE2E2;
  color: #DC2626;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.new-reflection-error ul {
  margin: 0;
  padding-left: 1.5rem;
}

/* Reflection Prompts Section */
.new-reflection-prompts-section {
  margin-bottom: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 1.5rem;
}

.new-reflection-prompts-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.new-reflection-prompts-header svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.new-reflection-prompts-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.new-reflection-prompts-instruction {
  font-size: 13px;
  color: #667085;
  margin: 0 0 1rem 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.new-reflection-prompts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.new-reflection-prompt-btn {
  padding: 0.875rem 1rem;
  /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#447aed+0,d2ffb1+100&0.2+0,0.07+100 */
  background: linear-gradient(to bottom, rgba(68, 122, 237, 0.2) 0%, rgba(210, 255, 177, 0.07) 100%);
  /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */

  border: 1px dashed #ECF2FD;
  border-radius: 8px;
  font-size: 14px;
  color: var(--primary);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  position: relative;
  overflow: hidden;
  text-align: center;
  font-weight: 400;
}

.new-reflection-prompt-btn:hover {
  opacity: 0.9;
}

/* Text Area Section */
.new-reflection-text-section {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  position: relative;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-100);
  padding: 1.5rem;
  min-height: 150px;
}

.new-reflection-textarea {
  width: 100%;
  min-height: 120px;
  padding: 0;
  padding-bottom: 2.5rem;
  border: none;
  border-radius: 0;
  font-size: 0.9375rem;
  color: var(--gray-900);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  resize: vertical;
  line-height: 1.6;
  background: transparent;
}

.new-reflection-textarea:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.new-reflection-textarea::placeholder {
  color: var(--gray-400);
}

.new-reflection-count {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--gray-900);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  pointer-events: none;
}

/* Actions */
.new-reflection-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
}

.new-reflection-save-btn {
  padding: 0.75rem 2rem;
  background: var(--gray-200);
  color: var(--gray-700);
  border: none;
  border-radius: 30px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.new-reflection-save-btn:hover {
  background: var(--gray-300);
}

.new-reflection-save-btn:enabled {
  background: #B9BDC7;
  color: #ffffff;
}

.new-reflection-save-btn:enabled:hover {
  background: var(--gray-300);
}

/* Reflection Details Modal */
.reflection-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

.reflection-details-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.reflection-details-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.reflection-details-panel {
  position: relative;
  width: 405px;
  max-width: 90vw;
  max-height: 90vh;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 1001;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.reflection-details-modal.active .reflection-details-panel {
  transform: scale(1);
}

.reflection-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
}

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

.reflection-details-quote-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.reflection-details-date {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.reflection-details-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  color: var(--gray-900);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.reflection-details-close:hover {
  background: var(--gray-100);
}

.reflection-details-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 1.5rem;
}

.reflection-details-text {
  font-size: 0.9375rem;
  color: var(--gray-900);
  line-height: 1.8;
  white-space: pre-wrap;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 1.25rem;
  background: var(--white);
}

.reflection-details-actions {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
}

.reflection-details-edit-btn,
.reflection-details-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.reflection-details-edit-btn {
  flex: 1;
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--gray-100);
  justify-content: center;
}

.reflection-details-edit-btn:hover {
  background: var(--gray-50);
}

.reflection-details-delete-btn {
  flex: 1;
  background: var(--white);
  color: #F04438;
  border: 1px solid #FCA5A5;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
}

.reflection-details-delete-btn:hover {
  background: #FEF2F2;
  border-color: #F87171;
}

.reflection-details-edit-btn svg,
.reflection-details-delete-btn svg {
  stroke: currentColor;
}

/* Edit Reflection Modal */
.edit-reflection-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.edit-reflection-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.edit-reflection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.edit-reflection-modal.active .edit-reflection-overlay {
  opacity: 1;
}

.edit-reflection-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: var(--white);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  z-index: 1001;
}

.edit-reflection-modal.active .edit-reflection-panel {
  transform: translateX(0);
}

.edit-reflection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: none;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
}

.edit-reflection-header>div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.edit-reflection-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.edit-reflection-date {
  font-size: 0.875rem;
  color: var(--primary);
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.edit-reflection-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
}

.edit-reflection-close:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.edit-reflection-content {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.edit-reflection-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.edit-reflection-error {
  background: #FEE2E2;
  color: #DC2626;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.edit-reflection-error ul {
  margin: 0;
  padding-left: 1.5rem;
}

/* Text Area Section */
.edit-reflection-text-section {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  position: relative;
  min-height: 200px;
}

.edit-reflection-textarea {
  width: 100%;
  min-height: 150px;
  padding: 1rem;
  padding-bottom: 2.5rem;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  font-size: 13px;
  color: var(--primary);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  resize: vertical;
  line-height: 1.6;
}

.edit-reflection-textarea:focus {
  outline: none;
  border-color: #0094E9;
  box-shadow: 0 0 0 3px rgba(0, 148, 233, 0.1);
}

.edit-reflection-textarea::placeholder {
  color: var(--gray-400);
}

.edit-reflection-count {
  position: absolute;
  bottom: 0.75rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--gray-500);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  pointer-events: none;
}

/* Actions */
.edit-reflection-actions {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
}

.edit-reflection-cancel-btn {
  flex: 1;
  padding: 0.75rem 2rem;
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--gray-100);
  border-radius: 30px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.edit-reflection-cancel-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.edit-reflection-save-btn {
  flex: 1;
  padding: 0.75rem 2rem;
  background: #0094E9;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.edit-reflection-save-btn:hover {
  background: #0077C2;
}

/* New Goal Modal */
.new-goal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.new-goal-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.new-goal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.new-goal-modal.active .new-goal-overlay {
  opacity: 1;
}

.new-goal-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: var(--white);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  z-index: 1001;
}

.new-goal-modal.active .new-goal-panel {
  transform: translateX(0);
}

.new-goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: none;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
}

.new-goal-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.new-goal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
}

.new-goal-close:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.new-goal-content {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.new-goal-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.new-goal-error {
  background: #FEE2E2;
  color: #DC2626;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.new-goal-error ul {
  margin: 0;
  padding-left: 1.5rem;
}

.new-goal-form-group {
  margin-bottom: 1.5rem;
}

.new-goal-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.new-goal-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--gray-900);
  background: var(--white);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: all 0.2s;
}

.new-goal-input:focus {
  outline: none;
  border-color: #0094E9;
  box-shadow: 0 0 0 3px rgba(0, 148, 233, 0.1);
}

.new-goal-input::placeholder {
  color: var(--gray-400);
}

.new-goal-input select,
select.new-goal-input {
  appearance: none;
  background: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23565F66' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.new-goal-actions {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
  margin-top: auto;
}

.new-goal-cancel-btn {
  flex: 1;
  padding: 0.75rem 2rem;
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  border-radius: 30px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.new-goal-cancel-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.new-goal-submit-btn {
  flex: 1;
  padding: 0.75rem 2rem;
  background: #0094E9;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.new-goal-submit-btn:hover {
  background: #0077C2;
}

.new-goal-browse-link {
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.new-goal-template-link {
  color: #0094E9;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.new-goal-template-link:hover {
  text-decoration: underline;
}

/* Settings Page */
.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.settings-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.settings-content {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Profile Card */
.settings-profile-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-100);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.settings-profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(0, 148, 233, 0.1) 0%, rgba(255, 255, 255, 1) 60%);
  z-index: 0;
}

.settings-profile-header {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-bottom: 1.5rem;
}

.settings-profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.settings-profile-initial {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.settings-profile-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin: 0 0 0.2rem 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.settings-profile-email {
  font-size: 13px;
  color: 565F66;
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.settings-profile-actions {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settings-edit-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 30px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  width: auto;
  margin: 0 auto;
}

.settings-edit-profile-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.settings-social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.settings-social-icon {

  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}

.settings-social-icon:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.settings-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--white);
  border: 1px solid #F04438;
  border-radius: 30px;
  color: #F04438;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  width: 100%;
  cursor: pointer;
}

.settings-logout-btn:hover {
  background: #F04438;
  color: var(--white);
}

/* Settings Cards */
.settings-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.settings-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-100);
  padding: 1.5rem;
}

.settings-card-title {
  font-size: 13px;
  font-weight: 500;
  color: #565F66;
  margin: 0 0 1rem 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Toggle Items */
.settings-toggle-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 0.75rem 0;
  margin-bottom: 0.75rem;
}

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

.settings-toggle-label {
  flex: 1;
}

.settings-toggle-text {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.1rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.settings-toggle-desc {
  font-size: 13px;
  color: #565F66;
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.settings-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.settings-switch input {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  pointer-events: auto;
}

.settings-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #C8E5F7;
  transition: 0.3s;
  border-radius: 24px;
}

.settings-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #447AED;
  transition: 0.3s;
  border-radius: 50%;
}

.settings-switch input:checked+.settings-slider {
  background-color: #C8E5F7;
}

.settings-switch input:checked+.settings-slider:before {
  transform: translateX(20px);
}

.settings-switch input:not(:checked)+.settings-slider {
  background-color: var(--gray-300);
}

.settings-switch input:not(:checked)+.settings-slider:before {
  background-color: var(--white);
  transform: translateX(0);
}

/* Option Items */
.settings-option-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  margin-bottom: 0.4rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

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

.settings-option-item:hover {
  background-color: var(--gray-50);
}

.settings-option-label {
  flex: 1;
  min-width: 0;
}

.settings-option-text {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.1rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.settings-option-value-text {
  font-size: 13px;
  color: #565F66;
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.settings-option-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
  font-size: 0.9375rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  flex-shrink: 0;
}

/* About Items */
.settings-about-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 0.75rem 0;
  margin-bottom: 0.4rem;
}

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

/* Settings Modals */
.settings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.settings-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.settings-modal-content {
  position: relative;
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 2;
  box-shadow: var(--shadow-lg);
}

.settings-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.settings-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.settings-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-500);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.settings-modal-close:hover {
  color: var(--gray-900);
}

.settings-modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.settings-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.settings-form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.settings-form-input {
  padding: 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: border-color 0.2s;
}

.settings-form-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 148, 233, 0.1);
}

.settings-form-help {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.settings-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.settings-modal-cancel {
  padding: 0.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  color: var(--gray-700);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.settings-modal-cancel:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.settings-modal-submit {
  padding: 0.75rem 1.5rem;
  background: var(--secondary);
  border: none;
  border-radius: 8px;
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.settings-modal-submit:hover {
  background: #0077C2;
}

/* Responsive */
@media (max-width: 1024px) {
  .settings-content {
    grid-template-columns: 1fr;
  }

  .settings-profile-card {
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Scheduled Sessions Page */


.sessions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.sessions-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.sessions-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #0094E9;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
}

.sessions-add-btn:hover {
  background: #0077C2;
}

.sessions-cards {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: start;
}

.session-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 1.5rem;
  min-width: 280px;
  flex: 0 0 auto;
  position: relative;
  transition: all 0.2s;
}

.session-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.session-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.session-card-icon svg {
  width: 44px;
  height: 44px;
}

.session-card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin: 0 0 1rem 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.session-card-info {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: wrap;
}

.session-card-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  color: #565F66;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.session-card-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border: 2px dashed var(--gray-300);
  background: var(--gray-50);
  text-decoration: none;
  color: var(--gray-500);
  font-size: 0.9375rem;
  font-weight: 500;
  gap: 0.75rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.session-card-add:hover {
  border-color: #0094E9;
  background: #E6F4FD;
  color: #0094E9;
}

.sessions-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

/* Responsive */
@media (max-width: 768px) {
  .sessions-cards {
    flex-direction: column;
  }

  .session-card {
    width: 100%;
  }
}

/* Session Edit Slide-in Panel */
.session-edit-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.session-edit-sidebar.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.session-edit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.session-edit-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  max-width: 90vw;
  height: 100%;
  background: var(--white);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.session-edit-sidebar.active .session-edit-panel {
  transform: translateX(0);
}

.session-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem;
  border-bottom: 0;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
}

.session-edit-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 0.25rem 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.session-edit-subtitle {
  font-size: 0.8125rem;
  color: var(--primary);
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.session-edit-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  color: var(--gray-900);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.session-edit-close:hover {
  background: var(--gray-100);
}

.session-edit-content {
  flex: 1;
  padding: 0 1.5rem 1.5rem;
}

.session-edit-form-group {
  margin-bottom: 1.5rem;
}

.session-edit-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.session-edit-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--gray-900);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--white);
  transition: border-color 0.2s;
}

.session-edit-input:focus {
  outline: none;
  border-color: #0094E9;
}

/* Days of Week Buttons */
.session-edit-days {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.session-edit-day-btn {
  padding: 0.625rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.session-edit-day-btn:hover {
  border-color: #0094E9;
  color: #0094E9;
}

.session-edit-day-btn.active {
  background: #E6F4FD;
  border-color: #E6F4FD;
  color: #0069A5;
  font-weight: 600;
}

/* Quick Select Buttons */
.session-edit-quick-select {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.session-edit-quick-btn {
  padding: 0.625rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.session-edit-quick-btn:hover {
  border-color: #0094E9;
  color: #0094E9;
}

.session-edit-quick-btn.active {
  background: #E6F4FD;
  border-color: #E6F4FD;
  color: #0069A5;
  font-weight: 600;
}

/* Select Dropdown */
.session-edit-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.session-edit-select-bell {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--gray-600);
  z-index: 1;
}

.session-edit-select {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 2.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--gray-900);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--white);
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.session-edit-select:focus {
  outline: none;
  border-color: #0094E9;
}

.session-edit-select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--gray-600);
}

/* Action Buttons */
.session-edit-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-100);
}

.session-edit-actions-top {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.session-edit-cancel-btn,
.session-edit-save-btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  border: none;
}

.session-edit-cancel-btn {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--gray-300);
}

.session-edit-cancel-btn:hover {
  background: var(--gray-50);
}

.session-edit-save-btn {
  background: #B9BDC7;
  color: var(--white);
}

.session-edit-save-btn:not(:disabled) {
  background: #0094E9;
  cursor: pointer;
}

.session-edit-save-btn:not(:disabled):hover {
  background: #0077C2;
}

.session-edit-save-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.session-edit-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #F04438;
  text-decoration: none;
  border: 1px solid #F04438;
  background: var(--white);
  transition: all 0.2s;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  cursor: pointer;
}

.session-edit-delete-btn svg {
  stroke: currentColor;
}

.session-edit-delete-btn:hover {
  background: #F04438;
  color: var(--white);
}

.session-edit-error {
  background: #FEE2E2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.session-edit-error ul {
  margin: 0;
  padding-left: 1.5rem;
  list-style: disc;
}

.session-edit-error li {
  color: #DC2626;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.session-edit-error li:last-child {
  margin-bottom: 0;
}

/* Goals Show Page */
.goals-show-page {
  padding-bottom: 2rem;
}

.goals-show-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.goals-show-header-content {
  flex: 1;
}

.goals-show-subtitle {
  font-size: 0.875rem;
  color: #565F66;
  margin: 0.5rem 0 0 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-show-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.goals-show-edit-btn,
.goals-show-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  transition: all 0.2s ease;
  border: 1px solid var(--gray-100);
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
}

.goals-show-edit-btn:hover {
  background: var(--gray-50);
}

.goals-show-delete-btn {
  color: #F04438;
  border-color: #FCA5A5;
}

.goals-show-delete-btn:hover {
  background: #F04438;
  color: var(--white);
}

.goals-show-delete-btn:hover svg {
  stroke: var(--white);
}

.goals-show-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .goals-show-grid {
    grid-template-columns: 1fr;
  }
}

.goals-show-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 1.5rem;
}

.goals-show-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 1.25rem 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-show-card-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.goals-show-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-100);
}

.goals-show-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.goals-show-info-label {
  font-size: 0.875rem;
  color: #565F66;
  font-weight: 500;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-show-info-value {
  font-size: 0.875rem;
  color: var(--gray-900);
  font-weight: 500;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-show-status-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-show-status-completed {
  background: #D1FAE5;
  color: #059669;
}

.goals-show-status-in-progress {
  background: #FED7AA;
  color: #F97316;
}

.goals-show-progress-section {
  margin-top: 0.5rem;
}

.goals-show-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-show-progress-percentage {
  font-weight: 600;
  color: var(--primary);
}

.goals-show-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 9999px;
  overflow: hidden;
}

.goals-show-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.goals-show-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.goals-show-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.goals-show-form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-900);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-show-form-input,
.goals-show-form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.2s ease;
}

.goals-show-form-input:focus,
.goals-show-form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.goals-show-form-textarea {
  resize: vertical;
  min-height: 80px;
}

.goals-show-buttons-group {
  display: flex;
  gap: 0.75rem;
}

.goals-show-yes-btn,
.goals-show-no-btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: none;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  transform: scale(1);
}

.goals-show-yes-btn {
  background: #0094E9;
  color: var(--white);
}

.goals-show-yes-btn:hover {
  background: #0077C2;
}

.goals-show-yes-btn.active {
  background: #059669;
  animation: goalMarkSuccess 0.4s ease;
}

.goals-show-yes-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.goals-show-no-btn {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-100);
}

.goals-show-no-btn:hover {
  background: var(--gray-50);
}

.goals-show-no-btn.active {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
  animation: goalMarkFailure 0.4s ease;
}

.goals-show-no-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.goals-show-form-hint {
  font-size: 0.75rem;
  color: #565F66;
  text-align: center;
  margin-top: 0.25rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-show-submit-btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  border: none;
  background: #0094E9;
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.goals-show-submit-btn:hover {
  background: #0077C2;
}

.goals-show-submit-btn-success {
  background: #10B981;
}

.goals-show-submit-btn-success:hover {
  background: #059669;
}

.goals-show-completed-message {
  text-align: center;
  padding: 1.5rem;
  color: #059669;
  font-weight: 500;
  font-size: 0.875rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-show-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.goals-show-history-count {
  font-size: 0.875rem;
  color: #565F66;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-show-history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.goals-show-history-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 4px;
  gap: 1rem;
}

.goals-show-history-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.goals-show-history-date-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.goals-show-history-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-show-history-time {
  font-size: 0.75rem;
  color: #565F66;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-show-history-today-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-show-history-value {
  font-size: 0.875rem;
  color: var(--gray-700);
  font-weight: 500;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-show-history-unit {
  color: #565F66;
  margin-left: 0.25rem;
}

.goals-show-history-status {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-show-history-status-completed {
  background: #D1FAE5;
  color: #059669;
}

.goals-show-history-status-not-completed {
  background: var(--gray-200);
  color: var(--gray-600);
}

.goals-show-history-notes {
  font-size: 0.875rem;
  color: #565F66;
  font-style: italic;
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-show-history-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #F04438;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.goals-show-history-delete:hover {
  background: #FEE2E2;
}

.goals-show-empty-state {
  text-align: center;
  padding: 2rem;
}

.goals-show-empty-text {
  color: #565F66;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-show-empty-hint {
  color: var(--gray-400);
  font-size: 0.75rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================
   COMPREHENSIVE RESPONSIVE STYLES
   ============================================ */

/* Tablet and below (1024px) */
@media (max-width: 1024px) {

  /* Slide Panels - Full width on tablet */
  .goals-edit-panel,
  .new-goal-panel,
  .new-reflection-panel,
  .edit-reflection-panel,
  .session-edit-panel,
  .new-session-panel,
  .template-details-panel {
    width: 100%;
    max-width: 100vw;
  }

  /* Dashboard Grid */
  .user-dashboard-main-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Goals Page */
  .goals-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .goals-filter-chips {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Settings Page */
  .settings-page-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .settings-profile-card {
    margin-bottom: 1.5rem;
  }

  /* Goals Show Page */
  .goals-show-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .goals-show-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {

  /* Container padding */
  .container {
    padding: 0 0.75rem;
  }

  /* User Navbar */
  .user-navbar-content {
    padding: 0.75rem 1rem;
  }

  .user-navbar-center {
    max-width: 150px;
  }

  .user-navbar-search {
    display: none;
  }

  /* Sidebar */
  .user-sidebar {
    transform: translateX(-100%);
  }

  .user-sidebar.active {
    transform: translateX(0);
  }

  .user-sidebar-toggle {
    display: flex;
  }

  /* Dashboard */
  .user-dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .user-dashboard-greeting {
    font-size: 1.25rem;
  }

  .user-dashboard-date {
    font-size: 0.875rem;
  }

  .user-dashboard-main-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .user-weekly-goals-grid {
    grid-template-columns: 1fr;
  }

  .user-upcoming-deadlines-cards {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Goals Page */
  .goals-page-header {
    padding: 1rem 0.75rem;
  }

  .goals-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }

  .goals-add-button {
    width: 100%;
    justify-content: center;
  }

  .goals-filter-chips {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .goals-filter-chip {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .goals-cards-wrapper {
    padding: 1rem;
  }

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

  /* Goals Show Page */
  .goals-show-page {
    padding: 0 0.75rem 2rem;
  }

  .goals-show-header {
    padding: 1rem 0;
  }

  .goals-show-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .goals-show-edit-btn,
  .goals-show-delete-btn {
    width: 100%;
    justify-content: center;
  }

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

  .goals-show-card {
    padding: 1rem;
  }

  .goals-show-buttons-group {
    flex-direction: column;
  }

  /* Slide Panels - Full width on mobile */
  .goals-edit-panel,
  .new-goal-panel,
  .new-reflection-panel,
  .edit-reflection-panel,
  .session-edit-panel,
  .new-session-panel,
  .template-details-panel,
  .goals-details-panel {
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .goals-edit-header,
  .new-goal-header,
  .new-reflection-header,
  .edit-reflection-header,
  .session-edit-header,
  .new-session-header,
  .template-details-header,
  .goals-details-header {
    padding: 1rem;
  }

  .goals-edit-content,
  .new-goal-content,
  .new-reflection-content,
  .edit-reflection-content,
  .session-edit-content,
  .new-session-content,
  .template-details-content,
  .goals-details-content {
    padding: 0 1rem 1rem;
  }

  /* Goal Templates */
  .goal-template-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .goal-template-filters {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  /* Reflections */
  .reflection-journal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .reflection-journal-add-btn {
    width: 100%;
    justify-content: center;
  }

  .reflection-journal-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Reflection Modal */
  .reflection-details-panel {
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    border-radius: 0;
    max-height: 100vh;
  }

  .reflection-details-header {
    padding: 1rem;
  }

  .reflection-details-content-wrapper {
    padding: 1rem;
  }

  .reflection-details-actions {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .reflection-details-edit-btn,
  .reflection-details-delete-btn {
    width: 100%;
    justify-content: center;
  }

  /* Scheduled Sessions */
  .sessions-page {
    padding: 1rem 0.75rem;
  }

  .sessions-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

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

  .sessions-cards {
    flex-direction: column;
    gap: 1rem;
  }

  .session-card {
    width: 100%;
  }

  /* Settings */
  .settings-page {
    padding: 1rem 0.75rem;
  }

  .settings-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .settings-page-container {
    grid-template-columns: 1fr;
  }

  .settings-profile-card {
    margin-bottom: 1.5rem;
  }

  .settings-social-icons {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Forms */
  .goals-edit-form-group,
  .new-goal-form-group,
  .session-edit-form-group {
    margin-bottom: 1rem;
  }

  .goals-edit-frequency-buttons {
    flex-direction: column;
  }

  .goals-edit-frequency-btn {
    width: 100%;
  }

  .goals-edit-actions-top {
    flex-direction: column;
  }

  .goals-edit-cancel-btn,
  .goals-edit-save-btn {
    width: 100%;
  }

  .goals-edit-delete-btn {
    width: 100%;
  }

  /* Login/Signup Pages */
  .login-page-container {
    flex-direction: column;
    min-height: 100vh;
    overflow-y: auto;
    position: relative;
    /* Allow scrolling on mobile */
  }

  .login-form-section {
    padding: 2rem 1.5rem;
    width: 100%;
    overflow-y: auto;
    height: auto;
    /* Allow natural height on mobile stack */
    flex: none;
    /* Don't force height if it should stack */
    display: flex;
    flex-direction: column;
  }

  .login-phone-section {
    display: none;
  }

  .login-logo {
    margin-bottom: 1.5rem;
  }

  .login-logo img {
    max-width: 120px;
    height: auto;
  }

  .login-form-group {
    margin-bottom: 1rem;
  }

  .login-input {
    font-size: 16px;
    /* Prevents zoom on iOS */
    padding: 0.75rem 0.875rem;
  }

  .login-submit-btn {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
  }

  .login-social-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
  }

  .login-divider {
    margin: 1.5rem 0;
  }

  .login-signup-link {
    font-size: 0.8125rem;
  }

  /* Dashboard Sections */
  .user-due-today-items {
    gap: 0.75rem;
  }

  .user-weekly-goal-card {
    padding: 1rem;
  }

  .user-upcoming-deadlines-list {
    gap: 0.5rem;
  }

  .user-upcoming-deadlines-item {
    padding: 0.75rem;
  }

  /* History Items */
  .goals-show-history-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .goals-show-history-delete {
    align-self: flex-end;
  }

  .goals-details-history-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {

  /* Typography */
  .goals-page-title,
  .goal-template-title,
  .reflection-journal-title,
  .sessions-title,
  .settings-title {
    font-size: 18px;
  }

  .user-dashboard-greeting {
    font-size: 1.125rem;
  }

  /* Cards */
  .goals-card,
  .goal-template-card,
  .reflection-journal-card,
  .session-card {
    padding: 1rem;
  }

  /* Buttons */
  .goals-add-button,
  .goals-show-edit-btn,
  .goals-show-delete-btn,
  .goals-edit-save-btn,
  .goals-edit-cancel-btn {
    font-size: 0.8125rem;
    padding: 0.625rem 1rem;
  }

  /* Forms */
  .goals-edit-input,
  .new-goal-input,
  .session-edit-input {
    font-size: 16px;
    /* Prevents zoom on iOS */
  }

  /* Progress Bars */
  .goals-show-progress-bar {
    height: 6px;
  }

  /* Spacing */
  .goals-show-card,
  .goals-card {
    padding: 0.875rem;
  }

  .goals-edit-content,
  .new-goal-content {
    padding: 0 0.875rem 0.875rem;
  }

  /* Login/Signup Mobile Optimizations */
  .login-page-container {
    padding: 12px;
  }

  .login-form-section {
    padding: 1rem 0.75rem;
  }

  .login-logo {
    margin-bottom: 1.25rem;
  }

  .login-logo img {
    max-width: 100px;
  }

  .login-form-group {
    margin-bottom: 0.875rem;
  }

  .login-label {
    font-size: 0.8125rem;
    margin-bottom: 0.375rem;
  }

  .login-input {
    font-size: 16px;
    /* Prevents zoom on iOS */
    padding: 0.6875rem 0.75rem;
  }

  .login-password-wrapper .login-input {
    padding-right: 2.5rem;
  }

  .login-password-toggle {
    right: 0.75rem;
    padding: 0.125rem;
  }

  .login-password-toggle svg {
    width: 18px;
    height: 18px;
  }

  .login-forgot-password {
    margin-bottom: 1.25rem;
  }

  .login-forgot-link {
    font-size: 0.8125rem;
  }

  .login-submit-btn {
    padding: 0.8125rem 1rem;
    font-size: 0.9375rem;
  }

  .login-divider {
    margin: 1.25rem 0;
    font-size: 0.8125rem;
  }

  .login-divider span {
    padding: 0 0.75rem;
  }

  .login-social-buttons {
    gap: 0.625rem;
    margin-bottom: 1.5rem;
  }

  .login-social-btn {
    padding: 0.6875rem 1rem;
    font-size: 0.875rem;
    gap: 0.625rem;
  }

  .login-social-btn img {
    width: 18px;
    height: 18px;
  }

  .login-signup-link {
    font-size: 0.75rem;
    margin-top: 0.75rem;
  }

  .login-signup-btn {
    font-size: 0.75rem;
  }

  .login-error-alert {
    padding: 0.75rem;
    font-size: 0.8125rem;
    margin-bottom: 1.25rem;
  }

  .login-error-alert ul {
    margin: 0.5rem 0 0 1.25rem;
    padding: 0;
  }

  .login-error-alert li {
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
  }
}

/* Very small mobile (360px and below) */
@media (max-width: 360px) {
  .login-page-container {
    padding: 8px;
  }

  .login-form-section {
    padding: 0.875rem 0.5rem;
  }

  .login-logo {
    margin-bottom: 1rem;
  }

  .login-logo img {
    max-width: 90px;
  }

  .login-form-group {
    margin-bottom: 0.75rem;
  }

  .login-input {
    padding: 0.625rem 0.6875rem;
  }

  .login-submit-btn {
    padding: 0.75rem 0.875rem;
  }

  .login-social-btn {
    padding: 0.625rem 0.875rem;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {

  .goals-edit-panel,
  .new-goal-panel,
  .new-reflection-panel,
  .edit-reflection-panel,
  .session-edit-panel,
  .new-session-panel {
    max-height: 100vh;
    overflow-y: auto;
  }

  .goals-edit-content,
  .new-goal-content {
    padding-bottom: 2rem;
  }
}

/* Check-in Progress Visualization */
.goals-show-checkin-graph {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.goals-show-checkin-graph-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-show-checkin-graph-container {
  margin-bottom: 1rem;
}

.goals-show-checkin-graph-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 150px;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.goals-show-checkin-graph-bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.goals-show-checkin-graph-bar-wrapper:hover {
  opacity: 0.8;
}

.goals-show-checkin-graph-bar {
  width: 100%;
  background: linear-gradient(to top, #10b981, #34d399);
  border-radius: 2px 2px 0 0;
  min-height: 2px;
  transition: opacity 0.2s;
}

.goals-show-checkin-graph-bar-wrapper:hover .goals-show-checkin-graph-bar {
  opacity: 0.9;
}

.goals-show-checkin-graph-bar-label {
  font-size: 0.625rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
  text-align: center;
}

.goals-show-checkin-graph-legend {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.goals-show-checkin-graph-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-show-checkin-graph-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

/* ============================================
   Goals Show - Enhanced Visualizations
   ============================================ */

/* Circular Progress for Number + Session Goals */
.goals-show-circular-progress-section {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}

.goals-show-circular-progress {
  position: relative;
  width: 140px;
  height: 140px;
}

.goals-show-circular-progress .circular-progress-svg {
  width: 100%;
  height: 100%;
}

.goals-show-circular-progress .circular-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.goals-show-circular-progress .circular-progress-percentage {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1;
}

.goals-show-circular-progress .circular-progress-label {
  font-size: 0.75rem;
  color: #6a7282;
  font-weight: 500;
}

/* Stats Grid for Number + Session Goals */
.goals-show-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.goals-show-stat-card {
  background: #f3f4f6;
  border-radius: 0.5rem;
  padding: 0.75rem;
  text-align: center;
}

.goals-show-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0;
  line-height: 1.2;
}

.goals-show-stat-value.highlight-blue {
  color: #0095ff;
}

.goals-show-stat-value.highlight-green {
  color: #059669;
}

.goals-show-stat-label {
  font-size: 0.75rem;
  color: #6a7282;
  margin-top: 0.25rem;
  margin: 0;
}

/* Progress Charts */
.goals-show-progress-chart {
  margin-top: 1rem;
}

.goals-show-chart-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6a7282;
  margin-bottom: 1rem;
}

.goals-show-chart-container {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.75rem;
  position: relative;
}

.goals-show-chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.5rem 0;
  min-width: 30px;
  height: 200px;
  border-right: 1px solid #e5e7eb;
  padding-right: 0.5rem;
}

.goals-show-chart-y-label {
  font-size: 0.625rem;
  color: #6b7280;
  text-align: right;
  line-height: 1;
}

.goals-show-chart-bars-container {
  flex: 1;
  position: relative;
  height: 200px;
}

.goals-show-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100%;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}

.goals-show-chart-bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  cursor: pointer;
  transition: opacity 0.2s;
  position: relative;
}

.goals-show-chart-bar-wrapper:hover {
  opacity: 0.8;
}

.goals-show-chart-bar-wrapper:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  white-space: nowrap;
  margin-bottom: 0.5rem;
  z-index: 10;
}

.goals-show-chart-bar {
  width: 100%;
  background: linear-gradient(to top, #0095ff, #3b82f6);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: all 0.2s;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.25rem;
}

.goals-show-chart-bar.target-reached {
  background: linear-gradient(to top, #10b981, #059669);
}

.goals-show-chart-bar-value {
  font-size: 0.625rem;
  font-weight: 600;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.125rem 0.25rem;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  position: absolute;
  top: -1.5rem;
  z-index: 5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.goals-show-chart-bar-wrapper:hover .goals-show-chart-bar-value {
  opacity: 1;
}

.goals-show-chart-bar-wrapper:hover .goals-show-chart-bar {
  opacity: 0.9;
  transform: scaleY(1.02);
}

.goals-show-chart-bar-label {
  font-size: 0.625rem;
  color: #6b7280;
  margin-top: 0.5rem;
  text-align: center;
  font-weight: 500;
}

.goals-show-chart-target-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #10b981;
  border-top: 1px dashed #059669;
  z-index: 2;
  pointer-events: none;
}

.goals-show-chart-target-label {
  position: absolute;
  right: 0;
  top: -1.25rem;
  font-size: 0.625rem;
  color: #059669;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.goals-show-chart-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  justify-content: center;
}

.goals-show-chart-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.goals-show-chart-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
}

/* Session Schedule Info */
.goals-show-session-schedule-info {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f3f4f6;
  border-radius: 0.5rem;
}

.goals-show-session-schedule-label {
  font-size: 0.875rem;
  color: #6a7282;
  margin-bottom: 0.5rem;
  display: block;
}

.goals-show-session-schedule-value {
  font-weight: 600;
  color: #0a0a0a;
  font-size: 0.875rem;
}

/* History Enhancements for Session Goals */
.goals-show-history-duration-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #e0f2ff;
  color: #0095ff;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

.goals-show-history-session-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.goals-show-history-status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.goals-show-history-status-badge.attended {
  background: #d1fae5;
  color: #047857;
}

.goals-show-history-status-badge.missed {
  background: #fee2e2;
  color: #b91c1c;
}

.goals-show-history-goal-status {
  font-size: 1rem;
  font-weight: 600;
}

.goals-show-history-goal-status.goal-met {
  color: #059669;
}

.goals-show-history-goal-status.goal-not-met {
  color: #dc2626;
}

/* Highlight Colors */
.highlight-blue {
  color: #0095ff !important;
  font-weight: 700;
}

.highlight-green {
  color: #059669 !important;
  font-weight: 700;
}

/* Responsive Charts */
@media (max-width: 768px) {
  .goals-show-chart-bars {
    height: 120px;
    gap: 2px;
  }

  .goals-show-chart-bar-label {
    font-size: 0.5rem;
  }

  .goals-show-stats-grid {
    gap: 0.5rem;
  }

  .goals-show-stat-card {
    padding: 0.5rem;
  }

  .goals-show-stat-value {
    font-size: 1.25rem;
  }
}

/* Print Styles */
@media print {

  .user-sidebar,
  .user-navbar,
  .goals-edit-sidebar,
  .new-goal-modal,
  .new-reflection-modal,
  .edit-reflection-modal,
  .session-edit-sidebar,
  .new-session-modal,
  .template-details-sidebar,
  .goals-details-sidebar {
    display: none;
  }

  .goals-show-page,
  .goals-page {
    padding: 0;
  }
}

/* ============================================
   Goal Page Layout (React Prototype Style)
   ============================================ */

.goal-page-layout {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.goal-page-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.goal-page-header-content {
  flex: 1;
}

.goal-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 0.25rem;
}

.goal-page-subtitle {
  font-size: 0.875rem;
  color: #6a7282;
}

.goal-page-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.goal-page-edit-btn,
.goal-page-delete-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: transparent;
}

.goal-page-edit-btn {
  color: #0a0a0a;
}

.goal-page-edit-btn:hover {
  background: #f3f3f5;
}

.goal-page-delete-btn {
  color: #dc2626;
}

.goal-page-delete-btn:hover {
  background: #fee2e2;
}

/* Main Grid - Two Columns */
.goal-page-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 1024px) {
  .goal-page-main-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Progress Summary (Left Column) */
.goal-page-progress-summary {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
  .goal-page-progress-summary {
    border-bottom: none;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
  }
}

.goal-page-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 1.25rem;
}

.goal-page-progress-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.goal-page-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.goal-page-info-label {
  font-size: 0.875rem;
  color: #6a7282;
}

.goal-page-info-value {
  font-size: 0.875rem;
  color: #0a0a0a;
  font-weight: 700;
}

.goal-page-info-value.highlight-blue {
  color: #0095ff;
}

.goal-page-info-value.highlight-green {
  color: #059669;
}

.goal-page-info-value.highlight-orange {
  color: #d97706;
}

/* Circular Progress */
.goal-page-circular-progress {
  display: flex;
  justify-content: center;
  position: relative;
}

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

.circular-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.circular-progress-percentage {
  font-size: 1.875rem;
  font-weight: 700;
  color: #0a0a0a;
}

.circular-progress-label {
  font-size: 0.75rem;
  color: #6a7282;
  margin-top: 0.25rem;
}

.goal-complete-emoji {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  margin-top: 2rem;
}

/* Progress Bar */
.goal-page-progress-bar-section {
  width: 100%;
}

.goal-page-progress-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.goal-page-progress-label {
  font-size: 0.875rem;
  color: #6a7282;
}

.goal-page-progress-percentage {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0a0a0a;
}

.goal-page-progress-bar {
  width: 100%;
  background: #e5e7eb;
  border-radius: 9999px;
  height: 0.5rem;
  overflow: hidden;
}

.goal-page-progress-fill {
  height: 100%;
  background: #0a0a0a;
  border-radius: 9999px;
  transition: width 0.5s ease-out;
}

/* Stats Grid */
.goal-page-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.goal-page-stat-card {
  background: #f3f4f6;
  border-radius: 0.5rem;
  padding: 0.75rem;
  text-align: center;
}

.goal-page-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a0a0a;
}

.goal-page-stat-value.highlight-green {
  color: #059669;
}

.goal-page-stat-label {
  font-size: 0.75rem;
  color: #6a7282;
  margin-top: 0.25rem;
}

/* Session Stat Card */
.goal-page-session-stat-card {
  background: #e0f2ff;
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.goal-page-session-stat-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0a0a0a;
}

.goal-page-session-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0095ff;
}

/* Completion Status */
.goal-page-completion-status {
  text-align: center;
  padding: 2rem 0;
}

.goal-completion-icon {
  width: 8rem;
  height: 8rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.goal-completion-icon.completed {
  font-size: 4rem;
}

.goal-completion-icon.pending {
  background: #f3f4f6;
  border-radius: 50%;
}

.goal-completion-text {
  font-size: 1.125rem;
  font-weight: 700;
}

.goal-completion-text.completed {
  color: #059669;
}

.goal-completion-text.pending {
  color: #6a7282;
}

/* Log Progress (Right Column) */
.goal-page-log-progress {
  padding: 1.5rem;
}

.goal-log-progress-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Session Timer Card */
.goal-session-timer-card {
  background: #f3f4f6;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.goal-session-timer-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.goal-timer-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #6a7282;
}

.goal-session-timer-label {
  font-size: 0.875rem;
  color: #6a7282;
}

.goal-session-timer-display {
  text-align: center;
  margin-bottom: 1rem;
}

.goal-session-timer-time {
  font-size: 3rem;
  font-weight: 700;
  color: #0a0a0a;
}

.goal-session-timer-time-large {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0a0a0a;
}

.goal-session-start-btn,
.goal-session-end-btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: #0095ff;
  color: white;
  font-weight: 700;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.goal-session-start-btn:hover {
  background: #0077cc;
}

.goal-session-end-btn {
  background: #dc2626;
}

.goal-session-end-btn:hover {
  background: #b91c1c;
}

.goal-session-completed-message {
  padding: 0.75rem;
  background: #d1fae5;
  border-radius: 0.75rem;
  text-align: center;
}

.goal-session-completed-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: #047857;
}

/* Progress Entry */
.goal-progress-entry {
  width: 100%;
}

.goal-progress-entry-label {
  display: block;
  font-size: 0.875rem;
  color: #6a7282;
  margin-bottom: 0.5rem;
}

.goal-progress-entry-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.goal-progress-decrement-btn,
.goal-progress-increment-btn {
  width: 3rem;
  height: 3rem;
  background: #f3f4f6;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.goal-progress-decrement-btn:hover,
.goal-progress-increment-btn:hover {
  background: #e5e7eb;
}

.goal-progress-decrement-btn:disabled,
.goal-progress-increment-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.goal-progress-input-wrapper {
  flex: 1;
  position: relative;
}

.goal-progress-input-prefix {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6a7282;
  font-size: 1.25rem;
  font-weight: 700;
}

.goal-progress-value-input {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-left: 2.75rem;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0a0a0a;
  outline: none;
}

.goal-progress-value-input:focus {
  ring: 2px;
  ring-color: #0095ff;
}

.goal-progress-value-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Quick Add Buttons */
.goal-quick-add-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.goal-quick-add-btn {
  padding: 0.5rem 0.75rem;
  background: #f3f4f6;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0a0a0a;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.goal-quick-add-btn:hover {
  background: #e5e7eb;
}

.goal-quick-add-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Completion Card */
.goal-completion-card {
  background: #f3f4f6;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.goal-completion-question {
  font-size: 1rem;
  font-weight: 700;
  color: #0a0a0a;
  text-align: center;
  margin-bottom: 1rem;
}

.goal-completion-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.goal-completion-yes-btn,
.goal-completion-no-btn {
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  transform: scale(1);
}

.goal-completion-yes-btn {
  background: #0095ff;
  color: white;
}

.goal-completion-yes-btn:hover {
  background: #0077cc;
}

.goal-completion-yes-btn.active {
  background: #059669;
  animation: goalMarkSuccess 0.4s ease;
}

.goal-completion-yes-btn.disabled {
  background: #e5e7eb;
  color: #6a7282;
  cursor: not-allowed;
  opacity: 0.6;
}

.goal-completion-no-btn {
  background: white;
  color: #0a0a0a;
  border: 2px solid #d1d5dc;
}

.goal-completion-no-btn:hover {
  background: #f9fafb;
}

.goal-completion-no-btn.active {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
  animation: goalMarkFailure 0.4s ease;
}

.goal-completion-no-btn.disabled {
  background: #e5e7eb;
  color: #6a7282;
  cursor: not-allowed;
  border-color: #e5e7eb;
  opacity: 0.6;
}

.goal-completion-result {
  padding: 1rem;
  border-radius: 0.75rem;
  text-align: center;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.goal-completion-result.success {
  background: #d1fae5;
  color: #047857;
  animation: goalResultSlideIn 0.3s ease forwards;
}

.goal-completion-result.failure {
  background: #fee2e2;
  color: #b91c1c;
  animation: goalResultSlideIn 0.3s ease forwards;
}

.goal-completion-result-text {
  font-size: 0.875rem;
  font-weight: 700;
}

/* Animations for goal marking */
@keyframes goalMarkSuccess {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.95);
  }

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

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

  50% {
    transform: scale(0.95);
  }

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

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

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

.goal-completion-change {
  text-align: center;
}

.goal-change-response-btn {
  font-size: 0.875rem;
  color: #6a7282;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.goal-change-response-btn:hover {
  color: #0a0a0a;
}

/* Buttons */
.goal-save-progress-btn,
.goal-update-progress-btn,
.goal-mark-complete-btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: #0095ff;
  color: white;
  font-weight: 700;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.goal-save-progress-btn:hover,
.goal-update-progress-btn:hover {
  background: #0077cc;
}

.goal-mark-complete-btn {
  background: #059669;
  margin-top: 0.5rem;
}

.goal-mark-complete-btn:hover {
  background: #047857;
}

.goal-completed-message {
  padding: 1rem;
  border-radius: 0.75rem;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  text-align: center;
}

.goal-completed-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: #047857;
}

/* Completion Animation for Boolean One-Time */
.goal-completed-animation {
  position: relative;
  overflow: hidden;
}

.goal-completed-trophy {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  display: block;
  animation: trophyBounce 0.6s ease;
}

.goal-completed-animation.animate .goal-completed-trophy {
  animation: trophyBounce 0.6s ease, trophyRotate 0.5s ease 0.3s;
}

@keyframes trophyBounce {

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

  50% {
    transform: translateY(-20px) scale(1.1);
  }
}

@keyframes trophyRotate {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(10deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* Missed Check-ins Section */
.goal-missed-checkins-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.goal-checkins-subtitle {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.goal-missed-checkins-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.goal-missed-checkin-day {
  background: var(--gray-50);
  border-radius: 0.5rem;
  padding: 1rem;
}

.goal-missed-checkin-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
}

.goal-missed-checkins-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Date Selector for Number Recurring */
.goal-log-date-section {
  margin-bottom: 1.5rem;
}

.goal-date-selector {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.goal-date-btn {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.goal-date-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.goal-date-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.goal-previous-date-picker {
  margin-top: 0.75rem;
}

.goal-date-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.goal-progress-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.goal-mark-today-complete-btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 600;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-300);
  cursor: pointer;
  transition: all 0.2s;
}

.goal-mark-today-complete-btn:hover {
  background: var(--gray-200);
  border-color: var(--gray-400);
}

.goal-today-complete-message {
  padding: 0.75rem;
  background: #d1fae5;
  border-radius: 0.75rem;
  text-align: center;
}

.goal-today-complete-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #047857;
}

/* Notes Section */
.goal-notes-section {
  width: 100%;
}

.goal-notes-label {
  display: block;
  font-size: 0.875rem;
  color: #6a7282;
  margin-bottom: 0.5rem;
}

.goal-notes-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #0a0a0a;
  resize: none;
  outline: none;
  font-family: inherit;
}

.goal-notes-textarea:focus {
  ring: 2px;
  ring-color: #0095ff;
}

.goal-notes-textarea::placeholder {
  color: #99a1af;
}

/* Session Success Message */
.goal-session-success-message {
  padding: 1rem;
  border-radius: 0.75rem;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
}

.goal-session-success-text {
  font-size: 0.875rem;
  text-align: center;
  color: #047857;
}

.goal-session-success-icon {
  font-weight: 700;
}

.goal-session-success-message-text {
  font-weight: 700;
}

/* History Section */
.goal-page-history {
  padding: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #fafbfc;
}

.goal-page-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.goal-page-history-content {
  width: 100%;
}

.goal-history-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.goal-history-count {
  font-size: 0.875rem;
  color: #6a7282;
  margin-bottom: 0.75rem;
}

.goal-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.goal-history-item {
  padding: 1rem;
  background: white;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.goal-history-item-content {
  flex: 1;
}

.goal-history-date-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.goal-history-date {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0a0a0a;
}

.goal-history-time {
  font-size: 0.75rem;
  color: #6a7282;
}

.goal-history-duration-badge {
  font-size: 0.75rem;
  background: #e0f2ff;
  color: #0095ff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.goal-history-value {
  font-size: 1rem;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 0.25rem;
}

.goal-history-unit {
  font-size: 0.875rem;
  color: #6a7282;
  font-weight: 400;
}

.goal-history-status {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.goal-history-status.completed {
  color: #059669;
}

.goal-history-status.not-completed {
  color: #dc2626;
}

.goal-history-status-icon {
  width: 1rem;
  height: 1rem;
}

.goal-history-notes {
  font-size: 0.875rem;
  color: #6a7282;
  font-style: italic;
  margin-top: 0.25rem;
}

.goal-history-delete {
  color: #dc2626;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.goal-history-delete:hover {
  background: #fee2e2;
}

.goal-history-empty {
  font-size: 0.875rem;
  text-align: center;
  color: #99a1af;
  padding: 2rem 0;
}

/* Check-ins Section */
.goal-checkins-section {
  width: 100%;
}

.goal-checkins-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 1rem;
}

.goal-checkins-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Check-in Section Styles - Matching Site Design */
.goals-show-checkins-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.goals-show-checkins-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 0.5rem 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-show-checkins-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.goals-show-checkin-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: all 0.2s ease;
}

.goals-show-checkin-card:hover {
  border-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.goals-show-checkin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.goals-show-checkin-time-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.goals-show-checkin-time-icon {
  width: 16px;
  height: 16px;
  color: var(--gray-500);
  flex-shrink: 0;
}

.goals-show-checkin-time {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-show-checkin-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-show-checkin-status-badge.pending {
  background: #FEF3C7;
  color: #92400E;
}

.goals-show-checkin-status-badge.pass {
  background: #D1FAE5;
  color: #059669;
}

.goals-show-checkin-status-badge.fail {
  background: #FEE2E2;
  color: #DC2626;
}

.goals-show-checkin-actions {
  display: flex;
  gap: 0.75rem;
}

.goals-show-checkin-form {
  flex: 1;
  margin: 0;
}

.goals-show-checkin-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.goals-show-checkin-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.goals-show-checkin-btn-pass {
  background: #0094E9;
  color: var(--white);
}

.goals-show-checkin-btn-pass:hover {
  background: #0077C2;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.goals-show-checkin-btn-pass:active {
  transform: translateY(0);
}

.goals-show-checkin-btn-fail {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.goals-show-checkin-btn-fail:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.goals-show-checkin-btn-fail:active {
  transform: translateY(0);
}

.goals-show-checkin-summary {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
  margin-top: 0.5rem;
}

.goals-show-checkin-summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.goals-show-checkin-summary-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.goals-show-checkin-summary-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Responsive */
@media (max-width: 1023px) {
  .goal-page-main-grid {
    grid-template-columns: 1fr;
  }

  .goal-page-progress-summary {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-right: none;
  }
}

/* ============================================
   Goals Index - Scenario Selector
   ============================================ */

.goals-index-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.goals-index-section-icon {
  color: #6a7282;
  flex-shrink: 0;
}

.goals-index-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0;
}

.goals-scenario-selector-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.goals-scenario-selector-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #6a7282;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.goals-scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 1024px) {
  .goals-scenario-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .goals-scenario-grid {
    grid-template-columns: 1fr;
  }
}

.goals-scenario-card {
  position: relative;
  padding: 1rem;
  border-radius: 0.75rem;
  text-align: left;
  transition: all 0.2s;
  border: 2px solid transparent;
  background: #f9fafb;
  cursor: pointer;
  width: 100%;
}

.goals-scenario-card:hover {
  border-color: #d1d5dc;
}

.goals-scenario-card.selected {
  background: #dbeafe;
  border-color: #0095ff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.goals-scenario-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.goals-scenario-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6a7282;
  text-transform: uppercase;
}

.goals-scenario-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0;
}

.goals-scenario-checkmark {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 20px;
  height: 20px;
  background: #0095ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#selected-goal-detail {
  margin-top: 2rem;
}

/* Date Selector for Logging Progress */
.goals-show-date-selector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.goals-show-date-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.goals-show-date-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.goals-show-date-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.goals-show-date-picker {
  margin-top: 0.75rem;
}

.goals-show-date-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--gray-900);
}

.goals-show-date-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(68, 122, 237, 0.1);
}


/* Milestone Styles */
.goals-show-milestones-card {
  grid-column: 1 / -1;
  /* Full width */
  margin-bottom: 1.5rem;
}

.goals-show-milestones-progress {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.goals-show-milestones-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.goals-show-milestones-progress-percentage {
  font-weight: 600;
  color: var(--primary);
}

.goals-show-milestones-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.goals-show-milestone-item {
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius);
  background: var(--white);
  transition: all 0.2s;
}

.goals-show-milestone-item.locked {
  opacity: 0.6;
  background: #f9fafb;
}

.goals-show-milestone-item.completed {
  border-color: var(--success);
  background: #f0fdf4;
}

.goals-show-milestone-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.goals-show-milestone-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.goals-show-milestone-item.locked .goals-show-milestone-number {
  background: #9ca3af;
}

.goals-show-milestone-item.completed .goals-show-milestone-number {
  background: var(--success);
}

.goals-show-milestone-info {
  flex-grow: 1;
}

.goals-show-milestone-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 0.25rem 0;
}

.goals-show-milestone-description {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0 0 0.5rem 0;
}

.goals-show-milestone-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.goals-show-milestone-status {
  flex-shrink: 0;
}

.goals-show-milestone-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.goals-show-milestone-badge.completed {
  background: var(--success);
  color: var(--white);
}

.goals-show-milestone-badge.unlocked {
  background: var(--primary);
  color: var(--white);
}

.goals-show-milestone-badge.locked {
  background: #9ca3af;
  color: var(--white);
}

.goals-show-milestone-progress {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.goals-show-milestone-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.goals-show-milestone-log-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.goals-show-milestone-log-form {
  margin-top: 0.5rem;
}

/* Milestone Form Styles (New Goal Page) */
.new-goal-milestone-item {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  background: #f9fafb;
  margin-bottom: 1rem;
}

.new-goal-milestone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.new-goal-milestone-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.new-goal-milestone-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.new-goal-milestone-remove:hover {
  background: #fee2e2;
}

.new-goal-add-milestone-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--white);
  border: 2px dashed #d1d5db;
  border-radius: var(--radius);
  color: var(--gray-700);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.new-goal-add-milestone-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f0f9ff;
}