/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    Roboto,
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  color: #2a2b2d;
  background: white;
  min-height: 100vh;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 85vh;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.logo-text {
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  margin: 0;
}

.tagline {
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  margin-top: 12px;
  margin-bottom: 6px;
}

/* Main content */
.main {
  margin: 0 auto;
  overflow: hidden;
  width: 700px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 72px;
}

.slack-button {
  background: #0d6bde;
  color: white;
  width: 126px;
  height: 40px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 510;
  font-size: 16px;
  border: none;
  cursor: pointer;
  margin-bottom: 1rem;
  margin-top: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slack-button:hover {
  background: #0d67d5;
}

.slack-button:active {
  background: #08458e;
}

.top-section {
  height: 72px;
  display: flex;
  padding: 20px 20px;
  border-bottom: 1px solid #e1e5e9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  z-index: 1000;
}

.top-section-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.top-section-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

/* Avatar Component Styles - Based on react-ui Avatar component */
.user-profile {
  position: relative;
  display: inline-flex;
  height: 40px;
  width: 40px;
  border-radius: 10px;
  background: #ffffff;
  overflow: visible;
  flex-shrink: 0;
  cursor: pointer;
}

.user-profile:focus-visible {
  outline: 2px solid #0d6bde;
  outline-offset: 2;
}

.user-avatar {
  position: relative;
  display: inline-flex;
  height: 40px;
  width: 40px;
  border-radius: 10px;
  background: #ffffff;
  overflow: visible;
  flex-shrink: 0;
  color: #ffffff;
  font-family:
    Roboto,
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 40px;
  text-align: center;
  transition: all 0.2s ease;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.user-avatar span {
  color: #ffffff;
  font-weight: 600;
  font-size: 12px;
  text-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

/* Avatar mask for hover effects */
.user-avatar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.1);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.user-profile:hover .user-avatar::after {
  opacity: 1;
}

.user-profile:active .user-avatar::after {
  opacity: 1;
  background: rgba(0, 0, 0, 0.2);
}

/* Additional avatar element classes */
.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.avatar-initials {
  color: #ffffff;
  font-weight: 600;
  font-size: 12px;
  text-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

/* Focus and accessibility improvements */
.user-profile:focus {
  outline: 2px solid #0d6bde;
  outline-offset: 2;
}

.user-profile[tabindex]:focus {
  outline: 2px solid #0d6bde;
  outline-offset: 2;
}

.user-tooltip {
  position: absolute;
  bottom: -35px;
  right: 0;
  background: white;
  color: #2a2b2d;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  z-index: 1001;
  border: 1px solid #e1e5e9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-tooltip::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 12px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid white;
}

.user-tooltip::after {
  content: "";
  position: absolute;
  top: -6px;
  right: 12px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #e1e5e9;
  z-index: -1;
}

.user-profile:hover .user-tooltip {
  opacity: 1;
  visibility: visible;
}

/* User dropdown styles */
.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
  z-index: 1002;
  overflow: hidden;
}

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

.user-info {
  padding: 12px 16px;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  color: #2a2b2d;
  margin-bottom: 2px;
}

.user-email {
  font-size: 12px;
  color: #6b7280;
}

.dropdown-divider {
  height: 1px;
  background: #e1e5e9;
  margin: 0;
}

.dropdown-item {
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  font-size: 14px;
  color: #2a2b2d;
}

.dropdown-item:hover {
  background-color: #f3f4f6;
}

.dropdown-item span {
  display: block;
}

/* Additional styles to replace inline styles */
.view-accounts-container {
  text-align: center;
}

.view-accounts-link {
  color: #007cba;
  text-decoration: none;
  font-size: 14px;
}

.view-accounts-link:hover {
  text-decoration: underline;
}

/* Info section styling */
.info-section {
  width: 100%;
  max-width: 750px;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  text-align: left;
}

.info-card.disclaimer {
  background: #feedaf80;
  padding: 16px 20px;
  border-radius: 8px;
}

.info-title {
  font-size: 16px;
  font-weight: 600;
  color: #2a2b2d;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.info-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #2a2b2d;
  margin: 0;
}

.requirements-list {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.requirements-list li {
  font-size: 14px;
  line-height: 1.6;
  color: #2a2b2d;
  margin-bottom: 8px;
}

.requirements-list li:last-child {
  margin-bottom: 0;
}

.requirements-list strong {
  font-weight: 600;
  color: #1a1b1d;
}

.info-link {
  color: #007cba;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.info-link:hover {
  color: #005a8f;
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .main {
    width: 90%;
    max-width: 500px;
    height: auto;
    min-height: 200px;
    padding: 20px;
  }

  .logo-text {
    font-size: 28px;
    line-height: 32px;
  }
}

@media (max-width: 480px) {
  .main {
    width: 95%;
    max-width: 400px;
    padding: 15px;
  }

  .logo-text {
    font-size: 24px;
    line-height: 28px;
  }

  .tagline {
    font-size: 13px;
    line-height: 16px;
  }

  .info-section {
    width: 100%;
    margin: 20px 0;
    gap: 12px;
  }

  .info-title {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .info-text,
  .requirements-list li {
    font-size: 13px;
  }

  .slack-button {
    width: 120px;
    height: 36px;
    font-size: 14px;
  }

  .user-profile {
    height: 36px;
    width: 36px;
  }

  .user-avatar {
    height: 36px;
    width: 36px;
    font-size: 10px;
    line-height: 36px;
  }

  .user-avatar span {
    font-size: 10px;
  }

  .user-avatar img {
    border-radius: 8px;
  }

  .user-avatar span {
    border-radius: 8px;
  }

  .user-avatar::after {
    border-radius: 8px;
  }

  .user-tooltip {
    font-size: 11px;
    padding: 6px 10px;
  }

  .user-dropdown {
    min-width: 180px;
  }

  .user-info {
    padding: 10px 14px;
  }

  .user-name {
    font-size: 13px;
  }

  .user-email {
    font-size: 11px;
  }

  .dropdown-item {
    padding: 6px 14px;
    font-size: 13px;
  }
}
