/* Digital Wellness Dashboard Styles */
:root {
  --sage: #D4E2D4;
  --peach: #F5E6D3;
  --lavender: #E6E6FA;
  --warm-cream: #FAF7F2;
  --wellness-accent: #9CAF88;
  --wellness-text: #5C5C5C;
  --wellness-border: rgba(156, 175, 136, 0.2);
}

.wellness-dashboard {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.wellness-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.wellness-title {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

.wellness-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.wellness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.wellness-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

.wellness-card-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wellness-card-title svg {
  width: 20px;
  height: 20px;
  color: var(--wellness-accent);
}

.wellness-metric {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.wellness-metric-label {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.wellness-metric-value {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--wellness-accent);
}

.wellness-controls {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.wellness-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wellness-btn:hover {
  background: var(--wellness-accent);
  color: white;
  border-color: var(--wellness-accent);
}

.wellness-btn svg {
  width: 16px;
  height: 16px;
}

.wellness-chart-section {
  margin-top: 32px;
}

.wellness-chart-title {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.wellness-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.wellness-chart-container {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

.wellness-chart-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wellness-chart-label svg {
  width: 18px;
  height: 18px;
  color: var(--wellness-accent);
}

/* Soft Bar Chart Styles */
.soft-bar-container {
  margin-bottom: 16px;
}

.soft-bar-label {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.soft-bar-track {
  height: 24px;
  background: var(--warm-cream);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 4px;
}

.soft-bar-fill {
  height: 100%;
  border-radius: 12px;
  transition: width 0.5s ease;
}

.soft-bar-value {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

/* Focus Session Styles */
.focus-session-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.focus-session-modal {
  background: var(--surface);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}

.focus-session-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.focus-session-header h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--text-primary);
}

.focus-session-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.focus-session-status.waiting {
  background: #fff3cd;
  color: #856404;
}

.focus-session-status.active {
  background: #d4edda;
  color: #155724;
}

.focus-session-status.paused {
  background: #f8d7da;
  color: #721c24;
}

.focus-session-status.completed {
  background: #d1ecf1;
  color: #0c5460;
}

.focus-session-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.focus-session-close:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.focus-timer-container {
  display: flex;
  justify-content: center;
  padding: 30px 20px;
}

.focus-timer-circle {
  position: relative;
  width: 200px;
  height: 200px;
}

.focus-timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.focus-timer-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
}

.focus-timer-progress {
  fill: none;
  stroke: var(--wellness-accent);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

.focus-timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-primary);
}

.focus-participants {
  padding: 0 20px 20px;
}

.focus-participants h4 {
  margin: 0 0 15px 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.focus-participants-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.focus-participant {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--surface-hover);
  border-radius: 12px;
}

.focus-participant-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wellness-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.focus-participant-name {
  flex: 1;
  font-weight: 500;
  color: var(--text-primary);
}

.focus-participant-status {
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 12px;
}

.focus-participant-status.online {
  background: #d4edda;
  color: #155724;
}

.focus-participant-status.offline {
  background: #f8d7da;
  color: #721c24;
}

.focus-controls {
  padding: 0 20px 20px;
}

.focus-host-controls, .focus-participant-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.focus-host-controls button, .focus-participant-controls button {
  flex: 1;
  min-width: 120px;
}

.focus-ambient-controls {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.focus-ambient-controls h4 {
  margin: 0 0 15px 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.focus-sound-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.focus-sound-option {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px 10px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.focus-sound-option:hover {
  background: var(--wellness-accent);
  color: white;
  border-color: var(--wellness-accent);
}

.focus-sound-option.active {
  background: var(--wellness-accent);
  color: white;
  border-color: var(--wellness-accent);
}

.focus-sound-option span:first-child {
  font-size: 1.5rem;
}

.focus-checkin-log {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.focus-checkin-log h4 {
  margin: 0 0 15px 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.focus-checkin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.focus-checkin-item {
  padding: 12px;
  background: var(--surface-hover);
  border-radius: 12px;
}

.focus-checkin-user {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.focus-checkin-user span:first-child {
  font-weight: 500;
  color: var(--text-primary);
}

.focus-checkin-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.focus-checkin-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-top: 5px;
  border-top: 1px solid var(--border);
  margin-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .focus-session-modal {
    margin: 10px;
    max-height: calc(100vh - 20px);
  }
  
  .focus-timer-circle {
    width: 150px;
    height: 150px;
  }
  
  .focus-timer-text {
    font-size: 2rem;
  }
  
  .focus-host-controls, .focus-participant-controls {
    flex-direction: column;
  }
  
  .focus-sound-options {
    flex-direction: column;
  }
  
  .focus-sound-option {
    flex-direction: row;
    justify-content: flex-start;
    gap: 15px;
  }
}

/* Gentle Progress Ring */
.gentle-progress-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gentle-progress-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gentle-progress-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Gentle Messages */
.gentle-message {
  font-size: 0.95rem;
  color: var(--wellness-text);
  background: var(--warm-cream);
  padding: 12px 16px;
  border-radius: 12px;
  margin-top: 16px;
  border-left: 3px solid var(--wellness-accent);
}

.gentle-message-icon {
  margin-right: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .wellness-dashboard {
    padding: 16px;
  }
  
  .wellness-grid {
    grid-template-columns: 1fr;
  }
  
  .wellness-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .wellness-chart-grid {
    grid-template-columns: 1fr;
  }
}

/* Focus Session Matching & Social Styles */

.focus-matching-section {
  margin: 20px 0;
  padding: 0 20px;
}

.focus-matching-card, .focus-invites-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.focus-matching-card h3, .focus-invites-card h3 {
  margin-top: 0;
  color: var(--text);
  font-size: 1.2rem;
}

.focus-queue-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(196, 149, 106, 0.1);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.focus-queue-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.focus-queue-icon {
  font-size: 1.5rem;
}

.focus-queue-text {
  font-weight: 500;
  color: var(--text);
}

.focus-queue-position {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.focus-join-queue {
  text-align: center;
  padding: 20px 0;
}

.focus-queue-help {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 10px;
}

.focus-invite-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.focus-invite-section h4 {
  margin-top: 0;
  color: var(--text);
  font-size: 1rem;
}

.focus-invites-list {
  margin-top: 15px;
}

.focus-invite-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: var(--surface);
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}

.focus-invite-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.focus-invite-icon {
  font-size: 1.2rem;
}

.focus-invite-text {
  color: var(--text);
  font-size: 0.95rem;
}

.focus-invite-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.focus-invite-actions {
  margin-left: 15px;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.focus-invite-modal {
  max-width: 400px;
}

.focus-invite-modal p {
  color: var(--text-muted);
  margin: 15px 0;
  font-size: 0.9rem;
}

.focus-invite-modal .form-group {
  margin-bottom: 20px;
}

.focus-invite-modal .form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 0.9rem;
}

.focus-invite-modal .form-input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .focus-matching-section {
    padding: 0 15px;
  }
  
  .focus-matching-card, .focus-invites-card {
    padding: 15px;
  }
  
  .focus-queue-status {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .focus-invite-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .focus-invite-actions {
    align-self: flex-end;
    margin-left: 0;
  }
}


/* ===== Gratitude Jar Styles ===== */
.gratitude-jar-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--warm-cream);
  border-radius: 12px;
  border: 1px solid var(--wellness-border);
}

.gratitude-jar-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.gratitude-jar-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.gratitude-jar-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

.gratitude-jar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.gratitude-input-area {
  width: 100%;
  max-width: 500px;
}

.gratitude-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--wellness-border);
  border-radius: 8px;
  background: white;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  min-height: 80px;
}

.gratitude-input:focus {
  outline: none;
  border-color: var(--wellness-accent);
  box-shadow: 0 0 0 2px rgba(156, 175, 136, 0.2);
}

.gratitude-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-gratitude {
  background: var(--wellness-accent);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-gratitude:hover:not(:disabled) {
  background: #8aa07a;
  transform: translateY(-2px);
}

.btn-gratitude:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-shake {
  background: var(--peach);
  color: var(--text-primary);
}

.btn-shake:hover:not(:disabled) {
  background: #e8d9c2;
}

.gratitude-jar-visual {
  position: relative;
  width: 200px;
  height: 250px;
  margin: 1rem 0;
}

.gratitude-jar-body {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 200px;
  background: rgba(212, 226, 212, 0.3);
  border: 2px solid var(--wellness-accent);
  border-radius: 8px 8px 40px 40px;
  backdrop-filter: blur(4px);
  box-shadow: 
    inset 0 0 20px rgba(156, 175, 136, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.gratitude-jar-body::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  height: 20px;
  background: rgba(212, 226, 212, 0.4);
  border: 2px solid var(--wellness-accent);
  border-radius: 8px;
}

.gratitude-jar-mouth {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 15px;
  background: rgba(212, 226, 212, 0.5);
  border: 2px solid var(--wellness-accent);
  border-radius: 8px;
}

.gratitude-jar-notes-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px;
  overflow: hidden;
}

.gratitude-note {
  position: absolute;
  width: 80px;
  height: 80px;
  background: #fef9e7;
  border: 1px solid #f9e79f;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
  font-size: 0.7rem;
  opacity: 0.9;
  transition: all 0.3s ease;
  word-break: break-word;
  line-height: 1.2;
}

.gratitude-note:nth-child(1) { bottom: 0; transform: rotate(-5deg); }
.gratitude-note:nth-child(2) { bottom: 20px; transform: rotate(3deg); }
.gratitude-note:nth-child(3) { bottom: 40px; transform: rotate(-2deg); }
.gratitude-note:nth-child(4) { bottom: 60px; transform: rotate(4deg); }
.gratitude-note:nth-child(5) { bottom: 80px; transform: rotate(-3deg); }

@keyframes drop-in {
  0% {
    transform: translate(-50%, -200px) rotate(0deg);
    opacity: 0;
  }
  70% {
    transform: translate(-50%, 20px) rotate(10deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 0) rotate(0deg);
    opacity: 0.9;
  }
}

.drop-in-animation {
  animation: drop-in 1s ease-out forwards;
}

@keyframes shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  10% { transform: translateX(-5px) rotate(-2deg); }
  20% { transform: translateX(5px) rotate(2deg); }
  30% { transform: translateX(-5px) rotate(-2deg); }
  40% { transform: translateX(5px) rotate(2deg); }
  50% { transform: translateX(-3px) rotate(-1deg); }
  60% { transform: translateX(3px) rotate(1deg); }
  70% { transform: translateX(-2px) rotate(-0.5deg); }
  80% { transform: translateX(2px) rotate(0.5deg); }
  90% { transform: translateX(-1px) rotate(-0.25deg); }
}

.shake-animation {
  animation: shake 0.8s ease-in-out;
}

.gratitude-memory-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.gratitude-memory-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  animation: pop-in 0.3s ease-out;
}

@keyframes pop-in {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.gratitude-memory-content {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 1rem 0;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gratitude-memory-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.btn-close-memory {
  background: var(--text-muted);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .gratitude-jar-section {
    padding: 1rem;
  }
  
  .gratitude-jar-container {
    gap: 1rem;
  }
  
  .gratitude-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .gratitude-jar-visual {
    width: 160px;
    height: 200px;
  }
  
  .gratitude-jar-body {
    width: 110px;
    height: 160px;
  }
  
  .gratitude-jar-mouth {
    width: 80px;
  }
  
  .gratitude-jar-notes-container {
    width: 90px;
    height: 130px;
  }
  
  .gratitude-note {
    width: 60px;
    height: 60px;
    font-size: 0.6rem;
  }
  
  .gratitude-note:nth-child(1) { bottom: 0; }
  .gratitude-note:nth-child(2) { bottom: 15px; }
  .gratitude-note:nth-child(3) { bottom: 30px; }
  .gratitude-note:nth-child(4) { bottom: 45px; }
  .gratitude-note:nth-child(5) { bottom: 60px; }
}
