/* MedTrek App Manager Styles */

/* MedTrek Color Palette */
:root {
  --medtrek-primary: #00e676;
  --medtrek-primary-dark: #00c853;
  --medtrek-secondary: #2e3b4e;
  --medtrek-light: #e8f5e8;
  --medtrek-gradient: linear-gradient(135deg, #00e676 0%, #00c853 100%);
}

/* Logo styles */
.medtrek-logo {
  height: 40px;
  width: auto;
  max-width: 150px;
}

.medtrek-logo-small {
  height: 32px;
  width: auto;
  max-width: 120px;
}

/* Header customizations */
.header-logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.medtrek-brand-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--medtrek-primary);
  text-decoration: none;
}

.medtrek-brand-text:hover {
  color: var(--medtrek-primary-dark);
}

/* Footer logo */
.footer-logo {
  height: 48px;
  width: auto;
  max-width: 180px;
}

/* Loading placeholder for logo */
.logo-placeholder {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--medtrek-gradient);
  border-radius: 8px;
  position: relative;
}

.logo-placeholder::after {
  content: "M";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 18px;
}

/* Hamburger Menu Styles */
.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.hamburger-menu:hover {
  background-color: #f3f4f6;
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background-color: #374151;
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 50;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-item {
  display: block;
  padding: 12px 16px;
  color: #6b7280;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.2s;
}

.mobile-nav-item:hover {
  background-color: #f9fafb;
  color: #1e40af;
}

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

/* Desktop Navigation */
.desktop-nav {
  display: flex;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .medtrek-logo {
    height: 36px;
  }

  .medtrek-brand-text {
    font-size: 1.125rem;
  }

  .footer-logo {
    height: 40px;
  }

  .desktop-nav {
    display: none;
  }

  .hamburger-menu {
    display: flex;
  }

  .header-logo-container {
    flex: 1;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .medtrek-logo,
  .medtrek-logo-small,
  .footer-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .medtrek-brand-text {
    color: #60a5fa;
  }

  .medtrek-brand-text:hover {
    color: #93c5fd;
  }
}

/* Terms of Service / Legal Documents Styles */
.prose h2 {
  color: #1e40af;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
  line-height: 1.4;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose h3 {
  color: #1e40af;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.prose p {
  margin-top: 1rem;
  margin-bottom: 1rem;
  line-height: 1.75;
  color: #374151;
}

.prose ul {
  margin-top: 1rem;
  margin-bottom: 1rem;
  list-style-type: disc;
  padding-left: 1.5rem;
}

.prose ul li {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.75;
  color: #4b5563;
}

.prose strong {
  font-weight: 600;
  color: #1f2937;
}

/* Links de texto (não botões) */
.prose p a,
.prose ul a,
.prose li a {
  color: #2563eb;
  text-decoration: underline;
  transition: color 0.2s;
}

.prose p a:hover,
.prose ul a:hover,
.prose li a:hover {
  color: #1e40af;
}

/* Botões mantêm suas cores originais com texto branco */
.prose a.inline-flex,
.prose a[class*="bg-"],
.prose button {
  color: white !important;
  text-decoration: none;
}

/* Responsive adjustments for legal documents */
@media (max-width: 768px) {
  .prose h2 {
    font-size: 1.375rem;
    margin-top: 2rem;
  }

  .prose h3 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
  }
}
