/* Authenticated content styles */
.authenticated-content {
  margin: 20px 0;
}

.user-dashboard {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.dashboard-section {
  flex: 1;
  min-width: 250px;
  background-color: var(--bg-color, #f5f5f5);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-section h3 {
  margin-top: 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.dashboard-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-links a {
  padding: 8px 12px;
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 4px;
  transition: background-color 0.2s;
}

.dashboard-links a:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

/* Unauthenticated content styles */
.unauthenticated-content {
  margin: 20px 0;
  text-align: center;
}

.auth-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.auth-buttons .button {
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  background-color: var(--tg-theme-button-color, #4caf50);
  color: var(--tg-theme-button-text-color, white);
  font-weight: bold;
  transition: opacity 0.2s;
}

.auth-buttons .button:hover {
  opacity: 0.9;
}

.auth-buttons .register-button {
  background-color: #2196f3;
}

.feature-list {
  max-width: 400px;
  margin: 30px auto;
  text-align: left;
}

.feature-list ul {
  padding-left: 20px;
}

.feature-list li {
  margin-bottom: 8px;
}

.login-status {
  text-align: right;
  top: 0;
  right: 0;
  padding: 10px;
  position: absolute;
}

.version-info {
  flex: 1;
  min-width: 250px;
  max-width: 100%;
  background-color: var(--bg-color, #f5f5f5);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  bottom: 0;
  right: 0;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  vertical-align: text-top;
  overflow: hidden;
}

.version {
  vertical-align: text-top;
  padding: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Mobile responsiveness for larger fonts */
@media screen and (max-width: 768px) {
  /* Increase base font size for all dashboard elements */
  .user-dashboard {
    font-size: 18px;
    flex-direction: column;
  }

  .dashboard-section h3 {
    font-size: 20px;
  }

  .dashboard-links a {
    font-size: 16px;
    padding: 12px 16px; /* Larger touch targets */
  }

  .auth-buttons .button {
    font-size: 16px;
    padding: 12px 20px; /* Larger buttons */
  }

  .feature-list {
    font-size: 16px;
  }

  .feature-list li {
    margin-bottom: 12px;
  }

  .version-info {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .version {
    padding: 5px;
    font-size: 14px;
  }
}

/* Even larger font size for smaller mobile screens */
@media screen and (max-width: 480px) {
  .user-dashboard {
    font-size: 22px;
  }

  .dashboard-section h3 {
    font-size: 22px;
  }

  .dashboard-links a {
    font-size: 18px;
    padding: 14px 18px;
    margin-bottom: 5px;
  }

  .auth-buttons {
    flex-direction: column;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .auth-buttons .button {
    font-size: 18px;
    padding: 14px 24px;
    width: 100%;
  }

  .feature-list {
    font-size: 18px;
    max-width: 320px;
  }

  .feature-list li {
    margin-bottom: 14px;
  }

  .version-info {
    min-width: 100%;
    padding: 8px;
  }

  .version {
    padding: 3px;
    font-size: 12px;
  }
}

@media (prefers-color-scheme: dark) {
  .dashboard-section {
    background-color: #2a2a2a;
  }

  .dashboard-links a {
    background-color: rgba(255, 255, 255, 0.05);
  }

  .dashboard-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .version-info {
    background-color: #2a2a2a;
  }
}
