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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #7165FF;
  color: #ffffff;
  overflow: hidden;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* Loading Modal */
.loading-modal-overlay {
  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: 9999;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.loading-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 50px 60px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  min-width: 350px;
}

.loading-spinner-container {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 6px solid #f3f4f6;
  border-top: 6px solid #7165FF;
  border-right: 6px solid #7165FF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-spinner-inner {
  position: absolute;
  width: 50px;
  height: 50px;
  border: 4px solid transparent;
  border-bottom: 4px solid #6D28D9;
  border-left: 4px solid #6D28D9;
  border-radius: 50%;
  animation: spin-reverse 0.75s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

.loading-message {
  font-size: 20px;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.subscription-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subscription-container {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

.close-button {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #f3f4f6;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #6b7280;
  z-index: 10;
}

.close-button:hover {
  background: #e5e7eb;
  color: #374151;
  transform: rotate(90deg);
}

.subscription-content {
  padding: 48px 40px;
}

.subscription-header {
  text-align: center;
  margin-bottom: 40px;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 32px;
}

.subscription-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #1f2937;
  letter-spacing: -0.5px;
}

.subscription-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.plans-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 40px;
}

.plan-card {
  position: relative;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.plan-card:hover {
  border-color: #7165FF;
  box-shadow: 0 8px 16px -4px rgba(113, 101, 255, 0.15);
  transform: translateY(-2px);
}

.plan-card.selected {
  border-color: #7165FF;
  background: linear-gradient(135deg, rgba(113, 101, 255, 0.02) 0%, rgba(109, 40, 217, 0.02) 100%);
  box-shadow: 0 8px 16px -4px rgba(113, 101, 255, 0.2);
}

.plan-card.premium {
  border-color: #d1d5db;
}

.plan-card.premium.selected {
  border-color: #7165FF;
}

.plan-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
}

.plan-header {
  margin-bottom: 24px;
}

.plan-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.plan-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: color 0.2s ease;
}

.plan-card.selected .plan-icon {
  color: #7165FF;
}

.plan-card:hover .plan-icon {
  color: #7165FF;
}

.plan-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #1f2937;
}

.plan-description {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.plan-pricing {
  margin-bottom: 12px;
}

.price-container {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.original-price {
  font-size: 16px;
  color: #9ca3af;
  text-decoration: line-through;
}

.current-price {
  font-size: 28px;
  color: #1f2937;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.free-months {
  display: inline-block;
  font-size: 13px;
  color: #059669;
  background: #d1fae5;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}

.plan-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
  margin: 24px 0;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.plan-features li {
  font-size: 15px;
  color: #374151;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.plan-features li:last-child {
  border-bottom: none;
}

.feature-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #7165FF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-text {
  flex: 1 1;
  line-height: 1.5;
}

.selected-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  margin-top: 16px;
}

.subscription-footer {
  margin-top: 40px;
  text-align: center;
  border-top: 2px solid #f3f4f6;
  padding-top: 32px;
}

.continue-button {
  width: 100%;
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.continue-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(113, 101, 255, 0.3);
}

.continue-button:active:not(:disabled) {
  transform: scale(0.98);
}

.continue-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.button-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.subscription-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: #fee2e2;
  color: #dc2626;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid #fecaca;
}

.subscription-error svg {
  flex-shrink: 0;
}

.security-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f9fafb;
  border-radius: 8px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  margin-bottom: 20px;
}

.legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.separator {
  color: #d1d5db;
  font-size: 12px;
}

.legal-link {
  color: #6b7280;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.legal-link:hover {
  color: #7165FF;
  text-decoration: underline;
}

/* Legal Modal Styles */
.legal-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.legal-modal-content {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

.legal-modal-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: white;
  padding: 24px 32px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 20px 20px 0 0;
  z-index: 10;
}

.legal-modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
}

.legal-modal-close {
  background: #f3f4f6;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #374151;
  flex-shrink: 0;
}

.legal-modal-close:hover {
  background: #e5e7eb;
  transform: scale(1.05);
}

.legal-modal-body {
  padding: 32px;
  color: #374151;
  line-height: 1.8;
}

.legal-modal-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 24px 0 12px 0;
}

.legal-modal-body p {
  margin: 12px 0;
  font-size: 14px;
  text-align: justify;
}

.legal-modal-body br {
  display: block;
  content: "";
  margin: 8px 0;
}

.legal-modal-content::-webkit-scrollbar {
  width: 8px;
}

.legal-modal-content::-webkit-scrollbar-track {
  background: #f9fafb;
}

.legal-modal-content::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.legal-modal-content::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .subscription-overlay {
    padding: 0;
    align-items: flex-start;
  }

  .subscription-container {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    min-height: 100vh;
  }

  .subscription-content {
    padding: 32px 20px 24px;
  }

  .close-button {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .subscription-header {
    margin-bottom: 32px;
  }

  .header-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
  }

  .subscription-title {
    font-size: 32px;
  }

  .subscription-subtitle {
    font-size: 16px;
  }

  .plans-container {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .plan-card {
    padding: 24px 20px;
  }

  .plan-icon {
    font-size: 28px;
  }

  .plan-title {
    font-size: 20px;
  }

  .current-price {
    font-size: 28px;
  }

  .continue-button {
    padding: 18px 24px;
    font-size: 16px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .plans-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .plan-card:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (min-width: 1025px) {
  .plans-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Scrollbar styling */
.subscription-container::-webkit-scrollbar {
  width: 8px;
}

.subscription-container::-webkit-scrollbar-track {
  background: #f9fafb;
}

.subscription-container::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.subscription-container::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Smooth scrolling */
.subscription-container {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
.close-button:focus,
.continue-button:focus,
.plan-card:focus,
.legal-link:focus {
  outline: 2px solid #7165FF;
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.confirm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.confirm-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  max-width: 480px;
  width: 90%;
  animation: slideUp 0.3s ease-out;
  overflow: hidden;
}

.confirm-modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.confirm-modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.confirm-modal-title.danger {
  color: #EF4444;
}

.confirm-modal-title.warning {
  color: #F59E0B;
}

.confirm-modal-title.info {
  color: #7165FF;
}

.confirm-modal-body {
  padding: 20px 24px;
}

.confirm-modal-body p {
  margin: 0;
  color: #666;
  font-size: 15px;
  line-height: 1.6;
}

.confirm-modal-footer {
  padding: 16px 24px;
  background: #f9f9f9;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.confirm-modal-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  outline: none;
}

.confirm-modal-cancel {
  background: #fff;
  color: #666;
  border: 1px solid #ddd;
}

.confirm-modal-cancel:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.confirm-modal-confirm {
  color: #fff;
}

.confirm-modal-confirm.danger {
  background: #EF4444;
}

.confirm-modal-confirm.danger:hover {
  background: #DC2626;
}

.confirm-modal-confirm.warning {
  background: #F59E0B;
}

.confirm-modal-confirm.warning:hover {
  background: #D97706;
}

.confirm-modal-confirm.info {
  background: #7165FF;
}

.confirm-modal-confirm.info:hover {
  background: #5B4FE0;
}

@media (max-width: 768px) {
  .confirm-modal {
    max-width: 90%;
    margin: 20px;
  }

  .confirm-modal-header {
    padding: 20px 20px 12px;
  }

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

  .confirm-modal-body {
    padding: 16px 20px;
  }

  .confirm-modal-body p {
    font-size: 14px;
  }

  .confirm-modal-footer {
    padding: 12px 20px;
  }

  .confirm-modal-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

.schedule-modal-overlay {
  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: 20px;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.schedule-modal-content {
  background: #FFFFFF;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.schedule-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #E5E5E5;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: #FFFFFF;
  z-index: 10;
}

.schedule-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1A1A1A;
}

.schedule-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #666666;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: all 0.2s;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-modal-close:hover {
  background: #F3F4F6;
  color: #1A1A1A;
}

.schedule-modal-loading {
  padding: 60px 24px;
  text-align: center;
}

.schedule-modal-loading .spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 3px solid #E5E5E5;
  border-top-color: #7165FF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.schedule-modal-loading p {
  color: #666666;
  font-size: 14px;
}

.schedule-modal-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 24px 0;
}

.schedule-modal-status-row .schedule-item-refs {
  flex-wrap: wrap;
}

.schedule-status-badge {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  font-weight: 500;
  font-size: 14px;
}

.schedule-status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-section {
  padding: 24px;
  border-bottom: 1px solid #E5E5E5;
}

.schedule-section:last-of-type {
  border-bottom: none;
}

.schedule-section-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
}

/* User Info */
.schedule-user-info {
  display: flex;
  gap: 16px;
  align-items: center;
}

.schedule-user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #F3F4F6;
}

.schedule-user-avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7165FF, #A78BFA);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: #FFFFFF;
}

.schedule-user-details h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  color: #1A1A1A;
}

.schedule-user-details p {
  margin: 0;
  font-size: 14px;
  color: #666666;
  line-height: 1.5;
}

.schedule-user-contact-item {
  position: relative;
  display: inline-block;
  width: 100%;
}

.schedule-user-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 4px 0;
  border-radius: 4px;
  -webkit-user-select: all;
          user-select: all;
  display: inline-block;
}

.schedule-user-clickable:hover {
  color: #7165FF;
  background: rgba(113, 101, 255, 0.05);
  padding: 4px 8px;
  margin: 0 -8px;
}

.schedule-user-clickable:active {
  transform: scale(0.98);
}

.schedule-tooltip {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 4px;
  background: #1A1A1A;
  color: #FFFFFF;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: tooltipFadeIn 0.2s ease-out;
  pointer-events: none;
}

.schedule-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 12px;
  border: 5px solid transparent;
  border-bottom-color: #1A1A1A;
}

.schedule-tooltip svg {
  flex-shrink: 0;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pet Info */
.schedule-pet-card {
  background: #F8F9FA;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: start;
}

.schedule-pet-photo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #FFFFFF;
}

.schedule-pet-photo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7165FF, #A78BFA);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.schedule-pet-info {
  flex: 1 1;
}

.schedule-pet-info h4 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  color: #1A1A1A;
}

.schedule-pet-breed {
  margin: 0 0 12px;
  font-size: 14px;
  color: #666666;
}

.schedule-pet-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-pet-detail-item {
  padding: 8px 14px;
  background: #FFFFFF;
  border-radius: 8px;
  font-size: 13px;
  color: #666666;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.schedule-pet-detail-item svg {
  color: #7165FF;
  flex-shrink: 0;
}

/* Schedule Info */
.schedule-info-grid {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.schedule-info-item {
  background: #F8F9FA;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.schedule-info-icon {
  min-width: 40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border-radius: 10px;
  color: #7165FF;
}

.schedule-info-content {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.schedule-info-label {
  font-size: 12px;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.schedule-info-value {
  font-size: 16px;
  color: #1A1A1A;
  font-weight: 600;
}

.schedule-info-time {
  font-size: 14px;
  color: #7165FF;
  font-weight: 500;
}

/* Notes */
.schedule-notes-card {
  background: #F8F9FA;
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}

.schedule-notes-card:first-child {
  margin-top: 0;
}

.schedule-notes-label {
  display: block;
  font-size: 12px;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  margin-bottom: 8px;
}

.schedule-notes-text {
  margin: 0;
  font-size: 14px;
  color: #1A1A1A;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Health Info */
.schedule-health-item {
  background: #F8F9FA;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.schedule-health-label {
  font-size: 13px;
  color: #666666;
  font-weight: 500;
}

.schedule-health-value {
  font-size: 14px;
  color: #1A1A1A;
  font-weight: 500;
}

/* Actions */
.schedule-modal-actions {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 12px;
  gap: 12px;
  background: #F8F9FA;
  border-radius: 0 0 16px 16px;
}

.schedule-action-btn {
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.schedule-action-btn svg {
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease;
}

.schedule-action-btn:hover svg {
  transform: scale(1.1);
}

.schedule-action-btn:active {
  transform: scale(0.98);
}

.schedule-btn-reject {
  background: #FFFFFF;
  color: #EF4444;
  border: 2px solid #EF4444;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.schedule-btn-reject:hover {
  background: #EF4444;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.schedule-btn-accept {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.schedule-btn-accept:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.schedule-btn-call {
  background: #FFFFFF;
  color: #7165FF;
  border: 2px solid #7165FF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.schedule-btn-call:hover {
  background: #7165FF;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(113, 101, 255, 0.25);
}

.schedule-btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.schedule-btn-whatsapp:hover {
  background: linear-gradient(135deg, #128C7E, #075E54);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.schedule-btn-completed {
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
  grid-column: 1 / -1;
}

.schedule-btn-completed:hover {
  background: linear-gradient(135deg, #4F46E5, #4338CA);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.schedule-modal-error {
  padding: 60px 24px;
  text-align: center;
}

.schedule-modal-error p {
  color: #666666;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .schedule-modal-overlay {
    padding: 0;
  }

  .schedule-modal-content {
    max-height: 100vh;
    border-radius: 0;
    height: 100vh;
  }

  .schedule-modal-header {
    padding: 20px;
  }

  .schedule-section {
    padding: 20px;
  }

  .schedule-user-info {
    flex-direction: column;
    align-items: start;
  }

  .schedule-pet-card {
    flex-direction: column;
  }

  .schedule-pet-photo,
  .schedule-pet-photo-placeholder {
    width: 100%;
    height: 200px;
  }

  .schedule-modal-actions {
    padding: 20px;
    grid-template-columns: 1fr;
  }

  .schedule-action-btn {
    width: 100%;
  }
}

/* Scrollbar */
.schedule-modal-content::-webkit-scrollbar {
  width: 6px;
}

.schedule-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.schedule-modal-content::-webkit-scrollbar-thumb {
  background: #E5E5E5;
  border-radius: 3px;
}

.schedule-modal-content::-webkit-scrollbar-thumb:hover {
  background: #D1D5DB;
}

/* Reject Modal */
.reject-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  animation: fadeIn 0.2s ease-in-out;
}

.reject-modal-content {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.3s ease-out;
}

.reject-modal-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: #1A1A1A;
}

.reject-modal-content p {
  margin: 0 0 16px;
  font-size: 14px;
  color: #666666;
  line-height: 1.5;
}

.reject-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #E5E5E5;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s;
  margin-bottom: 16px;
}

.reject-textarea:focus {
  outline: none;
  border-color: #7165FF;
}

.reject-textarea::placeholder {
  color: #999999;
}

.reject-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.reject-btn-cancel,
.reject-btn-confirm {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.reject-btn-cancel {
  background: #F3F4F6;
  color: #666666;
}

.reject-btn-cancel:hover {
  background: #E5E7EB;
}

.reject-btn-confirm {
  background: #EF4444;
  color: #FFFFFF;
}

.reject-btn-confirm:hover {
  background: #DC2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Pet Data Cards */
.pet-data-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pet-data-card {
  background: #F8F9FA;
  border-radius: 12px;
  padding: 16px;
  border-left: 4px solid #7165FF;
  transition: all 0.2s;
}

.pet-data-card:hover {
  background: #F3F4F6;
  transform: translateX(2px);
}

/* Card de alergia - padrão (sem severidade definida) */
.pet-data-card.alert-card {
  border-left-color: #F59E0B;
  background: #FEF5E7;
}

.pet-data-card.alert-card:hover {
  background: #FEF3C7;
}

/* Card de alergia - severidade mild/low (leve - verde) */
.pet-data-card.alert-card.severity-mild,
.pet-data-card.alert-card.severity-low {
  border-left-color: #10B981;
  background: #E7F8F2;
}

.pet-data-card.alert-card.severity-mild:hover,
.pet-data-card.alert-card.severity-low:hover {
  background: #D1FAE5;
}

/* Card de alergia - severidade moderate (moderada - amarelo) */
.pet-data-card.alert-card.severity-moderate {
  border-left-color: #F59E0B;
  background: #FEF5E7;
}

.pet-data-card.alert-card.severity-moderate:hover {
  background: #FEF3C7;
}

/* Card de alergia - severidade severe/high (grave - vermelho) */
.pet-data-card.alert-card.severity-severe,
.pet-data-card.alert-card.severity-high {
  border-left-color: #EF4444;
  background: #FDECEC;
}

.pet-data-card.alert-card.severity-severe:hover,
.pet-data-card.alert-card.severity-high:hover {
  background: #FEE2E2;
}

.pet-data-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pet-data-name {
  font-size: 15px;
  font-weight: 600;
  color: #1A1A1A;
}

.pet-data-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Status: active (ativo) */
.pet-data-status.status-active {
  background: #F3E8FF;
  color: #7165FF;
}

/* Status: up_to_date, normal, completed (sucesso) */
.pet-data-status.status-up_to_date,
.pet-data-status.status-normal,
.pet-data-status.status-completed {
  background: #E7F8F2;
  color: #10B981;
}

/* Status: expiring, abnormal (aviso) */
.pet-data-status.status-expiring,
.pet-data-status.status-abnormal {
  background: #FEF5E7;
  color: #F59E0B;
}

/* Status: expired, critical (crítico) */
.pet-data-status.status-expired,
.pet-data-status.status-critical {
  background: #FDECEC;
  color: #EF4444;
}

/* Status: pending (pendente) */
.pet-data-status.status-pending {
  background: #F3F4F6;
  color: #4B5563;
}

/* Status: incomplete (incompleto) */
.pet-data-status.status-incomplete {
  background: #F3F4F6;
  color: #6B7280;
}

.pet-data-severity {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Severidade: mild (leve) */
.pet-data-severity.severity-mild,
.pet-data-severity.severity-low {
  background: #E7F8F2;
  color: #10B981;
}

/* Severidade: moderate (moderada) */
.pet-data-severity.severity-moderate {
  background: #FEF5E7;
  color: #F59E0B;
}

/* Severidade: severe/high (grave) */
.pet-data-severity.severity-severe,
.pet-data-severity.severity-high {
  background: #FDECEC;
  color: #EF4444;
}

/* Tipo de alergia badge */
.pet-data-type {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Tipo: allergy (alergia - crítico) */
.pet-data-type.type-allergy {
  background: #FDECEC;
  color: #EF4444;
}

/* Tipo: intolerance (intolerância - aviso) */
.pet-data-type.type-intolerance {
  background: #FEF5E7;
  color: #F59E0B;
}

/* Tipo: food_restriction (restrição alimentar - laranja) */
.pet-data-type.type-food_restriction {
  background: #FFF7ED;
  color: #F97316;
}

.pet-data-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.pet-data-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 12px;
  color: #666666;
  font-weight: 500;
}

.detail-value {
  font-size: 14px;
  color: #1A1A1A;
  font-weight: 500;
}

/* Pet Info Grid */
.pet-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.pet-info-item {
  background: #F8F9FA;
  padding: 14px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pet-info-label {
  font-size: 12px;
  color: #666666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pet-info-value {
  font-size: 14px;
  color: #1A1A1A;
  font-weight: 600;
}
/* Review Card */
.review-card {
  background: #F8F9FA;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.review-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #E5E5E5;
}

.review-user-info {
  flex: 1 1;
  min-width: 0;
}

.review-user-name {
  font-size: 15px;
  font-weight: 600;
  color: #1A1A1A;
  margin: 0 0 4px 0;
}

.review-date {
  font-size: 13px;
  color: #666666;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.review-rating svg {
  display: inline-block;
}

.rating-value {
  font-size: 15px;
  font-weight: 600;
  color: #1A1A1A;
  margin-left: 6px;
}

.review-body {
  margin-bottom: 0;
}

.review-text {
  font-size: 14px;
  line-height: 1.6;
  color: #333333;
  margin: 0;
  white-space: pre-wrap;
}
/* Colors */
:root {
  --color-main: #7165FF;
  --color-main-light: rgba(113, 101, 255, 0.1);
  --color-main-accent: #6D28D9;
  --color-background: #F8F9FA;
  --color-white: #FFFFFF;
  --color-text-primary: #1A1A1A;
  --color-text-secondary: #666666;
  --color-text-light: #999999;
  --color-border: #E5E5E5;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
}

.dashboard-container {
  min-height: 100vh;
  background: #F8F9FA;
  background: var(--color-background);
  display: flex;
  flex-direction: column;
}

/* Shimmer Loading Effect */
.shimmer {
  background: linear-gradient(90deg,
      #f0f0f0 0%,
      #e0e0e0 20%,
      #f0f0f0 40%,
      #f0f0f0 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.shimmer-logo {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.shimmer-text {
  height: 16px;
  width: 150px;
}

.shimmer-title {
  height: 24px;
  width: 200px;
}

.shimmer-button {
  width: 100px;
  height: 36px;
  border-radius: 8px;
}

.shimmer-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.shimmer-nav-item {
  height: 44px;
  margin-bottom: 4px;
  border-radius: 8px;
}

.shimmer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.shimmer-card {
  height: 140px;
  border-radius: 16px;
}

.shimmer-chart-large {
  height: 350px;
  border-radius: 16px;
}

.shimmer-chart-small {
  height: 350px;
  border-radius: 16px;
}

.shimmer-schedule-item {
  height: 80px;
  margin-bottom: 12px;
  border-radius: 12px;
}

/* Header */
.dashboard-header {
  background: #FFFFFF;
  background: var(--color-white);
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Botão Hamburger - Escondido em desktop */
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #1A1A1A;
  color: var(--color-text-primary);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s;
  padding: 0;
}

.hamburger-btn:hover {
  background: rgba(113, 101, 255, 0.1);
  background: var(--color-main-light);
  color: #7165FF;
  color: var(--color-main);
}

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

.dashboard-logo {
  height: 32px !important;
  width: auto !important;
  min-height: 32px;
}

.dashboard-logo path {
  fill: #7165FF;
  fill: var(--color-main);
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
  color: #7165FF;
  color: var(--color-main);
  margin: 0;
}

.panel-subtitle {
  font-size: 14px;
  color: #666666;
  color: var(--color-text-secondary);
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.requirements-badge-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 2px solid #e5e7eb;
  background: #ffffff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: #374151;
}

.requirements-badge-btn:hover {
  border-color: #7165FF;
  background: rgba(113, 101, 255, 0.05);
  transform: translateY(-2px);
}

.requirements-badge-btn svg {
  stroke: #7165FF;
}

.requirements-badge-btn span {
  color: #7165FF;
}

.toggle-status-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.toggle-status-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}

.toggle-status-btn::after {
  content: '';
  position: absolute;
  top: calc(100% + 2px);
  right: 20px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}

.toggle-status-btn:hover::before,
.toggle-status-btn:hover::after {
  opacity: 1;
}

.toggle-status-btn.active {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  color: var(--color-success);
}

.toggle-status-btn.active svg {
  stroke: #10B981;
  stroke: var(--color-success);
}

.toggle-status-btn.inactive {
  background: rgba(107, 114, 128, 0.1);
  color: #999999;
  color: var(--color-text-light);
}

.toggle-status-btn.inactive svg {
  stroke: #999999;
  stroke: var(--color-text-light);
}

.toggle-status-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.notification-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(113, 101, 255, 0.1);
  background: var(--color-main-light);
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7165FF;
  color: var(--color-main);
  position: relative;
}

.notification-btn svg {
  stroke: #7165FF;
  stroke: var(--color-main);
}

.notification-btn:hover {
  background: rgba(113, 101, 255, 0.2);
  transform: scale(1.05);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #EF4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

/* Main Layout */
.dashboard-main {
  display: flex;
  flex: 1 1;
  gap: 0;
  overflow: hidden;
  max-height: calc(100vh - 80px);
}

/* Sidebar */
.dashboard-sidebar {
  width: 280px;
  background: #FFFFFF;
  background: var(--color-white);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 1px 0 3px rgba(0, 0, 0, 0.05);
  overflow-y: auto;
  transition: transform 0.3s ease;
}

/* Overlay para mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px;
}

.nav-item {
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #666666;
  color: var(--color-text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-item svg {
  flex-shrink: 0;
}

.nav-item svg {
  flex-shrink: 0;
}

.nav-item:hover {
  background: rgba(113, 101, 255, 0.1);
  background: var(--color-main-light);
  color: #7165FF;
  color: var(--color-main);
}

.nav-item.active {
  background: #7165FF;
  background: var(--color-main);
  color: #FFFFFF;
  color: var(--color-white);
}

/* Service Alert Badge - Para o menu lateral */
.service-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  /* Estado não selecionado - vermelho claro com texto vermelho */
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  transition: all 0.3s;
}

/* Estado selecionado - fundo vermelho com texto branco */
.service-alert-badge.active {
  background: #FFFFFF;
  color: #171717;
}

/* Service Alert Badge - Para o card de serviços */
.service-alert-badge-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  margin-left: 8px;
  vertical-align: middle;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #E5E5E5;
  border-top: 1px solid var(--color-border);
  margin-top: 24px;
}

.profile-avatar-dashboard {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

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

.profile-name {
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
  color: var(--color-text-primary);
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-role {
  font-size: 12px;
  color: #666666;
  color: var(--color-text-secondary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: rgba(239, 68, 68, 0.1);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logout-btn svg {
  stroke: #EF4444;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  transform: scale(1.05);
}

/* Content */
.dashboard-content {
  flex: 1 1;
  padding: 32px;
  overflow-y: auto;
}

/* Welcome Section */
.welcome-section {
  margin-bottom: 32px;
}

.welcome-title {
  font-size: 28px;
  font-weight: 700;
  color: #1A1A1A;
  color: var(--color-text-primary);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.welcome-subtitle {
  font-size: 16px;
  color: #666666;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: #FFFFFF;
  background: var(--color-white);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.3s;
  text-decoration: none;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(113, 101, 255, 0.15);
}

.stat-icon {
  width: 56px;
  height: 56px;
  background: rgba(113, 101, 255, 0.1);
  background: var(--color-main-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #7165FF;
  color: var(--color-main);
}

.stat-icon svg {
  color: #7165FF;
  color: var(--color-main);
  stroke: #7165FF;
  stroke: var(--color-main);
}

.stat-content {
  flex: 1 1;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #1A1A1A;
  color: var(--color-text-primary);
  margin: 0 0 4px 0;
}

.stat-label {
  font-size: 14px;
  color: #666666;
  color: var(--color-text-secondary);
  margin: 0 0 8px 0;
}

.stat-change {
  font-size: 13px;
  color: #10B981;
  color: var(--color-success);
  margin: 0;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 32px;
}

/* Section Card */
.section-card {
  background: #FFFFFF;
  background: var(--color-white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #1A1A1A;
  color: var(--color-text-primary);
  margin: 0;
}

.section-link {
  font-size: 14px;
  color: #7165FF;
  color: var(--color-main);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.section-link:hover {
  color: #6D28D9;
  color: var(--color-main-accent);
}

/* Appointments */
.appointments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.appointment-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  background: #F8F9FA;
  background: var(--color-background);
  transition: all 0.3s;
}

.appointment-item:hover {
  background: rgba(113, 101, 255, 0.1);
  background: var(--color-main-light);
}

.appointment-date {
  width: 56px;
  height: 56px;
  background: #7165FF;
  background: var(--color-main);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  color: var(--color-white);
}

.date-day {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.date-month {
  font-size: 12px;
  text-transform: uppercase;
}

.appointment-avatars {
  display: flex;
  gap: 8px;
  align-items: center;
}

.appointment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.appointment-pet-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-left: -18px;
  position: relative;
  z-index: 1;
}

.appointment-info {
  flex: 1 1;
}

.appointment-name {
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
  color: var(--color-text-primary);
  margin: 0 0 4px 0;
}

.appointment-service {
  font-size: 14px;
  color: #666666;
  color: var(--color-text-secondary);
  margin: 0;
}

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

.time {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-confirmed {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  color: var(--color-success);
}

.status-pending {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
  color: var(--color-warning);
}

/* Sidebar Right */
.sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Profile Completion Card */
.profile-completion-card {
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
  background: linear-gradient(135deg, var(--color-main) 0%, var(--color-main-accent) 100%);
  border-radius: 16px;
  padding: 24px;
  color: #FFFFFF;
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(113, 101, 255, 0.25);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.card-subtitle {
  font-size: 14px;
  opacity: 0.9;
  margin: 0 0 24px 0;
}

.progress-section {
  margin-bottom: 20px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.progress-label {
  font-size: 14px;
  opacity: 0.9;
}

.progress-percentage {
  font-size: 14px;
  font-weight: 700;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #FFFFFF;
  background: var(--color-white);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.btn-complete {
  width: 100%;
  padding: 12px;
  background: #FFFFFF;
  background: var(--color-white);
  color: #7165FF;
  color: var(--color-main);
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-complete:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Reviews Card */
.reviews-card {
  background: #FFFFFF;
  background: var(--color-white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.review-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #E5E5E5;
  border-bottom: 1px solid var(--color-border);
}

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

.review-item:first-of-type {
  padding-top: 0;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.review-content {
  flex: 1 1;
}

.review-name {
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
  color: var(--color-text-primary);
  margin: 0 0 4px 0;
}

.review-stars {
  font-size: 12px;
  margin-bottom: 8px;
  display: flex;
  gap: 2px;
}

.review-text {
  font-size: 13px;
  color: #666666;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.empty-state svg {
  stroke: #999999;
  stroke: var(--color-text-light);
  margin-bottom: 16px;
}

.empty-text {
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
  color: var(--color-text-primary);
  margin: 0 0 8px 0;
}

.empty-subtext {
  font-size: 14px;
  color: #666666;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Quick Actions */
.quick-actions {
  margin-bottom: 32px;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-top: 16px;
}

.action-card {
  background: #FFFFFF;
  background: var(--color-white);
  border: none;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(113, 101, 255, 0.15);
}

.action-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.action-icon-blue {
  background: rgba(59, 130, 246, 0.1);
}

.action-icon-green {
  background: rgba(16, 185, 129, 0.1);
}

.action-icon-purple {
  background: rgba(113, 101, 255, 0.1);
  background: var(--color-main-light);
}

.action-icon-orange {
  background: rgba(245, 158, 11, 0.1);
}

.action-label {
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
  color: var(--color-text-primary);
  text-align: center;
}

/* Loading & Error States */
.loading-state,
.error-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  font-size: 18px;
  color: #666666;
  color: var(--color-text-secondary);
}

/* Services List */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #F8F9FA;
  background: var(--color-background);
  border-radius: 12px;
  transition: all 0.3s;
}

.service-item:hover {
  background: rgba(113, 101, 255, 0.1);
  background: var(--color-main-light);
}

.service-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.service-info {
  flex: 1 1;
}

.service-name {
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
  color: var(--color-text-primary);
  margin: 0 0 4px 0;
}

.service-description {
  font-size: 12px;
  color: #666666;
  color: var(--color-text-secondary);
  margin: 0;
}

.service-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.service-status.active {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  color: var(--color-success);
}

.service-status.inactive {
  background: rgba(107, 114, 128, 0.1);
  color: #999999;
  color: var(--color-text-light);
}

/* Info Card */
.info-card {
  background: #FFFFFF;
  background: var(--color-white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

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

.edit-btn {
  background: rgba(113, 101, 255, 0.1);
  background: var(--color-main-light);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.edit-btn svg {
  stroke: #7165FF;
  stroke: var(--color-main);
}

.edit-btn:hover {
  background: #7165FF;
  background: var(--color-main);
}

.edit-btn:hover svg {
  stroke: white;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.info-item-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #F8F9FA;
  background: var(--color-background);
  border-radius: 12px;
  transition: all 0.3s;
}

.info-item-modern:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.info-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon-blue {
  background: rgba(59, 130, 246, 0.1);
}

.info-icon-blue svg {
  stroke: #3b82f6;
}

.info-icon-green {
  background: rgba(16, 185, 129, 0.1);
}

.info-icon-green svg {
  stroke: #10b981;
}

.info-icon-purple {
  background: rgba(113, 101, 255, 0.1);
  background: var(--color-main-light);
}

.info-icon-purple svg {
  stroke: #7165FF;
  stroke: var(--color-main);
}

.info-icon-orange {
  background: rgba(245, 158, 11, 0.1);
}

.info-icon-orange svg {
  stroke: #f59e0b;
}

.info-icon-red {
  background: rgba(239, 68, 68, 0.1);
}

.info-icon-red svg {
  stroke: #ef4444;
}

.info-icon-gray {
  background: rgba(107, 114, 128, 0.1);
}

.info-icon-gray svg {
  stroke: #6b7280;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1;
}

.info-label-modern {
  font-size: 11px;
  font-weight: 700;
  color: #666666;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value-modern {
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
  color: var(--color-text-primary);
  word-break: break-word;
}

/* Old info styles (kept for compatibility) */
.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid #E5E5E5;
  border-bottom: 1px solid var(--color-border);
}

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

.info-label {
  font-size: 12px;
  color: #666666;
  color: var(--color-text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-label svg {
  flex-shrink: 0;
}

.info-value {
  font-size: 14px;
  color: #1A1A1A;
  color: var(--color-text-primary);
}

/* Insurances Card */
.insurances-card {
  background: #FFFFFF;
  background: var(--color-white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.insurance-count {
  background: rgba(113, 101, 255, 0.1);
  background: var(--color-main-light);
  color: #7165FF;
  color: var(--color-main);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
}

.insurances-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-top: 20px;
}

.insurance-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  background: #F8F9FA;
  background: var(--color-background);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
  border: 2px solid transparent;
  position: relative;
}

.insurance-item.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
  max-width: 250px;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}

.insurance-item.has-tooltip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}

.insurance-item.has-tooltip:hover::after,
.insurance-item.has-tooltip:hover::before {
  opacity: 1;
}

.insurance-item:hover {
  background: white;
  border-color: #7165FF;
  border-color: var(--color-main);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(113, 101, 255, 0.15);
}

.insurance-logo-wrapper {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.insurance-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insurance-name {
  font-size: 12px;
  color: #1A1A1A;
  color: var(--color-text-primary);
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

.insurance-additional {
  font-size: 10px;
  color: #666666;
  color: var(--color-text-secondary);
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  padding: 6px 8px;
  background: white;
  border-radius: 6px;
  margin-top: 4px;
  border: 1px solid #E5E5E5;
  border: 1px solid var(--color-border);
}

/* Appointments List */
.appointments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.appointment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #F8F9FA;
  background: var(--color-background);
  border-radius: 12px;
  transition: all 0.3s;
}

.appointment-item:hover {
  background: rgba(113, 101, 255, 0.1);
  background: var(--color-main-light);
  transform: translateX(4px);
}

.appointment-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 12px;
  background: #7165FF;
  background: var(--color-main);
  border-radius: 12px;
  color: white;
}

.date-day {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.date-month {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 4px;
}

.appointment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

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

.appointment-name {
  font-size: 15px;
  font-weight: 600;
  color: #1A1A1A;
  color: var(--color-text-primary);
  margin: 0 0 4px 0;
}

.appointment-service {
  font-size: 13px;
  color: #666666;
  color: var(--color-text-secondary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appointment-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.appointment-time>span:first-child {
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
  color: var(--color-text-primary);
}

.appointment-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.status-confirmed {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  color: var(--color-success);
}

.status-pending {
  background: rgba(251, 191, 36, 0.1);
  color: #F59E0B;
}

.status-done {
  background: rgba(59, 130, 246, 0.1);
  color: #3B82F6;
}

.status-rejected {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
}

/* Photos Section Wide */
.photos-section-wide {
  margin-bottom: 24px;
}

.photos-section-wide .photos-card {
  background: #FFFFFF;
  background: var(--color-white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Photos Card */
.photos-card {
  background: #FFFFFF;
  background: var(--color-white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.photos-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.photos-card .card-title {
  font-size: 22px;
  font-weight: 700;
  color: #1A1A1A;
  color: var(--color-text-primary);
  margin: 0;
}

.photos-card .card-subtitle {
  font-size: 14px;
  color: #666666;
  color: var(--color-text-secondary);
  margin: 6px 0 0 0;
  font-weight: 400;
}

.add-photo-btn-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #7165FF;
  background: var(--color-main);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(113, 101, 255, 0.2);
}

.add-photo-btn-header:hover:not(:disabled) {
  background: #6D28D9;
  background: var(--color-main-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(113, 101, 255, 0.35);
}

.add-photo-btn-header:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.add-photo-btn-header svg {
  width: 18px;
  height: 18px;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 20px;
}

/* Para seção ampla, usar grid com mais colunas */
.photos-section-wide .photos-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.photo-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.photo-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.photo-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.photo-item:hover::after {
  opacity: 1;
}

.photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-item:hover .photo-image {
  transform: scale(1.05);
}

.photo-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #7165FF;
  background: var(--color-main);
  color: white;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(113, 101, 255, 0.4);
}

.delete-photo-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.photo-item:hover .delete-photo-btn {
  opacity: 1;
}

.delete-photo-btn:hover {
  background: #EF4444;
  background: var(--color-error);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.delete-photo-btn svg {
  width: 18px;
  height: 18px;
}

.photo-placeholder {
  aspect-ratio: 4 / 3;
  border: 3px dashed #E5E5E5;
  border: 3px dashed var(--color-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  background: #F8F9FA;
  background: var(--color-background);
}

.photo-placeholder:hover {
  border-color: #7165FF;
  border-color: var(--color-main);
  background: rgba(113, 101, 255, 0.1);
  background: var(--color-main-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(113, 101, 255, 0.15);
}

.photo-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #999999;
  color: var(--color-text-light);
  transition: all 0.3s;
}

.photo-placeholder:hover .photo-placeholder-content {
  color: #7165FF;
  color: var(--color-main);
  transform: scale(1.05);
}

.photo-placeholder-content svg {
  width: 40px;
  height: 40px;
  stroke-width: 2;
}

.photo-placeholder-content span {
  font-size: 14px;
  font-weight: 600;
}

.photos-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.photos-empty-state svg {
  color: #999999;
  color: var(--color-text-light);
  margin-bottom: 20px;
  opacity: 0.5;
}

.photos-empty-state .empty-text {
  font-size: 18px;
  font-weight: 600;
  color: #1A1A1A;
  color: var(--color-text-primary);
  margin: 0 0 8px 0;
}

.photos-empty-state .empty-subtext {
  font-size: 14px;
  color: #666666;
  color: var(--color-text-secondary);
  max-width: 500px;
  line-height: 1.6;
}

.photos-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(113, 101, 255, 0.1);
  background: var(--color-main-light);
  border-radius: 12px;
  font-size: 14px;
  color: #666666;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.photos-info svg {
  color: #7165FF;
  color: var(--color-main);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1200px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .photos-section-wide .photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .dashboard-main {
    flex-direction: column;
    position: relative;
  }

  /* Mostrar botão hamburger em mobile */
  .hamburger-btn {
    display: flex;
  }

  /* Esconder subtitle em telas muito pequenas */
  .panel-subtitle {
    display: none;
  }

  /* Ajustes no header mobile */
  .dashboard-header {
    padding: 16px 20px;
  }

  .header-left {
    gap: 12px;
  }

  .header-right {
    gap: 8px;
  }

  /* Esconder alguns elementos em mobile para economizar espaço */
  .requirements-badge-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .toggle-status-btn {
    padding: 8px 12px;
    font-size: 13px;
    gap: 6px;
  }

  .notification-btn {
    width: 36px;
    height: 36px;
  }

  /* Sidebar mobile */
  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    transform: translateX(-100%);
    z-index: 999;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
  }

  .dashboard-sidebar.open {
    transform: translateX(0);
  }

  /* Mostrar overlay quando menu estiver aberto */
  .sidebar-overlay {
    display: block;
  }

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

  .dashboard-content {
    padding: 16px;
    width: 100%;
  }

  .photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .photos-section-wide .photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .photos-section-wide .photos-card {
    padding: 20px;
  }

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

  .photo-badge {
    padding: 6px 12px;
    font-size: 10px;
  }
}

/* Empty State Styles */
.empty-state-header {
  background: white;
  border-bottom: 1px solid #E5E5E5;
  border-bottom: 1px solid var(--color-border);
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.empty-state-header .header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.empty-state-header .header-right {
  display: flex;
  gap: 12px;
}

.empty-state-profile-btn,
.empty-state-logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.empty-state-profile-btn {
  background: rgba(113, 101, 255, 0.1);
  background: var(--color-main-light);
  color: #7165FF;
  color: var(--color-main);
}

.empty-state-profile-btn:hover {
  background: rgba(113, 101, 255, 0.15);
  transform: translateY(-1px);
}

.empty-state-logout-btn {
  background: #fee;
  color: #c33;
}

.empty-state-logout-btn:hover {
  background: #fdd;
  transform: translateY(-1px);
}

.empty-state-content {
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.empty-state-card {
  background: white;
  border-radius: 24px;
  padding: 60px 48px;
  max-width: 600px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(113, 101, 255, 0.05);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.empty-state-icon {
  width: 150px;
  height: 150px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-logo {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
  animation: logoFloat 3s ease-in-out infinite;
  display: block;
  margin: 0 auto;
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.empty-state-title {
  font-size: 32px;
  font-weight: 700;
  color: #1A1A1A;
  color: var(--color-text-primary);
  margin: 0 0 16px 0;
}

.empty-state-description {
  font-size: 16px;
  color: #666666;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0 0 32px 0;
}

.empty-state-create-btn {
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
  background: linear-gradient(135deg, var(--color-main) 0%, var(--color-main-accent) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(113, 101, 255, 0.3);
}

.empty-state-create-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(113, 101, 255, 0.4);
}

.empty-state-create-btn:active {
  transform: translateY(0);
}

.empty-state-error {
  margin-top: 24px;
  padding: 12px 16px;
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 8px;
  color: #c33;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .empty-state-header {
    padding: 16px 20px;
    flex-direction: column;
    gap: 16px;
  }

  .empty-state-header .header-left {
    flex-direction: column;
    gap: 8px;
  }

  .empty-state-header .header-right {
    width: 100%;
    justify-content: center;
  }

  .empty-state-card {
    padding: 40px 24px;
  }

  .empty-state-title {
    font-size: 24px;
  }

  .empty-state-description {
    font-size: 14px;
  }

  .empty-state-icon {
    width: 160px;
    height: 160px;
  }

  .empty-state-profile-btn,
  .empty-state-logout-btn {
    flex: 1 1;
    justify-content: center;
  }
}

/* ======================================
   SCHEDULES PAGE STYLES
   ====================================== */

/* Page Header for Schedules */
.page-header-section {
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: #1A1A1A;
  color: var(--color-text-primary);
  margin: 0 0 8px 0;
}

.page-subtitle {
  font-size: 16px;
  color: #666666;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Schedules Stats - Using smaller stat cards */
.schedules-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card-small {
  background: #FFFFFF;
  background: var(--color-white);
  padding: 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

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

.stat-icon-small {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-label-small {
  font-size: 13px;
  color: #666666;
  color: var(--color-text-secondary);
  margin: 0 0 4px 0;
  font-weight: 500;
}

.stat-value-small {
  font-size: 24px;
  font-weight: 700;
  color: #1A1A1A;
  color: var(--color-text-primary);
  margin: 0;
}

/* Schedules Filters */
.schedules-filters {
  background: #FFFFFF;
  background: var(--color-white);
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #F8F9FA;
  background: var(--color-background);
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.search-box:focus-within {
  border-color: #7165FF;
  border-color: var(--color-main);
  background: #FFFFFF;
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(113, 101, 255, 0.1);
}

.search-box svg {
  color: #666666;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.search-box input {
  flex: 1 1;
  border: none;
  background: transparent;
  font-size: 15px;
  outline: none;
  color: #1A1A1A;
  color: var(--color-text-primary);
  font-family: inherit;
}

.search-box input::placeholder {
  color: #999999;
  color: var(--color-text-light);
}

.status-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid #E5E5E5;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  background: #FFFFFF;
  background: var(--color-white);
  color: #666666;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: #7165FF;
  border-color: var(--color-main);
  color: #7165FF;
  color: var(--color-main);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: #7165FF;
  background: var(--color-main);
  color: #FFFFFF;
  color: var(--color-white);
  border-color: #7165FF;
  border-color: var(--color-main);
  box-shadow: 0 4px 12px rgba(113, 101, 255, 0.3);
}

/* Schedules List */
.schedules-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
  gap: 20px;
  align-items: start;
}

.schedules-list .empty-state {
  grid-column: 1 / -1;
  min-height: 400px;
}

.schedule-item {
  background: #FFFFFF;
  background: var(--color-white);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  cursor: pointer;
  border: 2px solid transparent;
}

.schedule-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  border-color: rgba(113, 101, 255, 0.1);
  border-color: var(--color-main-light);
}

.schedule-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #F8F9FA;
  border-bottom: 2px solid var(--color-background);
}

/* Shared ref tags (used in Schedules & Consultations) */
.ref-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #666666;
  color: var(--color-text-secondary);
  background: #F8F9FA;
  background: var(--color-background);
  border: 1px solid #E5E5E5;
  border: 1px solid var(--color-border);
  padding: 4px 10px;
  border-radius: 20px;
}

.ref-tag svg {
  flex-shrink: 0;
  stroke: #999999;
  stroke: var(--color-text-light);
}

.schedule-item-refs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.schedule-item-date {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1A1A1A;
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 15px;
}

.schedule-item-date svg {
  color: #7165FF;
  color: var(--color-main);
  flex-shrink: 0;
}

.schedule-status {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.status-confirmed {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  color: var(--color-success);
}

.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  color: var(--color-warning);
}

.status-done {
  background: rgba(107, 114, 128, 0.15);
  color: #999999;
  color: var(--color-text-light);
}

.status-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  color: var(--color-error);
}

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

.schedule-pet-photo {
  width: 90px;
  height: 90px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 3px solid #F8F9FA;
  border: 3px solid var(--color-background);
}

.schedule-pet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.schedule-item-info {
  flex: 1 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 16px;
  gap: 16px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.info-row-full {
  grid-column: 1 / -1;
}

.info-row svg {
  color: #7165FF;
  color: var(--color-main);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-text {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  color: #666666;
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  color: #1A1A1A;
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
}

.info-breed {
  color: #666666;
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 14px;
  font-style: italic;
}

.schedule-item-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: flex-start;
}

.btn-cancel {
  padding: 10px 20px;
  border: 2px solid #EF4444;
  border: 2px solid var(--color-error);
  border-radius: 10px;
  background: transparent;
  color: #EF4444;
  color: var(--color-error);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.btn-cancel:hover {
  background: #EF4444;
  background: var(--color-error);
  color: #FFFFFF;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

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

/* Schedules Header Section */
.schedules-header-section {
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.schedules-title {
  font-size: 28px;
  font-weight: 700;
  color: #1A1A1A;
  color: var(--color-text-primary);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.schedules-subtitle {
  font-size: 16px;
  color: #666666;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

.settings-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #FFFFFF;
  background: var(--color-white);
  border: 2px solid #E5E5E5;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.settings-button:hover {
  border-color: #7165FF;
  border-color: var(--color-main);
  color: #7165FF;
  color: var(--color-main);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(113, 101, 255, 0.15);
}

.settings-button:active {
  transform: translateY(0);
}

.settings-button svg {
  flex-shrink: 0;
}

/* Responsive Schedules */
@media (max-width: 1024px) {
  .schedules-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .schedules-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .page-title,
  .schedules-title {
    font-size: 24px;
  }

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

  .stat-card-small {
    padding: 16px;
  }

  .schedules-filters {
    padding: 16px;
  }

  .status-filters {
    gap: 6px;
  }

  .filter-btn {
    font-size: 13px;
    padding: 8px 14px;
  }

  .schedule-item {
    padding: 16px;
  }

  .schedule-item-content {
    flex-direction: column;
  }

  .schedule-item-info {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .schedule-pet-photo {
    width: 100%;
    height: 180px;
    border-radius: 12px;
  }

  .schedule-item-actions {
    width: 100%;
  }

  .btn-cancel {
    flex: 1 1;
  }
}

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

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

/* Requirements Modal */
.requirements-modal {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
  position: relative;
  padding: 32px;
}

.requirements-modal .close-button {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #f3f4f6;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #374151;
  z-index: 10;
}

.requirements-modal .close-button:hover {
  background: #e5e7eb;
  transform: scale(1.05);
}

.requirements-header {
  text-align: center;
  margin-bottom: 32px;
}

.requirements-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(113, 101, 255, 0.3);
}

.requirements-icon svg {
  stroke: #ffffff;
}

.requirements-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.requirements-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 16px 0;
}

.requirements-progress {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 16px;
}

.requirements-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #7165FF 0%, #6D28D9 100%);
  border-radius: 8px;
  transition: width 0.3s ease;
}

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

.requirement-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  transition: all 0.2s;
}

.requirement-item.completed {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.3);
}

.requirement-item.pending {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.3);
}

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

.requirement-item.completed .requirement-icon {
  background: rgba(16, 185, 129, 0.2);
}

.requirement-item.completed .requirement-icon svg {
  stroke: #10B981;
}

.requirement-item.pending .requirement-icon {
  background: rgba(245, 158, 11, 0.2);
}

.requirement-item.pending .requirement-icon svg {
  stroke: #F59E0B;
}

.requirement-content {
  flex: 1 1;
}

.requirement-name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
}

.requirement-description {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.requirement-action {
  padding: 8px 16px;
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.requirement-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(113, 101, 255, 0.3);
}

.requirements-success {
  margin-top: 20px;
  padding: 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #10B981;
  font-size: 14px;
  font-weight: 600;
}

.requirements-success svg {
  stroke: #10B981;
  flex-shrink: 0;
}

/* Media Query para telas muito pequenas (smartphones) */
@media (max-width: 480px) {
  .dashboard-header {
    padding: 12px 16px;
  }

  .dashboard-logo {
    height: 28px !important;
  }

  .header-left {
    gap: 8px;
  }

  .header-right {
    gap: 6px;
  }

  /* Esconder texto dos botões em telas muito pequenas */
  .toggle-status-btn span {
    display: none;
  }

  .toggle-status-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }

  .requirements-badge-btn span {
    font-size: 12px;
  }

  /* Ajustar largura do sidebar em telas pequenas */
  .dashboard-sidebar {
    width: 260px;
  }

  /* Cards de estatísticas */
  .stat-card {
    padding: 16px;
  }

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

  /* Welcome section */
  .welcome-title {
    font-size: 22px;
  }

  .welcome-subtitle {
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .requirements-modal {
    padding: 24px;
  }

  .requirement-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .requirement-action {
    width: 100%;
  }
}
.modal-overlay-edit {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content-edit {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
  position: relative;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header-edit {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 32px 32px 24px;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 20px 20px 0 0;
}

.modal-title-edit {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px 0;
  letter-spacing: -0.5px;
}

.modal-subtitle-edit {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

.modal-close-btn-edit {
  background: #f3f4f6;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #374151;
  flex-shrink: 0;
}

.modal-close-btn-edit:hover {
  background: #e5e7eb;
  transform: scale(1.05);
}


.modal-form-edit {
  padding: 32px;
}

.form-grid-edit {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
  gap: 20px;
}

.form-group-edit {
  display: flex;
  flex-direction: column;
}

.form-group-edit.full-width {
  grid-column: 1 / -1;
}

.form-label-edit {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.required-mark {
  color: #ef4444;
  font-weight: 700;
}

.form-input-edit,
.form-textarea-edit {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  color: #1f2937;
  transition: all 0.2s;
  font-family: inherit;
}

.form-input-edit:focus,
.form-textarea-edit:focus {
  outline: none;
  border-color: #7165FF;
  box-shadow: 0 0 0 3px rgba(113, 101, 255, 0.1);
}

.form-input-edit.input-error {
  border-color: #ef4444;
}

.form-input-edit.input-error:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input-edit:disabled {
  background-color: #f9fafb;
  cursor: not-allowed;
  opacity: 0.7;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .form-input-edit {
  flex: 1 1;
  padding-right: 48px;
}

.input-icon {
  position: absolute;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.spinner-icon {
  color: #7165FF;
  animation: spin 1s linear infinite;
}

.error-message {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  font-weight: 500;
}

.form-textarea-edit {
  resize: vertical;
  min-height: 100px;
}

.modal-actions-edit {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.btn-cancel-edit,
.btn-save-edit {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-cancel-edit {
  background: #f3f4f6;
  color: #6b7280;
}

.btn-cancel-edit:hover:not(:disabled) {
  background: #e5e7eb;
  color: #374151;
}

.btn-save-edit {
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
  color: white;
}

.btn-save-edit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(113, 101, 255, 0.3);
}

.btn-cancel-edit:disabled,
.btn-save-edit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner-edit {
  animation: spin 1s linear infinite;
}

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

/* Scrollbar personalizada */
.modal-content-edit::-webkit-scrollbar {
  width: 8px;
}

.modal-content-edit::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 10px;
}

.modal-content-edit::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}

.modal-content-edit::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Responsivo */
@media (max-width: 768px) {
  .modal-overlay-edit {
    padding: 0;
  }

  .modal-content-edit {
    max-height: 100vh;
    border-radius: 0;
  }

  .form-grid-edit {
    grid-template-columns: 1fr;
  }

  .modal-header-edit {
    padding: 24px 20px 20px;
  }

  .modal-form-edit {
    padding: 24px 20px;
  }

  .modal-actions-edit {
    flex-direction: column-reverse;
  }

  .btn-cancel-edit,
  .btn-save-edit {
    width: 100%;
    justify-content: center;
  }
}

/* Garantir que os toasts apareçam acima do modal */
:global(.Toaster) {
  z-index: 99999 !important;
}

:global([data-sonner-toaster]) {
  z-index: 99999 !important;
}

.settings-container {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.settings-header {
  margin-bottom: 32px;
}

.settings-title {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.settings-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Tabs */
.settings-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 32px;
}

.tab-button {
  padding: 14px 24px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.tab-button:hover {
  color: #7165FF;
  background: rgba(113, 101, 255, 0.03);
}

.tab-button.active {
  color: #7165FF;
  border-bottom-color: #7165FF;
}

/* Service Alert Badge - Para as abas */
.service-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  /* Estado não selecionado - vermelho claro com texto vermelho */
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  transition: all 0.3s;
}

/* Estado selecionado - fundo vermelho com texto branco */
.service-alert-badge.active {
  background: #EF4444;
  color: #FFFFFF;
}

.settings-service-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  /* Estado não selecionado - vermelho claro com texto vermelho */
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  transition: all 0.3s;
}

.tab-content {
  /* Removida animação para evitar movimento indesejado */
}

.settings-section {
  background: var(--color-white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-header {
  margin-bottom: 28px;
}

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

.section-title-settings {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.section-description {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Grid de Itens (Planos de Saúde) - Layout Horizontal */
.items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 32px;
}

.item-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.item-card-wrapper.has-additional .item-card-horizontal {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 0;
}

.item-card-horizontal {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.item-card-horizontal:hover {
  border-color: #7165FF;
  box-shadow: 0 2px 8px rgba(113, 101, 255, 0.1);
}

.item-card-horizontal.selected {
  border-color: #7165FF;
  background: rgba(113, 101, 255, 0.02);
}

.additional-data-field {
  padding: 16px 20px;
  background: #ffffff;
  border: 2px solid #7165FF;
  border-top: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  animation: slideDown 0.2s ease;
  margin-top: -2px;
}

.additional-data-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #374151;
  background: #f9fafb;
  transition: all 0.2s ease;
}

.additional-data-input:focus {
  outline: none;
  border-color: #7165FF;
  box-shadow: 0 0 0 3px rgba(113, 101, 255, 0.1);
}

.additional-data-input::placeholder {
  color: #9ca3af;
}

.item-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.item-card-horizontal.selected .item-checkbox,
.service-item-horizontal.selected .item-checkbox {
  background: #7165FF;
  border-color: #7165FF;
  color: #ffffff;
}

.item-card-horizontal:hover .item-checkbox {
  border-color: #7165FF;
}

.item-icon-horizontal {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
  padding: 0;
}

.item-icon-horizontal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.service-icon-horizontal {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
  padding: 8px;
}

.service-icon-horizontal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.item-content {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.item-name {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
}

.item-description {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

/* Lista de Serviços - Layout Horizontal */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.service-item-horizontal {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s ease;
  overflow: hidden;
}

.service-item-horizontal:hover {
  border-color: #7165FF;
  box-shadow: 0 2px 8px rgba(113, 101, 255, 0.1);
}

.service-item-horizontal.selected {
  border-color: #7165FF;
  background: rgba(113, 101, 255, 0.02);
}

.service-header-horizontal {
  display: flex;
  align-items: center;
  padding: 20px;
  cursor: pointer;
}

.service-info-horizontal {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1;
}

.service-item-horizontal .item-checkbox {
  flex-shrink: 0;
}

.service-item-horizontal .item-icon-horizontal {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.service-description-area {
  padding: 0 20px 20px 20px;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 200px;
  }
}

.description-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #374151;
  background: #f9fafb;
  resize: vertical;
  min-height: 80px;
  transition: all 0.2s ease;
}

.description-input:focus {
  outline: none;
  border-color: #7165FF;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(113, 101, 255, 0.1);
}

.description-input::placeholder {
  color: #9ca3af;
}

/* Ações da Seção */
.section-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 8px;
}

.btn-save {
   width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(113, 101, 255, 0.3);
}

.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(113, 101, 255, 0.4);
}

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

.btn-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Responsividade */
@media (max-width: 1024px) {
  .items-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .settings-container {
    padding: 24px 16px;
  }

  .settings-title {
    font-size: 24px;
  }

  .settings-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-button {
    padding: 12px 20px;
    font-size: 14px;
    white-space: nowrap;
  }

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

  .item-card-horizontal {
    padding: 16px;
  }

  .item-icon-horizontal {
    width: 44px;
    height: 44px;
  }

  .service-header-horizontal {
    padding: 16px;
  }

  .service-description-area {
    padding: 0 16px 16px 16px;
  }

  .section-actions {
    justify-content: stretch;
  }

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

@media (max-width: 480px) {
  .settings-title {
    font-size: 22px;
  }

  .item-card-horizontal {
    padding: 14px;
    gap: 12px;
  }

  .item-icon-horizontal {
    width: 40px;
    height: 40px;
  }

  .item-name {
    font-size: 14px;
  }

  .item-description {
    font-size: 12px;
  }
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.schedule-settings-modal {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
  position: relative;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.schedule-settings-container {
  /* min-height: 100vh; */
  background: #f9fafb;
  display: flex;
  flex-direction: column;
}

/* Header */
.schedule-settings-header {
  background: #ffffff;
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-radius: 20px 20px 0 0;
}

.close-button {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #f3f4f6;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #374151;
  z-index: 10;
}

.close-button:hover {
  background: #e5e7eb;
  transform: scale(1.05);
}

.header-content {
  flex: 1 1;
}

.header-title {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px 0;
  letter-spacing: -0.5px;
}

.header-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  font-weight: 400;
}

/* Content */
.schedule-settings-content {
  flex: 1 1;
  max-height: calc(90vh - 200px);
  overflow-y: auto;
  padding: 24px;
  padding-bottom: 0;
  background-color: #F8F9FA;
}

/* Settings Section */
.schedule-settings-section {
  background: var(--color-white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
}

.section-title-schedule-settings {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 16px 0;
}

.schedule-section-description {
  font-size: 14px;
  color: #6b7280;
  margin: -8px 0 20px 0;
}

/* Toggle Switch */
.section-header-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toggle-switch {
  position: relative;
  width: 56px;
  height: 32px;
  background: #d1d5db;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}

.toggle-switch.active {
  background: #7165FF;
}

.toggle-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch.active .toggle-slider {
  transform: translateX(24px);
}

.toggle-switch.disabled {
  background: #d1d5db;
  cursor: not-allowed;
  opacity: 0.5;
}

.plan-warning {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #D97706;
  font-size: 13px;
  font-weight: 500;
}

.plan-warning svg {
  flex-shrink: 0;
}

/* Week Days Grid */
.week-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-gap: 8px;
  gap: 8px;
}

.day-button {
  aspect-ratio: 1;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-button:hover {
  border-color: #7165FF;
  transform: scale(1.05);
}

.day-button.active {
  background: #7165FF;
  border-color: #7165FF;
  color: #ffffff;
}

.day-button:active {
  transform: scale(0.95);
}

/* Time Range */
.time-range-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.time-input-group {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.time-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 18px;
  font-weight: 600;
  color: #7165FF;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s;
  font-family: inherit;
}

.time-input:focus {
  outline: none;
  border-color: #7165FF;
  background: #ffffff;
}

.time-arrow {
  color: #d1d5db;
  margin-top: 24px;
}

/* Interval Selector */
.interval-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 12px;
  gap: 12px;
}

.interval-button {
  padding: 16px;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.interval-button:hover {
  border-color: #7165FF;
  transform: translateY(-2px);
}

.interval-button.active {
  background: #7165FF;
  border-color: #7165FF;
  color: #ffffff;
}

.interval-button:active {
  transform: translateY(0);
}

/* Summary Section */
.summary-section {
  background: none;
  padding: 0;
  margin-bottom: 20px;
}

.summary-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  position: relative;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(113, 101, 255, 0.07);
}

.summary-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(40px);
}

.summary-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.summary-content {
  flex: 1 1;
  position: relative;
  z-index: 1;
}

.summary-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 16px 0;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-item {
  background: #ffffff;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 20px 20px solid rgba(255, 255, 255, 0.2);
}

.summary-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.summary-value {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

/* Força texto escuro no resumo das configurações */
.summary-section .summary-title,
.summary-section .summary-label,
.summary-section .summary-value,
.summary-section .summary-item {
  color: #222 !important;
}

.summary-section .summary-card {
  background: #fff !important;
}

/* Novo resumo limpo */
.summary-card-clean {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(113,101,255,0.07);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  margin: 0 0 8px 0;
  border: 1px solid #ececec;
}
.summary-icon-clean {
  width: 48px;
  height: 48px;
  background: #f4f3ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.summary-content-clean {
  flex: 1 1;
}
.summary-title-clean {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin: 0 0 16px 0;
}
.summary-items-clean {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.summary-item-clean {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #f0f0f0;
}
.summary-label-clean {
  color: #555;
  font-weight: 500;
}
.summary-value-clean {
  color: #222;
  font-weight: 600;
}
@media (max-width: 600px) {
  .summary-card-clean {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .summary-icon-clean {
    width: 40px;
    height: 40px;
  }
  .summary-title-clean {
    font-size: 16px;
  }
  .summary-item-clean {
    font-size: 14px;
    padding: 10px 12px;
  }
}

/* Summary rows consistent with other modal sections */
.summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
}

.summary-label-small {
  color: #6b7280;
  font-weight: 500;
}

.summary-value-small {
  color: #111827;
  font-weight: 600;
}

/* Footer */
.schedule-settings-footer {
  background: #ffffff;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 20px 20px;
  position: static;
  left: auto;
  left: initial;
  right: auto;
  right: initial;
  bottom: auto;
  bottom: initial;
  z-index: auto;
  z-index: initial;
}

.save-button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(113, 101, 255, 0.3);
}

.save-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(113, 101, 255, 0.4);
}

.save-button:active {
  transform: translateY(0);
}

.save-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Loading State */
.schedule-settings-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 16px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #7165FF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.schedule-settings-loading p {
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .schedule-settings-header {
    padding: 16px;
  }

  .header-title {
    font-size: 24px;
  }

  .schedule-settings-content {
    padding: 16px;
  }

  .time-range-container {
    flex-direction: column;
    gap: 12px;
  }

  .time-arrow {
    transform: rotate(90deg);
    margin: 0;
  }

  .interval-selector {
    grid-template-columns: repeat(2, 1fr);
  }

  .summary-card {
    flex-direction: column;
    gap: 16px;
  }
}

.notifications-container {
    flex: 1 1;
    padding: 32px;
    overflow-y: auto;
}

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

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

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

.notifications-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notifications-title {
    font-size: 28px;
    font-weight: 700;
    color: #1A1A1A;
    color: var(--color-text-primary, #1A1A1A);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.notifications-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #7165FF;
    background: var(--color-main, #7165FF);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 16px;
    white-space: nowrap;
    margin-bottom: 2px;
}

.mark-all-read-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: #7165FF;
    color: var(--color-main, #7165FF);
    border: 2px solid #7165FF;
    border: 2px solid var(--color-main, #7165FF);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.mark-all-read-btn:hover {
    background: rgba(113, 101, 255, 0.1);
    background: var(--color-main-light, rgba(113, 101, 255, 0.1));
    border-color: #6D28D9;
    border-color: var(--color-main-accent, #6D28D9);
    color: #6D28D9;
    color: var(--color-main-accent, #6D28D9);
}

.mark-all-read-btn:active {
    transform: scale(0.98);
}

.mark-all-read-btn svg {
    flex-shrink: 0;
}

.notifications-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666666;
    color: var(--color-text-secondary, #666666);
}

.notifications-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #E5E5E5;
    border: 4px solid var(--color-border, #E5E5E5);
    border-top-color: #7165FF;
    border-top-color: var(--color-main, #7165FF);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

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

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

.notifications-empty {
    text-align: center;
    padding: 80px 20px;
    color: #999999;
    color: var(--color-text-light, #999999);
}

.notifications-empty svg {
    margin: 0 auto 24px;
    opacity: 0.5;
}

.notifications-empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: #666666;
    color: var(--color-text-secondary, #666666);
    margin: 0 0 8px 0;
}

.notifications-empty p {
    font-size: 14px;
    margin: 0;
}

.notification-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #FFFFFF;
    background: var(--color-white, #FFFFFF);
    border: 1px solid #E5E5E5;
    border: 1px solid var(--color-border, #E5E5E5);
    border-radius: 16px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.notification-item:hover {
    border-color: rgba(113, 101, 255, 0.3);
    border-color: var(--color-main-light, rgba(113, 101, 255, 0.3));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.notification-item.unread {
    background: rgba(113, 101, 255, 0.05);
    background: var(--color-main-light, rgba(113, 101, 255, 0.05));
    border-color: #7165FF;
    border-color: var(--color-main, #7165FF);
    border-width: 2px;
    padding: 19px;
}

.notification-item.unread:hover {
    border-color: #6D28D9;
    border-color: var(--color-main-accent, #6D28D9);
    box-shadow: 0 4px 16px rgba(113, 101, 255, 0.15);
}

.notification-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(113, 101, 255, 0.1);
    background: var(--color-main-light, rgba(113, 101, 255, 0.1));
    border-radius: 10px;
    color: #7165FF;
    color: var(--color-main, #7165FF);
}

.notification-item.unread .notification-icon {
    background: #7165FF;
    background: var(--color-main, #7165FF);
    color: white;
}

.notification-content {
    flex: 1 1;
    min-width: 0;
}

.notification-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.notification-title {
    font-size: 15px;
    font-weight: 600;
    color: #1A1A1A;
    color: var(--color-text-primary, #1A1A1A);
    margin: 0;
    flex: 1 1;
}

.unread-indicator {
    width: 8px;
    height: 8px;
    background: #7165FF;
    background: var(--color-main, #7165FF);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.notification-message {
    font-size: 14px;
    color: #666666;
    color: var(--color-text-secondary, #666666);
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.notification-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.notification-time {
    font-size: 13px;
    color: #999999;
    color: var(--color-text-light, #999999);
}

.mark-read-btn {
    padding: 8px 16px;
    background: #7165FF;
    background: var(--color-main, #7165FF);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(113, 101, 255, 0.2);
}

.mark-read-btn:hover {
    background: #6D28D9;
    background: var(--color-main-accent, #6D28D9);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(113, 101, 255, 0.3);
}

.mark-read-btn:active {
    transform: scale(0.98);
}

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

@media (max-width: 768px) {
    .notifications-container {
        padding: 20px 16px;
    }

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

    .notifications-title {
        font-size: 24px;
    }

    .mark-all-read-btn {
        width: 100%;
    }

    .notification-item {
        padding: 16px;
    }

    .notification-icon {
        width: 40px;
        height: 40px;
    }

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

    .notification-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .mark-read-btn {
        width: 100%;
    }
}
/* =====================
   Consultation Cards
   ===================== */

.consultation-card {
  background: var(--color-white);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  margin-bottom: 12px;
}

.consultation-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* Card Header */
.consultation-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  gap: 16px;
  flex-wrap: wrap;
}

.consultation-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.consultation-id-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.consultation-id-badge svg {
  stroke: var(--color-main);
  flex-shrink: 0;
}

.consultation-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.consultation-date svg {
  flex-shrink: 0;
  stroke: var(--color-text-light);
}

/* Header right */
.consultation-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Ref tags (Pet #X, Agend. #Y) — base styles live in Dashboard.css */
.consultation-refs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Return badge */
.return-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.return-badge.priority-normal {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.12);
}

.return-badge.priority-urgent {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.12);
}

.return-badge.priority-emergency {
  color: #DC2626;
  background: rgba(220, 38, 38, 0.15);
}

/* Summary line */
.consultation-summary {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0 20px 16px 20px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  border-top: 1px solid var(--color-background);
  padding-top: 12px;
}

.consultation-summary svg {
  flex-shrink: 0;
  margin-top: 1px;
  stroke: var(--color-text-light);
}

/* =====================
   Expanded Details
   ===================== */

.consultation-details {
  border-top: 1px solid var(--color-border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fafafa;
}

.detail-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.detail-section-title svg {
  flex-shrink: 0;
  stroke: var(--color-main);
}

.detail-text {
  font-size: 14px;
  color: var(--color-text-primary);
  line-height: 1.7;
  margin: 0;
  white-space: pre-wrap;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 16px;
}

/* =====================
   Vitals Grid
   ===================== */

.vitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.vital-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 14px;
}

.vital-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.vital-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
}

/* Condition colors */
.vital-condition.condition-poor {
  color: #EF4444;
}

.vital-condition.condition-fair {
  color: #F59E0B;
}

.vital-condition.condition-good {
  color: #10B981;
}

.vital-condition.condition-excellent {
  color: #059669;
}

/* =====================
   Exam Tags
   ===================== */

.exams-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exam-tag {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-main);
  background: var(--color-main-light);
  border: 1px solid rgba(113, 101, 255, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
}

/* =====================
   Return Info
   ===================== */

.return-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.return-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 140px;
}

.return-item-full {
  flex: 1 1 100%;
}

.return-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.return-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.return-priority-text.priority-normal {
  color: #F59E0B;
}

.return-priority-text.priority-urgent {
  color: #EF4444;
}

.return-priority-text.priority-emergency {
  color: #DC2626;
}

/* =====================
   Expanded card state
   ===================== */

.consultation-card.expanded {
  box-shadow: 0 4px 24px rgba(113, 101, 255, 0.1);
  border-color: rgba(113, 101, 255, 0.25);
}

.expand-icon {
  stroke: var(--color-text-light);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.expand-icon.expanded {
  transform: rotate(180deg);
}

/* =====================
   Indicator badges
   ===================== */

.consultation-indicators {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.indicator-badge svg {
  flex-shrink: 0;
}

.badge-draft {
  color: #6B7280;
  background: rgba(107, 114, 128, 0.1);
}

.badge-vitals {
  color: #3B82F6;
  background: rgba(59, 130, 246, 0.1);
}

.badge-exams {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.1);
}

.badge-diagnosis {
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
}

/* =====================
   Edit icon button
   ===================== */

.edit-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.edit-btn-icon:hover {
  background: var(--color-main-light);
  border-color: rgba(113, 101, 255, 0.3);
  color: var(--color-main);
}

/* =====================
   Refs footer (inside expanded)
   ===================== */

.consultation-refs-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

/* Internal notes */
.detail-text.detail-text-internal {
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.25);
  color: #92400e;
}

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

@media (max-width: 768px) {
  .consultation-card-header {
    padding: 14px 16px;
    gap: 12px;
  }

  .consultation-details {
    padding: 16px;
  }

  .vitals-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .consultation-meta {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .consultation-header-right {
    gap: 8px;
  }

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

  .consultation-summary {
    padding: 10px 16px 14px;
  }
}

.login-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 40px 20px;
}

@media (max-width: 768px) {
  .login-container {
    padding: 20px;
    align-items: flex-start;
  }
}

.login-container::-webkit-scrollbar {
  width: 8px;
}

.login-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.login-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.login-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.login-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(113, 101, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(109, 40, 217, 0.3) 0%, transparent 50%);
  animation: backgroundPulse 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes backgroundPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.login-card {
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 48px 40px;
  width: 100%;
  max-width: 520px;
  margin: auto;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(113, 101, 255, 0.1);
  animation: slideIn 0.5s ease-out;
  z-index: 1;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.login-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.logo-wrapper {
  width: 200px;
  height: auto;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(113, 101, 255, 0.2));
  animation: logoFloat 3s ease-in-out infinite;
}

.logo-svg path {
  fill: #7165FF;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.login-header p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.input-group input {
  height: 52px;
  padding: 0 16px;
  font-size: 15px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
  background: white;
}

.input-group input:focus {
  border-color: #7165FF;
  box-shadow: 0 0 0 4px rgba(113, 101, 255, 0.1);
}

.input-group input:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.input-group input::placeholder {
  color: #999;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: color 0.3s ease;
}

.password-toggle:hover:not(:disabled) {
  color: #7165FF;
}

.password-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.password-toggle svg {
  display: block;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 8px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1 1;
  border-bottom: 1px solid #e5e5e5;
}

.divider span {
  padding: 0 16px;
  color: #999;
  font-size: 14px;
  font-weight: 500;
}

.google-button {
  height: 52px;
  background: white;
  color: #333;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.google-button:hover:not(:disabled) {
  border-color: #d0d0d0;
  background: #fafafa;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.google-button:active:not(:disabled) {
  transform: translateY(0);
}

.google-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.google-icon {
  width: 20px;
  height: 20px;
}

.toggle-mode-link {
  background: none;
  border: none;
  color: #7165FF;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px;
  margin-top: 8px;
  transition: color 0.3s ease;
}

.toggle-mode-link:hover:not(:disabled) {
  color: #6D28D9;
  text-decoration: underline;
}

.toggle-mode-link:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.error-message {
  padding: 12px 16px;
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 8px;
  color: #c33;
  font-size: 14px;
  text-align: center;
}

.login-button {
  height: 52px;
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(113, 101, 255, 0.3);
}

.login-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(113, 101, 255, 0.4);
}

.login-button:active:not(:disabled) {
  transform: translateY(0);
}

.login-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.login-footer {
  text-align: center;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.forgot-link {
  font-size: 14px;
  color: #7165FF;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: #6D28D9;
  text-decoration: underline;
}

/* Responsividade */
@media (max-width: 768px) {
  .login-card {
    margin: 0;
    padding: 32px 24px;
    max-width: 100%;
  }

  .login-title {
    font-size: 24px;
  }

  .login-subtitle {
    font-size: 13px;
  }

  .logo-wrapper {
    margin-bottom: 24px;
  }
}

.forgot-password-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 40px 20px;
}

@media (max-width: 768px) {
  .forgot-password-container {
    padding: 20px;
    align-items: flex-start;
  }
}

.forgot-password-container::-webkit-scrollbar {
  width: 8px;
}

.forgot-password-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.forgot-password-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.forgot-password-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.forgot-password-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(113, 101, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(109, 40, 217, 0.3) 0%, transparent 50%);
  animation: backgroundPulse 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes backgroundPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.forgot-password-card {
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 48px 40px;
  width: 100%;
  max-width: 520px;
  margin: auto;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(113, 101, 255, 0.1);
  animation: slideIn 0.5s ease-out;
  z-index: 1;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.back-button {
  position: absolute;
  top: 24px;
  left: 24px;
  background: #f3f4f6;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #374151;
  z-index: 10;
}

.back-button:hover {
  background: #e5e7eb;
  transform: scale(1.05);
}

.forgot-password-header {
  text-align: center;
  margin-bottom: 32px;
  margin-top: 20px;
}

.forgot-password-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.forgot-password-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.logo-wrapper {
  width: 200px;
  height: auto;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(113, 101, 255, 0.2));
  animation: logoFloat 3s ease-in-out infinite;
}

.logo-svg path {
  fill: #7165FF;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Step Indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding: 0 20px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e5e5;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(113, 101, 255, 0.3);
}

.step.completed .step-number {
  background: #10b981;
  color: white;
}

.step-label {
  font-size: 12px;
  color: #999;
  font-weight: 500;
  transition: color 0.3s ease;
}

.step.active .step-label {
  color: #7165FF;
  font-weight: 600;
}

.step.completed .step-label {
  color: #10b981;
}

.step-line {
  flex: 1 1;
  height: 2px;
  background: #e5e5e5;
  margin: 0 16px;
  margin-bottom: 28px;
  transition: background 0.3s ease;
}

/* Form */
.forgot-password-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.input-group input {
  height: 52px;
  padding: 0 16px;
  font-size: 15px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
  background: white;
}

.input-group input:focus {
  border-color: #7165FF;
  box-shadow: 0 0 0 4px rgba(113, 101, 255, 0.1);
}

.input-group input:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.input-group input::placeholder {
  color: #999;
}

.input-hint {
  font-size: 12px;
  color: #666;
  margin: -4px 0 0 0;
  line-height: 1.4;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: color 0.3s ease;
}

.password-toggle:hover:not(:disabled) {
  color: #7165FF;
}

.password-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.password-toggle svg {
  display: block;
}

.error-message {
  padding: 12px 16px;
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 8px;
  color: #c33;
  font-size: 14px;
  text-align: center;
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.submit-button {
  height: 52px;
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(113, 101, 255, 0.3);
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(113, 101, 255, 0.4);
}

.submit-button:active:not(:disabled) {
  transform: translateY(0);
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.resend-button {
  background: none;
  border: none;
  color: #7165FF;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 12px;
  margin-top: -8px;
  transition: color 0.3s ease;
  text-align: center;
}

.resend-button:hover:not(:disabled) {
  color: #6D28D9;
  text-decoration: underline;
}

.resend-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Responsividade */
@media (max-width: 768px) {
  .forgot-password-card {
    margin: 0;
    padding: 32px 24px;
    max-width: 100%;
  }

  .forgot-password-title {
    font-size: 24px;
  }

  .forgot-password-subtitle {
    font-size: 13px;
  }

  .logo-wrapper {
    margin-bottom: 24px;
  }

  .back-button {
    top: 16px;
    left: 16px;
    font-size: 13px;
  }

  .step-indicator {
    padding: 0 10px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .step-label {
    font-size: 11px;
  }

  .step-line {
    margin: 0 8px;
    margin-bottom: 26px;
  }
}

@media (max-width: 480px) {
  .step-label {
    display: none;
  }

  .step-line {
    margin-bottom: 0;
  }
}

.ev-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 40px 20px;
}

@media (max-width: 768px) {
  .ev-container {
    padding: 20px;
    align-items: flex-start;
  }
}

.ev-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(113, 101, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(109, 40, 217, 0.3) 0%, transparent 50%);
  animation: evBackgroundPulse 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes evBackgroundPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.ev-card {
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 48px 40px;
  width: 100%;
  max-width: 480px;
  margin: auto;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(113, 101, 255, 0.1);
  animation: evSlideIn 0.5s ease-out;
  z-index: 1;
}

@keyframes evSlideIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .ev-card {
    padding: 32px 24px;
  }
}

/* Header */
.ev-header {
  text-align: center;
  margin-bottom: 40px;
}

.ev-logo-wrapper {
  width: 200px;
  height: auto;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ev-logo-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(113, 101, 255, 0.2));
  animation: evLogoFloat 3s ease-in-out infinite;
}

.ev-logo-svg path {
  fill: #7165FF;
}

@keyframes evLogoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.ev-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

.ev-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.ev-subtitle strong {
  color: #333;
  word-break: break-all;
}

/* Form */
.ev-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ev-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ev-input-group label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.ev-code-input {
  height: 64px;
  padding: 0 16px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 12px;
  text-align: center;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
  background: white;
  color: #1a1a1a;
  font-family: 'Courier New', monospace;
}

.ev-code-input:focus {
  border-color: #7165FF;
  box-shadow: 0 0 0 4px rgba(113, 101, 255, 0.1);
}

.ev-code-input:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.ev-code-input::placeholder {
  color: #ccc;
  letter-spacing: 8px;
}

/* Error */
.ev-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}

/* Button */
.ev-button {
  height: 52px;
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ev-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(113, 101, 255, 0.4);
}

.ev-button:active:not(:disabled) {
  transform: translateY(0);
}

.ev-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ev-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: evSpin 0.7s linear infinite;
}

@keyframes evSpin {
  to { transform: rotate(360deg); }
}

/* Footer */
.ev-footer {
  margin-top: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ev-resend-text {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.ev-resend-button {
  background: none;
  border: none;
  color: #7165FF;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.ev-resend-button:hover:not(:disabled) {
  color: #6D28D9;
  background: rgba(113, 101, 255, 0.08);
}

.ev-resend-button:disabled {
  color: #999;
  cursor: not-allowed;
}

/* Profile Container */
.profile-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  background: #F8F9FA;
  background: var(--color-background, #F8F9FA);
  padding: 0;
  z-index: 1000;
  overflow-y: auto;
}

/* Header */
.profile-header {
  background: white;
  border-bottom: 1px solid #E5E5E5;
  border-bottom: 1px solid var(--color-border, #E5E5E5);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.profile-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1A1A1A;
  color: var(--color-text-primary, #1A1A1A);
  margin: 0;
  flex: 1 1;
  text-align: center;
}

.profile-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #666666;
  color: var(--color-text-secondary, #666666);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

.profile-back-btn:hover {
  background: rgba(113, 101, 255, 0.1);
  background: var(--color-main-light, rgba(113, 101, 255, 0.1));
  color: #7165FF;
  color: var(--color-main, #7165FF);
}

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

.profile-edit-btn,
.profile-save-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #7165FF;
  background: var(--color-main, #7165FF);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(113, 101, 255, 0.2);
}

.profile-edit-btn:hover,
.profile-save-btn:hover {
  background: #6D28D9;
  background: var(--color-main-accent, #6D28D9);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(113, 101, 255, 0.3);
}

.profile-cancel-btn {
  background: transparent;
  color: #666666;
  color: var(--color-text-secondary, #666666);
  border: 1px solid #E5E5E5;
  border: 1px solid var(--color-border, #E5E5E5);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-cancel-btn:hover {
  background: #F8F9FA;
  background: var(--color-background, #F8F9FA);
  border-color: #666666;
  border-color: var(--color-text-secondary, #666666);
}

/* Content */
.profile-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px;
}

/* Cards */
.profile-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.profile-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Avatar Section */
.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 32px;
}

.profile-avatar-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 24px rgba(113, 101, 255, 0.15);
  transition: all 0.3s;
}

.profile-avatar:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(113, 101, 255, 0.2);
}

.profile-avatar.uploading {
  opacity: 0.6;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.profile-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
  background: linear-gradient(135deg, var(--color-main, #7165FF) 0%, var(--color-main-accent, #6D28D9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 110px;
  font-weight: 700;
  color: white;
}

.profile-avatar-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-change-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #7165FF;
  color: var(--color-main, #7165FF);
  border: 2px solid #7165FF;
  border: 2px solid var(--color-main, #7165FF);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-avatar-change-btn:hover:not(:disabled) {
  background: #7165FF;
  background: var(--color-main, #7165FF);
  color: white;
}

.profile-avatar-change-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.profile-avatar-info {
  flex: 1 1;
}

.profile-avatar-info h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1A1A1A;
  color: var(--color-text-primary, #1A1A1A);
  margin: 0 0 8px 0;
}

.profile-email {
  font-size: 15px;
  color: #666666;
  color: var(--color-text-secondary, #666666);
  margin: 0 0 16px 0;
}

.profile-specialty-badge {
  display: inline-block;
  background: rgba(113, 101, 255, 0.1);
  background: var(--color-main-light, rgba(113, 101, 255, 0.1));
  color: #7165FF;
  color: var(--color-main, #7165FF);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* Section Title */
.profile-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #1A1A1A;
  color: var(--color-text-primary, #1A1A1A);
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 2px solid #F8F9FA;
  border-bottom: 2px solid var(--color-background, #F8F9FA);
}

.profile-section-title svg {
  color: #7165FF;
  color: var(--color-main, #7165FF);
}

/* Form */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  gap: 20px;
}

.profile-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
  color: var(--color-text-primary, #1A1A1A);
}

.profile-form-group input,
.profile-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E5E5E5;
  border: 2px solid var(--color-border, #E5E5E5);
  border-radius: 10px;
  font-size: 15px;
  color: #1A1A1A;
  color: var(--color-text-primary, #1A1A1A);
  background: white;
  transition: all 0.2s;
  font-family: inherit;
}

.profile-form-group input:focus,
.profile-form-group textarea:focus {
  outline: none;
  border-color: #7165FF;
  border-color: var(--color-main, #7165FF);
  box-shadow: 0 0 0 4px rgba(113, 101, 255, 0.1);
  box-shadow: 0 0 0 4px var(--color-main-light, rgba(113, 101, 255, 0.1));
}

.profile-form-group input:disabled,
.profile-form-group textarea:disabled {
  background: #F8F9FA;
  background: var(--color-background, #F8F9FA);
  color: #666666;
  color: var(--color-text-secondary, #666666);
  cursor: not-allowed;
}

.profile-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.profile-form-hint {
  font-size: 13px;
  color: #999999;
  color: var(--color-text-light, #999999);
  margin-top: -4px;
}

/* Security Section */
.profile-security-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-security-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #F8F9FA;
  background: var(--color-background, #F8F9FA);
  border-radius: 12px;
  transition: all 0.2s;
}

.profile-security-item:hover {
  background: #f0f0f0;
}

.profile-security-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1A1A1A;
  color: var(--color-text-primary, #1A1A1A);
  margin: 0 0 4px 0;
}

.profile-security-info p {
  font-size: 13px;
  color: #666666;
  color: var(--color-text-secondary, #666666);
  margin: 0;
}

.profile-secondary-btn {
  background: white;
  color: #7165FF;
  color: var(--color-main, #7165FF);
  border: 2px solid #7165FF;
  border: 2px solid var(--color-main, #7165FF);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-secondary-btn:hover:not(:disabled) {
  background: #7165FF;
  background: var(--color-main, #7165FF);
  color: white;
  transform: translateY(-1px);
}

.profile-secondary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Support Section */
.profile-support-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-support-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #F8F9FA;
  background: var(--color-background, #F8F9FA);
  border-radius: 12px;
  transition: all 0.2s;
}

.profile-support-item:hover {
  background: #f0f0f0;
}

.profile-support-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1A1A1A;
  color: var(--color-text-primary, #1A1A1A);
  margin: 0 0 4px 0;
}

.profile-support-info p {
  font-size: 13px;
  color: #666666;
  color: var(--color-text-secondary, #666666);
  margin: 0;
}

.profile-support-btn {
  background: transparent;
  color: #7165FF;
  color: var(--color-main, #7165FF);
  border: 2px solid #7165FF;
  border: 2px solid var(--color-main, #7165FF);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-support-btn:hover:not(:disabled) {
  background: #7165FF;
  background: var(--color-main, #7165FF);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(113, 101, 255, 0.3);
}

.profile-support-btn:active:not(:disabled) {
  transform: translateY(0);
}

.profile-support-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Danger Zone */
.profile-danger-zone {
  border-color: rgba(239, 68, 68, 0.2);
}

.profile-danger-title {
  color: #EF4444;
  color: var(--color-error, #EF4444);
  border-bottom-color: rgba(239, 68, 68, 0.1);
}

.profile-danger-title svg {
  color: #EF4444;
  color: var(--color-error, #EF4444);
}

.profile-danger-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-danger-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.1);
  border-radius: 12px;
}

.profile-danger-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1A1A1A;
  color: var(--color-text-primary, #1A1A1A);
  margin: 0 0 4px 0;
}

.profile-danger-item p {
  font-size: 13px;
  color: #666666;
  color: var(--color-text-secondary, #666666);
  margin: 0;
}

.profile-logout-btn {
  background: transparent;
  color: #EF4444;
  color: var(--color-error, #EF4444);
  border: 2px solid #EF4444;
  border: 2px solid var(--color-error, #EF4444);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-logout-btn:hover:not(:disabled) {
  background: #EF4444;
  background: var(--color-error, #EF4444);
  color: white;
}

.profile-logout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.profile-danger-btn {
  background: transparent;
  color: #EF4444;
  color: var(--color-error, #EF4444);
  border: 2px solid #EF4444;
  border: 2px solid var(--color-error, #EF4444);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.profile-danger-btn:hover:not(:disabled) {
  background: #EF4444;
  background: var(--color-error, #EF4444);
  color: white;
}

.profile-danger-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading */
.profile-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 16px;
}

.profile-loading p {
  font-size: 15px;
  color: #666666;
  color: var(--color-text-secondary, #666666);
}

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(113, 101, 255, 0.1);
  border: 4px solid var(--color-main-light, rgba(113, 101, 255, 0.1));
  border-top-color: #7165FF;
  border-top-color: var(--color-main, #7165FF);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
  .profile-header {
    padding: 16px 20px;
  }

  .profile-header h1 {
    font-size: 20px;
  }

  .profile-content {
    padding: 20px 16px;
  }

  .profile-card {
    padding: 24px 20px;
  }

  .profile-avatar-section {
    flex-direction: column;
    text-align: center;
  }

  .profile-avatar {
    width: 120px;
    height: 120px;
  }

  .profile-avatar-placeholder {
    font-size: 48px;
  }

  .profile-form-row {
    grid-template-columns: 1fr;
  }

  .profile-security-item,
  .profile-danger-item {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .profile-secondary-btn,
  .profile-danger-btn {
    width: 100%;
  }

  .profile-header-actions {
    gap: 8px;
  }

  .profile-edit-btn,
  .profile-save-btn,
  .profile-cancel-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .profile-back-btn span {
    display: none;
  }
  
  .profile-edit-btn span,
  .profile-save-btn span {
    display: none;
  }
}

.checkout-success-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.success-card {
  background: white;
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon {
  margin-bottom: 24px;
  animation: scaleIn 0.5s ease-out 0.2s both;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-card h1 {
  font-size: 2rem;
  color: #1f2937;
  margin-bottom: 16px;
  font-weight: 700;
}

.success-card p {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 24px;
  line-height: 1.6;
}

.session-info {
  background: #f3f4f6;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.session-info small {
  color: #6b7280;
  font-size: 0.875rem;
  word-break: break-all;
}

.redirect-message {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 24px;
}

.back-button-success {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.back-button-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

@media (max-width: 640px) {
  .success-card {
    padding: 32px 24px;
  }

  .success-card h1 {
    font-size: 1.5rem;
  }

  .success-card p {
    font-size: 1rem;
  }
}

.reviews-container {
  min-height: 100vh;
  background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 100%);
}

/* Header */
.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-left .dashboard-logo {
  width: 40px;
  height: 40px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 4px 0 0 0;
}

.panel-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #7165FF;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.back-btn:hover {
  background: #6D28D9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(113, 101, 255, 0.3);
}

.back-btn svg {
  transition: transform 0.2s;
}

.back-btn:hover svg {
  transform: translateX(-2px);
}

/* Main Content */
.reviews-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* Overview Card */
.reviews-overview {
  margin-bottom: 48px;
}

.overview-card {
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
  border-radius: 20px;
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 32px;
  box-shadow: 0 10px 40px rgba(113, 101, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.overview-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(40px);
}

.overview-card::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  filter: blur(60px);
}

.overview-icon {
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

.overview-content {
  flex: 1 1;
  position: relative;
  z-index: 1;
}

.overview-title {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 16px 0;
  letter-spacing: -0.3px;
}

.overview-score {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.score-value {
  font-size: 56px;
  font-weight: 700;
  color: #ffffff;
  line-height: 0.9;
  letter-spacing: -2px;
}

.score-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 6px;
}

.overview-total {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-weight: 500;
}

/* Reviews Content */
.reviews-content {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.reviews-count {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  padding: 6px 12px;
  border-radius: 20px;
}

/* Empty State */
.empty-reviews {
  text-align: center;
  padding: 80px 24px;
  color: #6b7280;
}

.empty-reviews svg {
  margin: 0 auto 24px;
  opacity: 0.3;
}

.empty-reviews h3 {
  font-size: 20px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px 0;
}

.empty-reviews p {
  font-size: 15px;
  color: #6b7280;
  margin: 0;
}

/* Reviews List */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s;
}

.review-card:hover {
  border-color: #7165FF;
  box-shadow: 0 4px 12px rgba(113, 101, 255, 0.1);
  transform: translateY(-2px);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.review-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
}

.review-user-info {
  flex: 1 1;
}

.review-user-name {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.review-date {
  font-size: 13px;
  color: #6b7280;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-rating svg {
  display: inline-block;
}

.rating-value {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin-left: 4px;
}

.review-body {
  margin-bottom: 16px;
}

.review-text {
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
  margin: 0;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.review-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-status.active {
  background: #d1fae5;
  color: #065f46;
}

.review-status.inactive {
  background: #fee2e2;
  color: #991b1b;
}

/* Error State */
.error-state {
  text-align: center;
  padding: 80px 24px;
  color: #ef4444;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .reviews-header {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .header-left {
    flex-direction: column;
    text-align: center;
  }

  .overview-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

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

  .reviews-main {
    padding: 24px 16px;
  }

  .reviews-content {
    padding: 20px;
  }

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

  .review-header {
    flex-wrap: wrap;
  }

  .review-rating {
    width: 100%;
    justify-content: flex-start;
    margin-top: 8px;
  }
}

.create-entity-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
  overflow-y: auto;
  padding: 40px 20px;
}

.create-entity-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(113, 101, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(109, 40, 217, 0.3) 0%, transparent 50%);
  animation: backgroundPulse 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes backgroundPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.create-entity-card {
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 680px;
  margin: auto;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(113, 101, 255, 0.1);
  animation: slideIn 0.5s ease-out;
  z-index: 1;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.create-entity-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

/* Navigation Buttons */
.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.close-button {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #f3f4f6;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #374151;
  z-index: 10;
}

.close-button:hover {
  background: #e5e7eb;
  transform: scale(1.05);
}

.back-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.back-button svg {
  width: 20px;
  height: 20px;
  display: block;
}

.back-button:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

.back-button:active {
  transform: scale(0.95);
}

.create-entity-logo {
  width: 40px;
  height: 40px;
}

/* Title */
.create-entity-title {
  font-size: 28px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 32px 0;
  text-align: left;
  line-height: 1.3;
}

/* Entity Type Selection */
.entity-type-selection {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.entity-types {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.entity-type-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: white;
  border: 2px solid #E5E5E5;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.entity-type-card:hover {
  border-color: #7165FF;
  background: rgba(113, 101, 255, 0.02);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(113, 101, 255, 0.12);
}

.entity-type-card:active {
  transform: translateY(0);
}

.entity-type-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: #F8F9FA;
  border-radius: 16px;
  color: #7165FF;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.entity-type-card:hover .entity-type-icon {
  background: rgba(113, 101, 255, 0.1);
  color: #6D28D9;
}

.entity-type-label {
  font-size: 18px;
  font-weight: 600;
  color: #1A1A1A;
  flex: 1 1;
}

/* Form Section */
.entity-form-section {
  animation: fadeIn 0.3s ease;
}

.entity-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 15px;
  font-weight: 600;
  color: #1A1A1A;
}

.form-label .required {
  color: #EF4444;
  margin-left: 4px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  color: #1A1A1A;
  background: #F8F9FA;
  border: 2px solid #E5E5E5;
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #999999;
}

.form-input:focus,
.form-textarea:focus {
  background: white;
  border-color: #7165FF;
  box-shadow: 0 0 0 3px rgba(113, 101, 255, 0.1);
}

.form-input:disabled,
.form-textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

/* Document Type Selector */
.document-type-selector {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  background: #F8F9FA;
  border-radius: 10px;
  margin-bottom: 8px;
}

.doc-type-option {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #666666;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.doc-type-option:hover {
  color: #7165FF;
}

.doc-type-option.active {
  color: #7165FF;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.doc-type-option:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Toggle Group */
.form-group-toggle {
  padding: 20px;
  background: #F8F9FA;
  border-radius: 12px;
  border: 2px solid #E5E5E5;
}

.toggle-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.toggle-text {
  flex: 1 1;
  min-width: 0;
}

.toggle-description {
  margin: 8px 0 0 0;
  font-size: 14px;
  color: #666666;
  line-height: 1.5;
}

/* Switch Component */
.switch-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.switch-checkbox {
  display: none;
}

.switch-label {
  display: block;
  width: 52px;
  height: 28px;
  background-color: #E5E5E5;
  border-radius: 34px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 0;
}

.switch-label:hover {
  background-color: #d5d5d5;
}

.switch-button {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.switch-checkbox:checked + .switch-label {
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
}

.switch-checkbox:checked + .switch-label:hover {
  background: linear-gradient(135deg, #6D28D9 0%, #5a1fb5 100%);
}

.switch-checkbox:checked + .switch-label .switch-button {
  transform: translateX(24px);
}

.switch-checkbox:disabled + .switch-label {
  opacity: 0.5;
  cursor: not-allowed;
}

.switch-checkbox:disabled + .switch-label:hover {
  background-color: #E5E5E5;
}

.switch-checkbox:checked:disabled + .switch-label:hover {
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
}

/* Helper Text */
.form-helper-text {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: #999999;
  line-height: 1.4;
}

/* Coverage Slider */
.coverage-slider {
  margin-top: 8px;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #E5E5E5;
  outline: none;
  transition: background 0.2s;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(113, 101, 255, 0.3);
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(113, 101, 255, 0.4);
}

.slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(113, 101, 255, 0.3);
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(113, 101, 255, 0.4);
}

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

.slider:disabled::-webkit-slider-thumb {
  cursor: not-allowed;
}

.slider:disabled::-moz-range-thumb {
  cursor: not-allowed;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 14px;
  color: #666666;
}

.slider-value {
  font-weight: 600;
  color: #7165FF;
}

.btn-primary,
.btn-secondary {
  flex: 1 1;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #7165FF 0%, #6D28D9 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(113, 101, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(113, 101, 255, 0.4);
}

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

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

.btn-secondary {
  background: #F8F9FA;
  color: #666666;
  border: 2px solid #E5E5E5;
}

.btn-secondary:hover {
  background: #E5E5E5;
  color: #1A1A1A;
}

.btn-secondary:active {
  transform: scale(0.98);
}

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

/* Spinner */
.spinner {
  animation: spin 1s linear infinite;
}

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

/* Form Actions */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .create-entity-container {
    padding: 20px;
    align-items: flex-start;
  }

  .create-entity-card {
    padding: 24px;
  }

  .create-entity-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .entity-type-card {
    padding: 20px;
  }

  .entity-type-icon {
    width: 56px;
    height: 56px;
  }

  .entity-type-icon svg {
    width: 28px;
    height: 28px;
  }

  .entity-type-label {
    font-size: 16px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .create-entity-header {
    margin-bottom: 24px;
  }

  .create-entity-title {
    font-size: 20px;
  }

  .entity-type-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 16px;
  }

  .entity-type-icon {
    width: 64px;
    height: 64px;
  }

  .form-input,
  .form-textarea {
    font-size: 16px; /* Prevenir zoom no iOS */
  }
}

/* ═══════════════════════════════════════════════════════
   FinalizeAppointment — full page
═══════════════════════════════════════════════════════ */

/* ── Loading screen ──────────────────────────────────── */
.fa-loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 16px;
  color: #666;
  font-size: 15px;
}

.fa-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #E5E7EB;
  border-top-color: #7165FF;
  border-radius: 50%;
  animation: fa-spin 0.7s linear infinite;
}

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

/* ── Page shell ──────────────────────────────────────── */
.fa-page {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  background: #F4F5F7;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

/* ── Header ──────────────────────────────────────────── */
.fa-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px;
  height: 64px;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.fa-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #7165FF;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s;
  white-space: nowrap;
}

.fa-back-btn:hover {
  background: #F0EFFE;
}

.fa-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1 1;
  text-align: center;
  min-width: 0;
}

.fa-page-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.2;
}

.fa-appointment-date {
  font-size: 12px;
  color: #888;
  font-weight: 400;
}

.fa-header-spacer {
  /* mirrors back-btn width so title stays centered */
  width: 110px;
}

/* ── Body layout ─────────────────────────────────────── */
.fa-body {
  display: grid;
  grid-template-columns: 35fr 65fr;
  grid-gap: 24px;
  gap: 24px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px 48px;
  align-items: start;
}

/* ── Columns ─────────────────────────────────────────── */
.fa-summary-col,
.fa-form-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Card ────────────────────────────────────────────── */
.fa-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

.fa-card-title {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 700;
  color: #1A1A1A;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fa-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.fa-card-title-row .fa-card-title {
  margin: 0;
}

.fa-card-title svg {
  color: #7165FF;
  flex-shrink: 0;
}

/* ── Tutor ───────────────────────────────────────────── */
.fa-tutor-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fa-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #E5E7EB;
  flex-shrink: 0;
}

.fa-avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7165FF, #A78BFA);
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fa-tutor-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fa-tutor-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
}

.fa-tutor-contact {
  margin: 0;
  font-size: 13px;
  color: #666;
  word-break: break-all;
}

.fa-tutor-contact--clickable {
  cursor: pointer;
  border-radius: 4px;
  padding: 1px 4px;
  margin-left: -4px;
  transition: background 0.15s, color 0.15s;
}

.fa-tutor-contact--clickable:hover {
  background: #EEF2FF;
  color: #4F46E5;
}

/* ── Pet Card ────────────────────────────────────────── */
.fa-pet-card {
  background: #F8F9FA;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.fa-pet-card-photo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  flex-shrink: 0;
}

.fa-pet-card-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7165FF, #A78BFA);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.fa-pet-card-info {
  flex: 1 1;
  min-width: 0;
}

.fa-pet-card-name {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  color: #1A1A1A;
}

.fa-pet-card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.fa-pet-card-name-row .fa-pet-card-name {
  margin: 0;
}

.fa-pet-card-breed {
  margin: 0 0 12px;
  font-size: 14px;
  color: #666666;
}

.fa-pet-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fa-pet-card-detail-item {
  padding: 8px 14px;
  background: #FFFFFF;
  border-radius: 8px;
  font-size: 13px;
  color: #666666;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.fa-pet-card-detail-item svg {
  color: #7165FF;
  flex-shrink: 0;
}

/* ── Medical history blocks ──────────────────────────── */
.fa-history-block {
  margin-bottom: 20px;
}

.fa-history-block:last-child {
  margin-bottom: 0;
}

.fa-history-subtitle {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 6px;
  border-bottom: 1px solid #F0F0F0;
}

.fa-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px 16px;
  gap: 8px 16px;
}

.fa-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fa-info-item--full {
  grid-column: 1 / -1;
}

.fa-info-label {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fa-info-value {
  font-size: 13px;
  color: #333;
}

/* ── Record list (vaccines / dewormings / diseases) ──── */
.fa-record-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fa-record-item {
  background: #FAFAFA;
  border: 1px solid #EEEEEE;
  border-radius: 10px;
  padding: 10px 12px;
}

.fa-record-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.fa-record-name {
  font-size: 13px;
  font-weight: 600;
  color: #1A1A1A;
}

.fa-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
  color: #888;
}

.fa-record-note {
  margin: 4px 0 0;
  font-size: 12px;
  color: #666;
  font-style: italic;
}

/* ── Badges ──────────────────────────────────────────── */
.fa-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.fa-badge--up_to_date,
.fa-badge--active,
.fa-badge--completed {
  background: #D1FAE5;
  color: #065F46;
}

.fa-badge--expired,
.fa-badge--inactive {
  background: #FEE2E2;
  color: #991B1B;
}

.fa-badge--pending {
  background: #FEF3C7;
  color: #92400E;
}

.fa-badge--allergy {
  background: #FFE4E6;
  color: #9F1239;
}

/* ── Severity badges ─────────────────────────────────── */
.fa-badge--severity-low {
  background: #ECFDF5;
  color: #065F46;
}

.fa-badge--severity-mild {
  background: #FEF3C7;
  color: #78350F;
}

.fa-badge--severity-moderate {
  background: #FEF3C7;
  color: #92400E;
}

.fa-badge--severity-high {
  background: #FEE2E2;
  color: #B91C1C;
}

.fa-badge--severity-severe {
  background: #FDE8FF;
  color: #7E22CE;
}

/* ── Alert record items (allergies) ──────────────────── */
.fa-record-item--alert {
  border-left: 3px solid #EF4444;
}

.fa-severity--mild  { border-left-color: #F59E0B; }
.fa-severity--moderate { border-left-color: #F97316; }
.fa-severity--high  { border-left-color: #DC2626; }
.fa-severity--severe { border-left-color: #7C3AED; }

.fa-record-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── Details button ──────────────────────────────────── */
.fa-details-hint {
  font-size: 13px;
  color: #888;
  margin: 0 0 14px;
  line-height: 1.5;
}

.fa-btn-details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F0EFFE;
  color: #7165FF;
  border: 1.5px solid #D4D0FF;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  width: 100%;
  justify-content: center;
}

.fa-btn-details:hover {
  background: #E4E0FF;
  border-color: #7165FF;
}

/* ── Details button ──────────────────────────────────── */
.fa-empty-msg {
  font-size: 13px;
  color: #999;
  margin: 0;
}

.fa-notes-text {
  font-size: 13px;
  color: #444;
  margin: 0;
  line-height: 1.6;
  background: #FAFAFA;
  border-left: 3px solid #7165FF;
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
}

/* ── Section cards ───────────────────────────────────── */
.fa-section-card {
  padding: 22px 24px;
}

.fa-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #F3F4F6;
}

.fa-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.fa-section-icon--teal   { background: #E6FAF8; color: #0D9488; }
.fa-section-icon--blue   { background: #EFF6FF; color: #3B82F6; }
.fa-section-icon--purple { background: #F3F0FF; color: #7165FF; }
.fa-section-icon--orange { background: #FFF7ED; color: #F97316; }
.fa-section-icon--green  { background: #F0FDF4; color: #22C55E; }
.fa-section-icon--gray   { background: #F3F4F6; color: #6B7280; }

.fa-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  flex: 1 1;
}

.fa-section-badge {
  font-size: 11px;
  font-weight: 600;
  color: #9CA3AF;
  background: #F3F4F6;
  border-radius: 20px;
  padding: 3px 10px;
}

/* ── Grids ───────────────────────────────────────────── */
.fa-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 14px;
  gap: 14px;
  margin-bottom: 14px;
}

.fa-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 14px;
  gap: 14px;
  margin-bottom: 14px;
}

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

/* ── Select ──────────────────────────────────────────── */
.fa-select {
  padding: 10px 12px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  color: #1A1A1A;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  background: #FAFAFA;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%236B7280%27 stroke-width=%272.5%27%3E%3Cpolyline points=%276 9 12 15 18 9%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.fa-select:focus {
  border-color: #7165FF;
  box-shadow: 0 0 0 3px rgba(113, 101, 255, 0.12);
  background-color: #FFFFFF;
}

/* ── Exams row (checkboxes + other) ──────────────────── */
.fa-exams-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  gap: 20px;
  margin-top: 6px;
}

.fa-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
}

.fa-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
}

.fa-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #7165FF;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Medication block ────────────────────────────────── */
.fa-med-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.fa-med-list-item {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 12px 14px;
}

.fa-med-list-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.fa-med-list-item-info {
  flex: 1 1;
  min-width: 0;
}

.fa-med-list-item-name {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 5px;
}

.fa-med-list-item-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.fa-med-list-item-details span {
  font-size: 12px;
  color: #6B7280;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 2px 8px;
}

.fa-med-list-item-notes {
  font-size: 12px;
  color: #374151;
  margin: 2px 0 0;
  font-style: italic;
}

.fa-med-list-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.fa-med-action-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.fa-med-action-btn--edit {
  background: #EEF2FF;
  color: #6366F1;
}
.fa-med-action-btn--edit:hover { background: #E0E7FF; }

.fa-med-action-btn--delete {
  background: #FEE2E2;
  color: #EF4444;
}
.fa-med-action-btn--delete:hover { background: #FECACA; }

/* ── Medication form panel ───────────────────────────── */
.fa-med-form-panel {
  background: #F0EFFE;
  border: 1.5px solid #C4B5FD;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fa-med-form-title {
  font-size: 14px;
  font-weight: 700;
  color: #4C1D95;
  margin: 0;
}

.fa-med-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  gap: 10px;
}

.fa-input--readonly {
  background: #F3F4F6 !important;
  color: #9CA3AF !important;
  cursor: default;
}

.fa-med-reminder-row {
  display: flex;
  align-items: center;
}

.fa-med-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.fa-btn-med-cancel {
  background: #FFFFFF;
  color: #6B7280;
  border: 1.5px solid #D1D5DB;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.fa-btn-med-cancel:hover { background: #F3F4F6; }

.fa-btn-med-save {
  background: linear-gradient(135deg, #7165FF, #5B21B6);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(113,101,255,0.3);
}
.fa-btn-med-save:hover:not(:disabled) { background: linear-gradient(135deg, #5B54E8, #4C1D95); }
.fa-btn-med-save:disabled { opacity: 0.55; cursor: not-allowed; }



.fa-btn-add-med {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.fa-btn-add-med:hover {
  background: linear-gradient(135deg, #16A34A, #15803D);
  transform: translateY(-1px);
}

/* ── Form actions bar ────────────────────────────────── */
.fa-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 8px;
}

.fa-form-actions-right {
  display: flex;
  gap: 10px;
}

.fa-btn--draft {
  background: #FFFFFF;
  color: #374151;
  border: 1.5px solid #D1D5DB;
  border-radius: 10px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  transition: all 0.2s;
}

.fa-btn--draft:hover:not(:disabled) {
  background: #F9FAFB;
  border-color: #9CA3AF;
  color: #111827;
}

.fa-btn--edit-header {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F0EFFE;
  color: #7165FF;
  border: 1.5px solid #D4D0FF;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}

.fa-btn--edit-header:hover {
  background: #E4E0FF;
  border-color: #7165FF;
}

/* ── Finalized badge ─────────────────────────────────── */
.fa-finalized-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #DCFCE7;
  color: #16A34A;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 10px;
  vertical-align: middle;
}

/* ── Overview: key/value grid ────────────────────────── */
.fa-ov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.fa-ov-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 12px 14px;
}

.fa-ov-item--wide {
  grid-column: span 2;
}

.fa-ov-label {
  font-size: 11px;
  font-weight: 700;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fa-ov-value {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.fa-ov-text-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.fa-ov-text-block:first-child {
  margin-top: 0;
}

.fa-ov-text {
  font-size: 14px;
  color: #374151;
  line-height: 1.7;
  margin: 0;
  white-space: pre-wrap;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 12px 16px;
}

/* ── Overview: exam tags ─────────────────────────────── */
.fa-ov-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.fa-ov-tag {
  display: inline-flex;
  align-items: center;
  background: #F3F0FF;
  color: #7165FF;
  border: 1px solid rgba(113, 101, 255, 0.2);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
}

/* ── Overview: internal notes amber tint ─────────────── */
.fa-ov-text--internal {
  background: #FFFBEB;
  border-color: rgba(245, 158, 11, 0.25);
  color: #92400E;
}

/* ── Overview: medications ───────────────────────────── */
.fa-ov-med-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.fa-ov-med-item {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 12px 14px;
}

.fa-ov-med-name {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px;
}

.fa-ov-med-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.fa-ov-med-details span {
  font-size: 13px;
  color: #6B7280;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 2px 10px;
}

.fa-ov-med-instructions {
  font-size: 13px;
  color: #374151;
  margin: 4px 0 0;
  font-style: italic;
}

.fa-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fa-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fa-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.fa-required {
  color: #EF4444;
  margin-left: 2px;
}

.fa-textarea {
  resize: vertical;
  min-height: 80px;
  padding: 10px 12px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  color: #1A1A1A;
  font-family: inherit;
  line-height: 1.55;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  background: #FAFAFA;
}

.fa-textarea:focus {
  border-color: #7165FF;
  box-shadow: 0 0 0 3px rgba(113, 101, 255, 0.12);
  background: #FFFFFF;
}

.fa-input {
  padding: 10px 12px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  color: #1A1A1A;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  background: #FAFAFA;
  width: 100%;
  box-sizing: border-box;
}

.fa-input:focus {
  border-color: #7165FF;
  box-shadow: 0 0 0 3px rgba(113, 101, 255, 0.12);
  background: #FFFFFF;
}

/* ── Action buttons ──────────────────────────────────── */
.fa-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #F0F0F0;
}

.fa-btn {
  flex: 1 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.fa-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.fa-btn--cancel {
  background: #F3F4F6;
  color: #555;
  flex: 0 0 auto;
  padding: 12px 24px;
}

.fa-btn--cancel:hover:not(:disabled) {
  background: #E5E7EB;
  color: #1A1A1A;
}

.fa-btn--confirm {
  background: linear-gradient(135deg, #7165FF, #5B4FD9);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(113, 101, 255, 0.35);
  white-space: nowrap;
}

.fa-btn--confirm:hover:not(:disabled) {
  background: linear-gradient(135deg, #5B4FD9, #4A40C8);
  box-shadow: 0 6px 18px rgba(113, 101, 255, 0.45);
  transform: translateY(-1px);
}

.fa-btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: fa-spin 0.7s linear infinite;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .fa-body {
    grid-template-columns: 1fr;
  }

  .fa-header-spacer {
    display: none;
  }

  .fa-header {
    justify-content: flex-start;
    gap: 12px;
  }

  .fa-header-center {
    align-items: flex-start;
    text-align: left;
    flex: 1 1;
  }

  .fa-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .fa-exams-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .fa-body {
    padding: 16px 12px 40px;
    gap: 16px;
  }

  .fa-header {
    padding: 0 16px;
  }

  .fa-card {
    padding: 18px 16px;
  }

  .fa-actions {
    flex-direction: column;
  }

  .fa-btn--cancel {
    flex: 1 1;
  }

  .fa-info-grid {
    grid-template-columns: 1fr;
  }

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

  .fa-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .fa-form-actions-right {
    flex-direction: column;
  }

  .fa-ov-item--wide {
    grid-column: span 1;
  }
}

/* ── Documents Section ───────────────────────────────────────── */
.fa-docs-section {
  padding: 20px 24px;
}

.fa-section-desc {
  font-size: 13px;
  color: #6B7280;
  margin-left: 8px;
}

.fa-docs-dropzone {
  border: 2px dashed #D1D5DB;
  border-radius: 12px;
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-top: 16px;
  background: #FAFAFA;
}
.fa-docs-dropzone:hover {
  border-color: #6B7280;
  background: #F3F4F6;
}
.fa-docs-dropzone-title {
  font-weight: 600;
  font-size: 15px;
  color: #111827;
  margin: 0;
}
.fa-docs-dropzone-hint {
  font-size: 13px;
  color: #6B7280;
  margin: 0;
}
.fa-docs-select-btn {
  margin-top: 8px;
  padding: 10px 24px;
  background: #16A34A;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.fa-docs-select-btn:hover { background: #15803D; }

/* Pending file confirm */
.fa-docs-pending {
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 16px;
  margin-top: 16px;
  background: #F9FAFB;
}
.fa-docs-pending-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fa-docs-preview-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #E5E7EB;
}
.fa-docs-pending-name {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  word-break: break-all;
}
.fa-docs-pending-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  justify-content: flex-end;
}
.fa-docs-confirm-btn {
  padding: 8px 22px;
  background: #16A34A;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.fa-docs-confirm-btn:hover:not(:disabled) { background: #15803D; }
.fa-docs-confirm-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Progress bar */
.fa-docs-progress {
  height: 6px;
  background: #E5E7EB;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 10px;
}
.fa-docs-progress-bar {
  height: 100%;
  background: #16A34A;
  border-radius: 99px;
  transition: width 0.2s;
}

/* File icon */
.fa-docs-file-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fa-docs-file-icon--pdf { background: #FEE2E2; color: #DC2626; }
.fa-docs-file-icon--img { background: #DBEAFE; color: #2563EB; }
.fa-docs-file-icon--doc { background: #EDE9FE; color: #7C3AED; }

/* Document list */
.fa-docs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.fa-docs-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  background: #fff;
}
.fa-docs-item-info {
  flex: 1 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fa-docs-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fa-docs-item-meta {
  font-size: 12px;
  color: #9CA3AF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fa-docs-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.fa-docs-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}
.fa-docs-action-btn--view { color: #374151; }
.fa-docs-action-btn--view:hover { background: #F3F4F6; border-color: #9CA3AF; }
.fa-docs-action-btn--delete { color: #DC2626; }
.fa-docs-action-btn--delete:hover { background: #FEE2E2; border-color: #FCA5A5; }

/* Visibility toggle – shown in the pending-file form */
.fa-docs-visibility-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
}

/* Visibility badge – shown on each document item */
.fa-docs-visibility-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.fa-docs-visibility-badge--visible {
  background: #D1FAE5;
  color: #065F46;
}
.fa-docs-visibility-badge--hidden {
  background: #F3F4F6;
  color: #6B7280;
}

.App {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}


/*# sourceMappingURL=main.27dbfc6a.css.map*/