
:root {
  
  --background: hsl(210, 20%, 98%); 
  --foreground: hsl(210, 10%, 20%); 
  
  --card: hsl(0, 0%, 100%);
  --card-foreground: var(--foreground);
  
  --primary: hsl(205, 78%, 48%); 
  --primary-foreground: hsl(0, 0%, 100%);
  --primary-hover: hsl(205, 78%, 40%);
  
  --success: hsl(142, 60%, 40%); 
  --success-foreground: hsl(0, 0%, 100%);
  --success-light: hsl(142, 60%, 94%);
  
  --healthcare: hsl(175, 55%, 35%); 
  --healthcare-foreground: hsl(0, 0%, 100%);
  --healthcare-light: hsl(175, 55%, 94%);
  
  --secondary: hsl(210, 20%, 92%);
  --secondary-foreground: var(--foreground);
  
  --muted: hsl(210, 20%, 94%);
  --muted-foreground: hsl(210, 8%, 55%);
  
  --destructive: hsl(0, 84%, 60%);
  --destructive-foreground: hsl(0, 0%, 100%);
  
  --border: hsl(210, 20%, 88%);
  --input: hsl(0, 0%, 100%);
  --ring: var(--primary);
  
 
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--healthcare));
  --gradient-healthcare: linear-gradient(135deg, var(--healthcare), var(--success));
  --gradient-success: linear-gradient(135deg, var(--success), hsl(142, 60%, 50%));
  
 
  --shadow-soft: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  
  
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-12: 3rem;
  
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1rem;
  

  --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}


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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}


.screen {
  display: none;
  min-height: 100vh;
}

.screen.active {
  display: block;
}


.hidden {
  display: none !important;
}

.min-h-screen {
  min-height: 100vh;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.space-x-2 > * + * {
  margin-left: var(--spacing-2);
}

.space-x-3 > * + * {
  margin-left: var(--spacing-3);
}

.space-x-4 > * + * {
  margin-left: var(--spacing-4);
}

.space-y-3 > * + * {
  margin-top: var(--spacing-3);
}

.space-y-4 > * + * {
  margin-top: var(--spacing-4);
}

.space-y-6 > * + * {
  margin-top: var(--spacing-6);
}


.bg-gradient-healthcare {
  background: linear-gradient(135deg, var(--healthcare-light), var(--background), var(--success-light));
}


.login-container {
  width: 100%;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
}

.login-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.logo-container {
  display: flex;
  justify-content: center;
}

.logo-circle {
  background: var(--gradient-healthcare);
  border-radius: 50%;
  padding: var(--spacing-4);
  box-shadow: var(--shadow-large);
}

.heart-icon {
  height: 3rem;
  width: 3rem;
  color: var(--healthcare-foreground);
}

.login-header h1 {
  font-size: 1.875rem;
  font-weight: 800; 
  color: var(--foreground);
}

.subtitle {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.login-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-large);
  border: 1px solid var(--border); 
}

.card-header {
  text-align: center;
  padding: var(--spacing-6) var(--spacing-6) var(--spacing-4);
}

.card-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.card-content {
  padding: 0 var(--spacing-6) var(--spacing-6);
}

.user-type-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.section-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.user-type-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.user-type-btn {
  height: 4.5rem; 
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
  padding: var(--spacing-4);
  background: var(--muted);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: left;
}

.user-type-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.patient-btn:hover {
  background: var(--success-light);
  border-color: var(--success);
}

.professional-btn:hover {
  background: var(--healthcare-light);
  border-color: var(--healthcare);
}

.btn-icon {
  height: 1.75rem; 
  width: 1.75rem;
  flex-shrink: 0;
}

.patient-btn .btn-icon {
  color: var(--success);
}

.professional-btn .btn-icon {
  color: var(--healthcare);
}

.btn-title {
  font-weight: 700;
  color: var(--foreground);
}

.btn-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.back-btn {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: var(--spacing-2);
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  align-self: flex-start;
  font-size: 0.95rem;
}

.back-btn:hover {
  color: var(--primary);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
}

.form-group input {
  height: 3.2rem; 
  padding: 0 var(--spacing-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition-smooth);
  background-color: var(--input);
}

.form-group input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px hsla(205, 78%, 48%, 0.2); 
}

.form-group textarea {
    height: auto; 
    min-height: 5rem;
    padding: var(--spacing-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition-smooth);
    background-color: var(--input);
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px hsla(205, 78%, 48%, 0.2);
}

.form-group input[type="file"] {
    height: auto;
    padding: var(--spacing-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background-color: var(--input);
    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
    background: var(--secondary);
    color: var(--foreground);
    border: 1px solid var(--border);
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
    margin-right: var(--spacing-4);
}

.form-group input[type="file"]::file-selector-button:hover {
    background: var(--muted);
}


.form-group select {
    height: 3.2rem; 
    padding: 0 var(--spacing-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition-smooth);
    background-color: var(--input);
    appearance: none; 
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%236B7280'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

.form-group select:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px hsla(205, 78%, 48%, 0.2);
}

.login-submit-btn {
  height: 3.5rem; 
  background: var(--gradient-primary); 
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-soft);
}

.login-submit-btn:hover {
  opacity: 0.95;
  box-shadow: var(--shadow-medium);
  transform: translateY(-1px);
}

.login-submit-btn.professional {
  background: var(--gradient-healthcare);
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
}


.register-link {
    text-align: center;
    margin-top: var(--spacing-4);
    font-size: 0.95rem;
    color: var(--muted-foreground);
}

.register-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.register-link a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}


.app-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: var(--spacing-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
}

.user-avatar {
  border-radius: 50%;
  padding: var(--spacing-2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.user-avatar.patient {
  background: var(--gradient-success);
}

.user-avatar.professional {
  background: var(--gradient-healthcare);
}

.user-avatar svg {
  height: 1.5rem;
  width: 1.5rem;
  color: white;
}

.header-left h1 {
  font-size: 1.25rem;
  font-weight: 700;
}

.header-subtitle {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.logout-btn, .notification-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-2) var(--spacing-4);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-weight: 500;
  color: var(--foreground);
}

.logout-btn:hover {
  background: var(--destructive);
  color: var(--destructive-foreground);
  border-color: var(--destructive);
}

.notification-btn {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background: var(--destructive);
  color: var(--destructive-foreground);
  font-size: 0.75rem;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
}

.header-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.title-icon {
  height: 1.25rem;
  width: 1.25rem;
  color: var(--healthcare);
}

.question-counter {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}


.dashboard-main {
  max-width: 80rem;
  margin: 0 auto;
  padding: var(--spacing-8) var(--spacing-4);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-6);
}

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

.main-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-6);
}


.progress-card, .exercises-card, .quick-actions-card, .activity-card, .actions-card, .demands-card, .schedule-card, .quick-stats-card, .stat-card, .question-card, .help-card, .media-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-medium); 
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition-smooth);
}

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

.card-header {
  padding: var(--spacing-6) var(--spacing-6) var(--spacing-4);
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.card-content {
  padding: var(--spacing-6);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-4);
  font-size: 0.95rem;
}

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

.progress-bar {
  height: 0.75rem;
  background: var(--muted);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--spacing-4);
}

.progress-fill {
  height: 100%;
  background: var(--gradient-success);
  transition: width 0.5s ease;
}

.progress-message {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}


.exercises-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-4);
}

@media (min-width: 768px) {
  .exercises-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.exercise-item {
  border-radius: var(--radius-sm);
  padding: var(--spacing-4);
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
}

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

.exercise-item.success {
  background: var(--success-light);
  border-color: var(--success);
}

.exercise-item.healthcare {
  background: var(--healthcare-light);
  border-color: var(--healthcare);
}

.exercise-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-2);
}

.exercise-header h4 {
  font-weight: 600;
  color: var(--foreground);
}

.clock-icon {
  height: 1rem;
  width: 1rem;
  color: var(--muted-foreground);
}

.exercise-duration {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: var(--spacing-4);
}

.exercise-btn {
  height: 2.5rem;
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
}

.exercise-btn svg {
    height: 1.25rem;
    width: 1.25rem;
}

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

.exercise-btn.success:hover {
  background: hsl(142, 60%, 35%);
}

.exercise-btn.healthcare {
  background: var(--healthcare);
}

.exercise-btn.healthcare:hover {
  background: hsl(175, 55%, 30%);
}

.media-actions-choice {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1rem;
}

.media-actions-choice .exercise-btn,
.media-actions-choice a.exercise-btn {
    width: 100% !important; 
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    box-shadow: var(--shadow-soft);
    text-decoration: none; 
}


.media-actions-choice a.exercise-btn {
    color: var(--healthcare-foreground); 
    background: var(--healthcare);
    border: none;
}

.media-actions-choice a.exercise-btn:hover {
    background: hsl(175, 55%, 30%);
}


.actions-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.action-btn {
  width: 100%;
  height: 3.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  padding: 0 var(--spacing-4);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.action-btn .btn-icon {
    height: 1.5rem;
    width: 1.5rem;
}

.action-btn.primary {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  border: none;
}

.action-btn.primary:hover {
  opacity: 0.95;
  box-shadow: var(--shadow-medium);
  transform: translateY(-1px);
}

.action-btn.outline {
  background: var(--card);
  color: var(--primary);
  border: 1px solid var(--border);
}

.action-btn.outline:hover {
  background: var(--muted);
}

.action-btn.outline .btn-icon {
    color: var(--primary);
}


.activity-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.activity-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  font-size: 0.95rem;
}

.activity-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.activity-dot.success {
  background: var(--success);
}

.activity-dot.healthcare {
  background: var(--healthcare);
}

.activity-dot.primary {
  background: var(--primary);
}


.professional-content {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: var(--spacing-6);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-4);
}

.stat-card {
  text-align: center;
  padding: var(--spacing-6);
  background: var(--secondary);
  border: 1px solid var(--border);
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 800;
  margin-bottom: var(--spacing-1);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.demands-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.demands-item {
  padding: var(--spacing-4);
  border-bottom: 1px dashed var(--border);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.demands-item:hover {
    background: var(--muted);
}

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

.demand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-1);
}

.demand-title {
  font-weight: 600;
}

.demand-badge {
  font-size: 0.75rem;
  padding: var(--spacing-1) var(--spacing-2);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.demand-badge.new {
  background: var(--destructive);
  color: var(--destructive-foreground);
}

.demand-badge.low {
    background: var(--success);
    color: var(--success-foreground);
}

.demand-meta {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}


.questionnaire-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-8);
}

.question-card .card-content {
    min-height: 15rem; 
    flex-direction: column;
    justify-content: space-between;
}

.question-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-6);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.radio-option:hover {
    background: var(--muted);
}

.radio-option input[type="radio"] {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--border);
    border-radius: 50%;
    transition: var(--transition-smooth);
    position: relative;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 0 3px var(--background);
}

.radio-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.5rem;
    height: 0.5rem;
    background: white;
    border-radius: 50%;
}

.radio-option label {
    flex-grow: 1;
    cursor: pointer;
}

.question-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-4);
    border-top: 1px solid var(--border);
}

.question-nav button {
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.prev-btn {
    background: var(--secondary);
    color: var(--foreground);
    border: 1px solid var(--border);
}

.prev-btn:hover {
    background: var(--muted);
}

.next-btn, .submit-btn {
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
}

.next-btn:hover, .submit-btn:hover {
    background: var(--primary-hover);
}

.media-main {
    max-width: 80rem;
    margin: 0 auto;
}

.media-header {
    padding: var(--spacing-8) var(--spacing-4) var(--spacing-4);
}

.media-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-2);
}

.search-container {
    display: flex;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-6);
    align-items: center;
}

.search-input {
    flex-grow: 1;
    height: 3rem;
    padding: 0 var(--spacing-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.filter-btn {
    background: var(--secondary);
    color: var(--foreground);
    border: 1px solid var(--border);
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.filter-btn:hover {
    background: var(--muted);
}

.view-mode-buttons {
    display: flex;
    gap: var(--spacing-2);
}

.view-mode-buttons button {
    background: var(--secondary);
    border: 1px solid var(--border);
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--muted-foreground);
}

.view-mode-buttons button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
}

.view-mode-buttons button:hover:not(.active) {
    background: var(--muted);
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-6);
    padding: 0 var(--spacing-4); 
}

.category-btn {
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius);
    background: var(--muted);
    color: var(--muted-foreground);
    border: 1px solid var(--muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.category-btn.active {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.category-btn:hover:not(.active) {
    background: var(--secondary);
    border-color: var(--border);
    color: var(--foreground);
}

.videos-grid, .photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-6);
    padding: 0 var(--spacing-4);
}

.photos-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    padding: 0 var(--spacing-4);
}

.video-card .card-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.photo-card-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card);
    transition: var(--transition-smooth);
}

.photo-card-list:hover {
    background: var(--muted);
}

.media-thumbnail {
    width: 100%;
    height: 150px;
    background: var(--muted);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--muted-foreground);
}

.media-details h4 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-1);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.media-description {
    font-size: 0.95rem;
    color: var(--muted-foreground);
    margin-bottom: var(--spacing-3);
    min-height: 2.5rem;
}

.media-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2);
}

.badge {
    font-size: 0.75rem;
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: var(--radius);
    font-weight: 600;
}

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

.badge.outline {
    background: var(--secondary);
    color: var(--foreground);
    border: 1px solid var(--border);
}

.badge.destructive {
    background: var(--destructive);
    color: var(--destructive-foreground);
}

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

.video-btn {
  height: 2.5rem;
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
}

.video-btn:hover {
  background: hsl(175, 55%, 30%);
}

.video-duration {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.photo-meta-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

.photo-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    align-items: flex-end;
    flex-shrink: 0;
}

.photo-actions button {
    font-size: 0.85rem;
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid var(--border);
    background: var(--secondary);
    color: var(--foreground);
}

.photo-actions button:hover {
    background: var(--muted);
}

.empty-state {
    text-align: center;
    padding: var(--spacing-12);
    color: var(--muted-foreground);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-4);
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: var(--spacing-2);
}

.empty-state p {
    font-size: 1rem;
    color: var(--muted-foreground);
}


.help-card {
    margin-top: var(--spacing-6);
    padding: var(--spacing-6);
    background: var(--healthcare-light);
    border-left: 5px solid var(--healthcare);
}

.help-content h3 {
    font-weight: 700;
    color: var(--healthcare);
    margin-bottom: var(--spacing-2);
}

.help-content p {
  color: var(--foreground);
  margin-bottom: var(--spacing-4);
  font-size: 0.95rem;
}

.help-btn {
  background: white;
  border: 1px solid var(--healthcare);
  padding: var(--spacing-2) var(--spacing-4);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--healthcare);
  font-weight: 600;
}

.help-btn:hover {
  background: var(--card);
  box-shadow: var(--shadow-soft);
}
@media (max-width: 767px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .professional-content {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .exercises-grid {
    grid-template-columns: 1fr;
  }
  
  .actions-grid {
    grid-template-columns: 1fr;
  }
  
  .search-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-btn {
    width: 100%;
    justify-content: center;
  }
  
  .header-content {
    flex-direction: column;
    gap: var(--spacing-3);
  }

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

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

  .videos-grid, .photos-grid {
    grid-template-columns: 1fr;
  }
  
  .category-filter {
      justify-content: center;
  }

  .question-nav {
    flex-direction: column;
    gap: var(--spacing-3);
  }

  .question-nav button {
    width: 100%;
    justify-content: center;
  }
  
  .media-actions-choice {
      flex-direction: column;
      gap: 0.25rem;
  }
}

/* Ajustes solicitados: acessibilidade, demandas e responsividade */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.field-help { color: var(--muted-foreground); font-size: 0.85rem; }
.terms-group { display: flex; align-items: flex-start; gap: .65rem; }
.terms-group input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; }
.terms-group a { color: var(--primary); font-weight: 600; }

.app-message {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 2000;
  max-width: min(28rem, calc(100vw - 2rem)); padding: 1rem 1.25rem;
  border-radius: var(--radius-sm); background: var(--foreground); color: white;
  box-shadow: var(--shadow-large); white-space: pre-line;
}
.app-message.success { background: var(--success); }
.app-message.error { background: var(--destructive); }
.app-message.info { background: var(--primary); }

.demands-item {
  width: 100%; display: block; background: transparent; border: 0;
  border-bottom: 1px dashed var(--border); text-align: left; color: inherit;
}
.demands-item:focus-visible, .demands-item:hover { background: var(--muted); }

.modal-overlay {
  position: fixed; inset: 0; z-index: 1500; padding: 1rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.58);
}
.modal-card {
  width: min(46rem, 100%); max-height: 90vh; overflow: auto;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-large);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem; border-bottom: 1px solid var(--border); }
.modal-close { border: 0; background: transparent; font-size: 2rem; cursor: pointer; min-width: 2.75rem; min-height: 2.75rem; }
.modal-content { padding: 1.25rem; }
.modal-actions { display: flex; gap: 1rem; padding: 1.25rem; border-top: 1px solid var(--border); }
.demand-details { display: grid; gap: .85rem; }
.demand-details div { padding: .85rem; border-radius: var(--radius-sm); background: var(--muted); }
.demand-details dt { font-weight: 700; margin-bottom: .25rem; }
.demand-details dd { margin: 0; overflow-wrap: anywhere; }
.exercise-description { margin: .55rem 0 0; color: var(--foreground); line-height: 1.5; }
.stat-card { min-width: 0; }
.stat-value { line-height: 1.1; overflow-wrap: anywhere; }

@media (max-width: 1023px) {
  .professional-content { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .dashboard-main { padding: var(--spacing-4); }
  .card-content, .card-header { padding-left: var(--spacing-4); padding-right: var(--spacing-4); }
  .stats-grid { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column; }
  .modal-actions .action-btn { width: 100%; justify-content: center; }
  .app-message { left: 1rem; right: 1rem; }
  input, select, textarea, button { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Interface final de login e cadastro */
#login-screen .login-container,
#register-screen .login-container {
  max-width: 34rem;
}

#login-screen .login-card,
#register-screen .login-card {
  border: 1px solid hsl(210, 24%, 88%);
  box-shadow: 0 18px 45px rgba(15, 41, 64, 0.11);
}

#login-screen .card-header,
#register-screen .card-header {
  padding-bottom: .75rem;
}

.login-card-subtitle {
  margin-top: .35rem;
  color: var(--muted-foreground);
  font-size: .95rem;
}

#login-screen .user-type-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

#login-screen .user-type-btn {
  min-height: 6rem;
  height: auto;
  background: #fff;
  align-items: center;
  border-color: hsl(210, 24%, 86%);
}

#login-screen .user-type-btn.selected.patient-btn {
  border-color: var(--success);
  background: var(--success-light);
  box-shadow: 0 0 0 3px hsla(142, 60%, 40%, .12);
}

#login-screen .user-type-btn.selected.professional-btn {
  border-color: var(--primary);
  background: hsl(205, 78%, 96%);
  box-shadow: 0 0 0 3px hsla(205, 78%, 48%, .12);
}

.login-mode-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .8rem;
  align-items: center;
  margin: .25rem 0 .5rem;
  color: var(--muted-foreground);
  font-size: .9rem;
}

.login-mode-divider span {
  height: 1px;
  background: var(--border);
}

.login-mode-divider strong {
  color: var(--primary);
  font-weight: 700;
}

#login-screen .form-group input,
#register-screen .form-group input,
#register-screen .form-group select {
  min-height: 3.5rem;
}

#login-screen .terms-group,
#register-screen .terms-group {
  padding: .35rem 0;
  line-height: 1.45;
}

#login-screen .terms-group input,
#register-screen .terms-group input {
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.inline-message {
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  line-height: 1.45;
}
.inline-message.error {
  background: hsl(0, 84%, 97%);
  color: hsl(0, 65%, 34%);
  border-color: hsl(0, 70%, 82%);
}
.inline-message.success {
  background: var(--success-light);
  color: hsl(142, 55%, 26%);
  border-color: hsl(142, 45%, 72%);
}
.inline-message.info {
  background: hsl(205, 78%, 96%);
  color: hsl(205, 65%, 30%);
  border-color: hsl(205, 55%, 78%);
}

#login-screen .login-submit-btn,
#register-screen .login-submit-btn {
  min-height: 3.6rem;
}

#login-screen .login-submit-btn:disabled,
#register-screen .login-submit-btn:disabled {
  cursor: wait;
  opacity: .7;
  transform: none;
}

@media (max-width: 580px) {
  #login-screen .user-type-buttons {
    grid-template-columns: 1fr;
  }
  #login-screen .login-container,
  #register-screen .login-container {
    max-width: 100%;
  }
  #login-screen .login-card,
  #register-screen .login-card {
    border-radius: .85rem;
  }
}

/* Melhorias: biblioteca após conclusão, descrição ao lado da mídia e cadastro contínuo */
.exercise-form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, .55fr);
  gap: 1rem;
  margin-top: var(--spacing-6);
}

.exercise-form-actions .login-submit-btn,
.exercise-form-actions .finish-registration-btn {
  min-height: 3.5rem;
}

#submit-exercise-btn:disabled {
  cursor: wait;
  opacity: .65;
}

.media-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(5, 15, 25, .82);
  backdrop-filter: blur(4px);
}

.media-viewer-card {
  position: relative;
  width: min(70rem, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-large);
}

.media-viewer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, .75fr);
  min-height: 28rem;
}

.media-viewer-player {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 1.25rem;
  background: #0b1118;
}

.media-viewer-player video,
.media-viewer-player img {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.media-viewer-description {
  padding: 2rem;
  overflow-wrap: anywhere;
}

.media-viewer-description h3 {
  margin: .65rem 0 1rem;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.25;
}

.media-viewer-description > p {
  color: var(--muted-foreground);
  line-height: 1.7;
  white-space: pre-line;
}

.media-viewer-description dl {
  display: grid;
  gap: .75rem;
  margin-top: 1.5rem;
}

.media-viewer-description dl div {
  padding: .85rem;
  border-radius: var(--radius-sm);
  background: var(--muted);
}

.media-viewer-description dt {
  font-weight: 700;
}

.media-viewer-description dd {
  margin: .15rem 0 0;
}

.media-viewer-type,
.completed-label {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: var(--success-light);
  color: var(--success);
  font-size: .8rem;
  font-weight: 700;
}

.media-viewer-close {
  position: absolute;
  top: .7rem;
  right: .7rem;
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--destructive);
  color: white;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
}

.media-thumbnail-button,
.photo-preview-button {
  border: 0;
  cursor: pointer;
}

.media-thumbnail-button:hover,
.photo-preview-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.photo-preview-button {
  display: block;
  width: 100%;
  height: 13rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--muted);
}

.photo-preview-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-list-thumbnail {
  flex: 0 0 7rem;
  width: 7rem;
  height: 5.5rem;
  margin-right: 1rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--muted);
}

.video-btn svg {
  width: 1rem;
  height: 1rem;
}

.library-loading {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
  color: var(--muted-foreground);
}

@media (max-width: 780px) {
  .exercise-form-actions,
  .media-viewer-grid {
    grid-template-columns: 1fr;
  }

  .media-viewer-card {
    max-height: 94vh;
  }

  .media-viewer-player {
    min-height: 15rem;
    padding: .75rem;
  }

  .media-viewer-description {
    padding: 1.25rem;
  }

  .photo-card-list {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .photo-list-thumbnail {
    flex-basis: 100%;
    width: 100%;
    height: 11rem;
    margin: 0 0 1rem;
  }
}

/* =========================================================
   MELHORIAS DE SEGURANÇA, PERFIL, FILTROS E RESPONSIVIDADE
   ========================================================= */

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.app-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  background: var(--background);
  color: var(--foreground);
  font-weight: 700;
}

.spinner {
  width: 2rem;
  height: 2rem;
  display: inline-block;
  border: 3px solid var(--border);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spinner-rotation 0.75s linear infinite;
}

.spinner-small {
  width: 1.1rem;
  height: 1.1rem;
  border-width: 2px;
}

@keyframes spinner-rotation {
  to { transform: rotate(360deg); }
}

.auth-links {
  display: grid;
  gap: 0.45rem;
}

.debug-reset-link {
  display: inline-block;
  margin-top: 0.45rem;
  font-weight: 700;
  color: inherit;
  text-decoration: underline;
}

.profile-btn {
  min-height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  font-weight: 650;
  transition: var(--transition-smooth);
}

.profile-btn:hover,
.profile-btn:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 3px hsla(205, 78%, 48%, 0.16);
}

.user-avatar.has-photo {
  padding: 0;
  overflow: hidden;
  width: 2.7rem;
  height: 2.7rem;
  background: var(--muted);
}

.user-avatar.has-photo img,
.profile-photo-preview img,
.patient-list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-modal-card {
  max-width: 34rem;
}

.profile-content {
  display: grid;
  gap: var(--spacing-6);
}

.profile-preview-wrap {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
  padding: var(--spacing-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
}

.profile-photo-preview {
  width: 6rem;
  height: 6rem;
  flex: 0 0 6rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--card);
  box-shadow: var(--shadow-medium);
  font-size: 2.5rem;
}

.exercise-filter-row,
.library-filter-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  flex-wrap: wrap;
}

.exercise-filter-row {
  margin-bottom: var(--spacing-4);
}

.exercise-filter-row select,
.filter-select {
  min-height: 2.8rem;
  padding: 0.55rem 2.2rem 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--foreground);
  font: inherit;
}

.exercise-filter-row select:focus,
.filter-select:focus,
.compact-search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(205, 78%, 48%, 0.16);
}

.quick-stats-card,
.patients-card,
.demands-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border);
  overflow: hidden;
}

.professional-content .main-content {
  min-width: 0;
}

.stats-grid-complete {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid-complete .stat-value {
  color: var(--primary);
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-4);
  text-align: left;
}

.card-subtitle {
  margin-top: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.compact-search {
  width: min(100%, 23rem);
  min-height: 2.8rem;
}

.patients-list {
  display: grid;
  gap: var(--spacing-3);
}

.patient-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--spacing-4);
  padding: var(--spacing-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
}

.patient-list-avatar {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--healthcare-light);
  font-size: 1.5rem;
}

.patient-list-info {
  min-width: 0;
}

.patient-list-info h4,
.patient-list-info p,
.patient-list-info small {
  overflow-wrap: anywhere;
}

.patient-list-info p {
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

.patient-list-info small {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted-foreground);
}

.patient-prescribe-btn {
  width: auto;
  white-space: nowrap;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: var(--spacing-5, 1.25rem);
}

.pagination-btn {
  min-width: 2.55rem;
  min-height: 2.55rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  font-weight: 650;
}

.pagination-btn:hover:not(:disabled),
.pagination-btn:focus-visible,
.pagination-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.empty-inline,
.library-loading {
  padding: var(--spacing-4);
  color: var(--muted-foreground);
  text-align: center;
}

.media-main .search-container {
  max-width: 100%;
}

.library-filter-controls .search-input {
  min-width: min(25rem, 100%);
  flex: 1 1 18rem;
}

.library-filter-controls .filter-select {
  flex: 0 1 15rem;
}

.media-viewer-grid {
  align-items: stretch;
}

.media-viewer-description {
  overflow-y: auto;
  max-height: 72vh;
}

.media-viewer-description p {
  white-space: pre-line;
}

@media (max-width: 900px) {
  .stats-grid-complete {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-header-flex {
    align-items: stretch;
    flex-direction: column;
  }

  .compact-search {
    width: 100%;
  }

  .patient-list-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .patient-prescribe-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 0.98rem;
  }

  .header-content,
  .header-actions,
  .media-header,
  .search-container,
  .exercise-filter-row,
  .library-filter-controls,
  .question-nav,
  .modal-actions {
    width: 100%;
  }

  .header-content,
  .media-header {
    align-items: stretch;
    flex-direction: column;
    gap: var(--spacing-3);
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2);
  }

  .header-actions > button,
  .logout-btn,
  .profile-btn,
  .notification-btn {
    width: 100%;
    min-height: 3rem;
    justify-content: center;
  }

  .notification-btn {
    display: none;
  }

  .login-container {
    max-width: 100%;
    gap: var(--spacing-4);
  }

  .login-card,
  .question-card,
  .progress-card,
  .exercises-card,
  .quick-actions-card,
  .activity-card,
  .quick-stats-card,
  .patients-card,
  .demands-card {
    border-radius: var(--radius-sm);
  }

  .card-header,
  .card-content,
  .dashboard-main,
  .media-main {
    padding-left: var(--spacing-4);
    padding-right: var(--spacing-4);
  }

  .form-group input,
  .form-group select,
  .form-group textarea,
  .search-input,
  .filter-select,
  .exercise-filter-row select {
    width: 100%;
    min-height: 3.2rem;
    font-size: 1rem;
  }

  .exercise-filter-row,
  .library-filter-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .patient-list-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .patient-list-avatar {
    margin: 0 auto;
  }

  .profile-preview-wrap {
    flex-direction: column;
    text-align: center;
  }

  .media-viewer-card {
    width: calc(100% - 1rem);
    max-height: 94vh;
    overflow-y: auto;
  }

  .media-viewer-grid {
    grid-template-columns: 1fr;
  }

  .media-viewer-player,
  .media-viewer-description {
    max-height: none;
  }

  .pagination-btn {
    min-width: 2.8rem;
    min-height: 2.8rem;
  }
}

#patient-dashboard .notification-btn {
  display: none;
}

/* Cadastro opcional de CREF e/ou CREFITO */
.professional-register-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
  padding: var(--spacing-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--muted);
}

.professional-register-option {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  cursor: pointer;
  font-weight: 600;
}



.professional-register-option input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--healthcare);
}
