/* TimeTech Navigation - Pure Bootstrap Implementation */

/* Prevent horizontal scroll globally */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* TimeTech Navbar - Bootstrap Compatible */
.timetech-navbar {
  font-family: "Poppins", sans-serif;
  background: #ffffff;
  border-bottom: 1px solid rgba(1, 137, 140, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Body padding for fixed navbar */
body {
  padding-top: 80px;
}

/* Brand styling */
.timetech-brand {
  padding: 0;
  margin: 0;
}

.timetech-brand img {
  height: 42px;
  width: auto;
}

/* Navigation links - Minimal styling */
.timetech-nav .nav-link {
  font-weight: 300;
  color: #4f4f51;
  font-size: 0.875rem;
  padding: 0.75rem 1.25rem;
  margin: 0 0.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.timetech-nav .nav-link:hover,
.timetech-nav .nav-link:focus {
  color: #01898c;
  background: rgba(1, 137, 140, 0.08);
  text-decoration: none;
}

.timetech-nav .nav-link.active {
  color: #4f4f51 !important;
  background: rgba(1, 137, 140, 0.08) !important;
  font-weight: 400;
  border-bottom: 2px solid #01898c;
}

/* Dropdown styling */
.timetech-dropdown {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 200px;
}

.timetech-dropdown .dropdown-item {
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: 6px;
  color: #4f4f51;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.timetech-dropdown .dropdown-item:hover,
.timetech-dropdown .dropdown-item:focus {
  color: #01898c;
  background: rgba(1, 137, 140, 0.08);
  text-decoration: none;
}

.timetech-dropdown .dropdown-item i {
  font-size: 0.875rem;
  color: #01898c;
  width: 16px;
  text-align: center;
}

/* Toggler button */
.timetech-toggler {
  border: 1px solid rgba(1, 137, 140, 0.2);
  padding: 0.5rem;
  border-radius: 6px;
  background: rgba(1, 137, 140, 0.05);
}

.timetech-toggler:hover {
  background: rgba(1, 137, 140, 0.1);
}

.timetech-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(1, 137, 140, 0.25);
}

.timetech-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(1, 137, 140, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile responsive */
@media (max-width: 991.98px) {
  body {
    padding-top: 60px;
  }

  .timetech-navbar {
    padding: 0.5rem 0;
    min-height: 60px;
  }

  .timetech-navbar .container-lg {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    max-width: 100%;
  }

  .timetech-brand {
    margin-left: 0;
    padding-left: 0;
    flex-shrink: 0;
  }

  .timetech-brand img {
    height: 36px;
    width: auto;
  }

  .timetech-toggler {
    padding: 0.4rem;
    border: none;
    background: transparent;
    margin-right: 0;
    margin-left: auto;
    flex-shrink: 0;
  }

  .timetech-toggler .navbar-toggler-icon {
    width: 24px;
    height: 18px;
    background-size: 24px 18px;
  }

  /* Mobile menu - Let Bootstrap handle everything */
  .timetech-nav .nav-link {
    padding: 0.75rem 1.5rem;
    margin: 0;
    border-radius: 0;
    font-size: 0.9rem;
    text-align: left;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(1, 137, 140, 0.08);
    color: #4f4f51;
    transition: all 0.2s ease;
  }

  .timetech-nav .nav-link:hover,
  .timetech-nav .nav-link:focus {
    background: rgba(1, 137, 140, 0.08);
    color: #01898c;
  }

  .timetech-nav .nav-link.active {
    background: rgba(1, 137, 140, 0.12) !important;
    color: #01898c !important;
    font-weight: 500;
    border-left: 4px solid #01898c;
  }

  /* Mobile dropdown - Let Bootstrap handle */
  .timetech-dropdown .dropdown-item {
    padding: 0.75rem 2rem;
    margin: 0;
    border-radius: 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6c757d;
    border-bottom: 1px solid rgba(1, 137, 140, 0.05);
    transition: all 0.2s ease;
  }

  .timetech-dropdown .dropdown-item:hover,
  .timetech-dropdown .dropdown-item:focus {
    background: rgba(1, 137, 140, 0.1);
    color: #01898c;
  }

  .timetech-dropdown .dropdown-item i {
    font-size: 0.8rem;
    color: #01898c;
    width: 16px;
    text-align: center;
  }
}

/* Desktop screens */
@media (min-width: 992px) {
  .timetech-navbar {
    padding: 1rem 0;
  }
  
  .timetech-brand img {
    height: 44px;
  }
  
  .timetech-nav .nav-link {
    font-size: 0.875rem;
    padding: 0.875rem 1.5rem;
  }
}

/* Floating Contact Icons */
.floating-contact-icons {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1030;
}

.floating-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.floating-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  color: white;
}

.support-icon {
  background: linear-gradient(135deg, #01898c, #00b4d8);
}

.whatsapp-icon {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.icon-tooltip {
  position: absolute;
  right: 55px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 300;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}

.icon-tooltip::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 4px solid rgba(0, 0, 0, 0.8);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.floating-icon:hover .icon-tooltip {
  opacity: 1;
  visibility: visible;
  right: 60px;
}

/* Responsive floating icons */
@media (max-width: 768px) {
  .floating-contact-icons {
    right: 15px;
    gap: 10px;
  }
  
  .floating-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .icon-tooltip {
    right: 50px;
    font-size: 0.7rem;
    padding: 5px 8px;
  }
  
  .floating-icon:hover .icon-tooltip {
    right: 55px;
  }
}