/* ===================================
   USER LAYOUT CSS - Clean & Modern
=================================== */

/* Variables */
:root {
  --transition: all 0.3s ease;
}

/* Body */
body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  overflow-x: hidden;
}

/* ===================================
   HEADER
=================================== */
header {
  background: linear-gradient(90deg, #2b2b4b, #3e3b65, #5e5b8a);
}

.navbar-brand {
  transition: var(--transition);
}

.navbar-brand:hover {
  opacity: 0.9;
}

.navbar-nav {
  gap: 4px;
}
.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.15);
}

/* Dropdown */
.dropdown-menu {
  border: none;
  margin-top: 0.5rem;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Mobile Menu Improvements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(46, 46, 75, 0.98);
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  .navbar-nav {
    gap: 8px;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .nav-link {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
  }

  .dropdown-menu {
    background: rgba(60, 60, 95, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 8px;
    padding: 8px;
  }

  .dropdown-item {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
  }

  .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
  }

  /* Hotline and Social in mobile menu */
  .hotline {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 15px;
    margin-bottom: 10px;
  }

  .social-icons {
    justify-content: center !important;
    gap: 15px !important;
    padding: 10px 0;
  }

  .social-icons a {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

/* Hotline Button */
.hotline {
  background: #ff6b35;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.hotline:hover {
  background: #ff8555;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Social Icons */
.social-icons a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}

.social-icons a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.15);
}

/* ===================================
   MAIN
=================================== */
main {
  min-height: 60vh;
}

/* ===================================
   FOOTER
=================================== */
footer {
  background: linear-gradient(90deg, #1f1c2c, #928dab);
}

footer h5,
footer h6 {
  font-size: 1rem;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

footer p {
  line-height: 1.7;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer a {
  transition: var(--transition);
}

footer a:hover {
  color: white !important;
  padding-left: 5px;
}

footer .form-control {
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

footer .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

footer .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
}

footer .btn-light {
  border-radius: 6px;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
}

footer .btn-light:hover {
  background: #ff6b35;
  border-color: #ff6b35;
  color: white;
}

footer .d-flex.gap-3 a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

footer .d-flex.gap-3 a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px) scale(1.1);
}

/* ===================================
   FLOATING CONTACT
=================================== */
.contact-icons {
  position: fixed;
  right: 15px;
  bottom: 180px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.contact-icon.zalo {
  background: #0084ff;
}

.contact-icon.zalo img {
  width: 28px;
  height: 28px;
}

.contact-icon.facebook {
  background: #4267b2;
}

.contact-icon.phone {
  background: #25d366;
}

.contact-icon:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.contact-icon.zalo:hover {
  box-shadow: 0 4px 16px rgba(0, 132, 255, 0.5);
}

.contact-icon.facebook:hover {
  box-shadow: 0 4px 16px rgba(66, 103, 178, 0.5);
}

.contact-icon.phone:hover {
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
}

.hotline-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8555 100%);
  color: white !important;
  padding: 0.875rem 1.5rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  z-index: 1000;
  animation: pulse 2s ease-in-out infinite;
}

.hotline-fixed:hover {
  background: linear-gradient(135deg, #ff8555 0%, #ff9977 100%);
  color: white !important;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 30px rgba(255, 107, 53, 0.6);
  animation: none;
  text-decoration: none;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
  }
  50% {
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.6);
  }
}

/* ===================================
   RESPONSIVE
=================================== */

/* Tablet lớn */
@media (max-width: 1199.98px) {
  .contact-icons {
    right: 15px;
    bottom: 120px;
    gap: 14px;
  }

  .contact-icon {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
  }

  .contact-icon.zalo img {
    width: 27px;
    height: 27px;
  }

  .hotline-fixed {
    font-size: 0.9rem;
    padding: 0.8rem 1.35rem;
    bottom: 18px;
    right: 18px;
  }
}

/* Tablet */
@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 1rem;
  }

  .contact-icons {
    right: 12px;
    bottom: 100px;
    gap: 13px;
  }

  .contact-icon {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }

  .contact-icon.zalo img {
    width: 26px;
    height: 26px;
  }

  .hotline-fixed {
    font-size: 0.85rem;
    padding: 0.75rem 1.2rem;
    bottom: 15px;
    right: 15px;
  }
}

/* Tablet nhỏ */
@media (max-width: 767.98px) {
  .contact-icons {
    right: 10px;
    bottom: 90px;
    gap: 12px;
  }

  .contact-icon {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
  }

  .contact-icon.zalo img {
    width: 25px;
    height: 25px;
  }

  .hotline-fixed {
    font-size: 0.78rem;
    padding: 0.65rem 1rem;
    bottom: 12px;
    right: 12px;
  }

  /* Footer responsive - Tablet */
  footer {
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
  }

  footer h5 {
    font-size: 1.1rem;
  }

  footer h6 {
    font-size: 0.95rem;
    margin-bottom: 0.875rem;
  }

  footer .small {
    font-size: 0.875rem;
  }

  footer form {
    flex-direction: row !important;
    gap: 8px;
  }

  footer .btn-light {
    width: auto;
    padding: 0.375rem 1rem;
  }

  footer .d-flex.gap-3 {
    gap: 12px !important;
  }

  footer .d-flex.gap-3 a {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1rem;
  }

  .navbar-brand img {
    height: 35px !important;
  }

  .hotline {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .social-icons a {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  /* Footer responsive - Mobile */
  footer {
    padding-top: 2.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  footer .row {
    row-gap: 2rem !important;
  }

  footer h5 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  footer h6 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  footer .small,
  footer ul.small {
    font-size: 0.85rem !important;
  }

  footer p.small {
    line-height: 1.6;
  }

  footer ul li {
    margin-bottom: 0.4rem;
  }

  footer form {
    flex-direction: column !important;
    gap: 10px;
  }

  footer .form-control {
    width: 100% !important;
  }

  footer .btn-light {
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  footer .d-flex.gap-3 {
    gap: 10px !important;
    margin-top: 1rem !important;
  }

  footer .d-flex.gap-3 a {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  footer hr {
    margin: 1.5rem 0 !important;
  }

  footer .text-center {
    font-size: 0.8rem !important;
  }

  /* Text alignment for mobile */
  footer .col-md-4,
  footer .col-md-2,
  footer .col-md-3 {
    text-align: left;
  }

  footer .col-md-4 .d-flex.align-items-center {
    justify-content: flex-start;
  }

  footer .col-md-4 .d-flex.gap-3 {
    justify-content: flex-start;
  }

  .contact-icons {
    right: 8px;
    bottom: 75px;
    gap: 10px;
  }

  .contact-icon {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .contact-icon.zalo img {
    width: 24px;
    height: 24px;
  }

  .hotline-fixed {
    font-size: 0.7rem;
    padding: 0.55rem 0.8rem;
    bottom: 10px;
    right: 10px;
  }

  .hotline-fixed i {
    font-size: 0.8rem;
  }

  .hotline-fixed span {
    display: inline;
  }
}

/* Mobile nhỏ */
@media (max-width: 375.98px) {
  .contact-icons {
    right: 6px;
    bottom: 70px;
    gap: 8px;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .contact-icon.zalo img {
    width: 22px;
    height: 22px;
  }

  .hotline-fixed {
    font-size: 0.65rem;
    padding: 0.5rem 0.7rem;
    bottom: 8px;
    right: 8px;
  }

  .hotline-fixed i {
    font-size: 0.75rem;
  }

  .hotline-fixed strong {
    font-size: 0.7rem;
  }
}
