@import "./variables.css";

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

main { 
  flex: 1; 
}

.navbar {
  font-size: 15px;
  font-weight: 500;
  background-color: var(--white-color) !important;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.nav-link {
  padding: 10px 15px;
  color: var(--text-dark);
  transition: color var(--transition-fast);
}

.nav-link:hover { 
  color: var(--primary-color); 
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 8px 0;
  display: none;
  position: absolute;
}

.dropdown-menu.show { 
  display: block; 
}

.dropdown-item {
  padding: 10px 20px;
  font-size: 15px;
  color: var(--text-dark);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--dropdown-bg-hover);
  color: var(--primary-color);
}

.btn {
  font-size: 14px;
  border-radius: var(--radius-sm);
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.user-info {
  font-size: 15px;
  color: var(--text-dark);
}

.stats-wrapper {
  background-color: var(--brand-color);
  color: var(--white-color);
  padding: 40px 0;
}

.stats-item {
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .stats-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

.stats-item h2 {
  font-weight: bold;
  font-size: 2rem;
}

.stats-item p {
  margin: 0;
  font-size: 1rem;
}

.footer-name-category {
  text-decoration: none;
  color: black;
}

.footer-name-category:hover {
  color: var(--primary-color);
}

.floating-support {
  position: fixed;
  z-index: 9999;
  right: 20px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.support-btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-circle);
  box-shadow: var(--shadow-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  background-color: var(--white-color);
  transition: all var(--transition-normal);
  border: 1px solid #ddd;
}

.support-btn:hover {
  transform: scale(1.1);
}

.support-btn img {
  width: 32px;
  height: 32px;
}

.support-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.85);
  color: var(--white-color);
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.support-btn:hover::after {
  opacity: 1;
}

@media (max-width: 767px) {
  .support-btn.phone {
    display: flex;
    background-color: var(--white-color);
    color: var(--white-color);
    font-size: 28px;
    font-weight: bold;
    border: none;
  }
}

@media (min-width: 768px) {
  .support-btn.phone {
    display: none;
  }

  .support-btn.zalo,
  .support-btn.messenger {
    background-color: var(--white-color);
  }
}

.list-unstyled li {
  text-decoration: none;
}

.list-unstyled li a {
  text-decoration: none;
  color: var(--text-dark);
}

.list-unstyled li a:hover {
  color: var(--primary-color);
}