/* ===================================
   USER LAYOUT CSS - Clean & Modern
=================================== */

/* Variables */
:root {
  --transition: all 0.3s ease;

  /* ===== MENU DARK THEME ===== */
  --menu-primary: #1e293b;
  --menu-hover: #334155;
  --menu-active: #0f172a;
  --menu-light: #f1f5f9;
  --menu-gradient: linear-gradient(
    135deg,
    #0f172a 0%,
    #1e293b 50%,
    #334155 100%
  );
  --menu-text: #f1f5f9;
  --menu-text-hover: #ffffff;
  --menu-link-hover-bg: rgba(255, 255, 255, 0.1);
  --menu-link-active-bg: rgba(255, 255, 255, 0.15);
  --menu-shadow: 0 4px 20px rgba(15, 23, 42, 0.35);
  --menu-glass: rgba(255, 255, 255, 0.05);
  --menu-glass-border: rgba(255, 255, 255, 0.1);
  --menu-dropdown-bg: #ffffff;
  --menu-dropdown-text: #334155;
  --menu-dropdown-hover-bg: #f1f5f9;
  --menu-dropdown-hover-text: #0f172a;
  --menu-dropdown-active-accent: #3b82f6;
  --menu-mobile-bg: rgba(15, 23, 42, 0.98);
  --menu-mobile-dropdown-bg: rgba(30, 41, 59, 0.95);
}

/* Body */
body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  overflow-x: hidden;
}

/* ===================================
   HEADER & NAVIGATION
=================================== */
header {
  background: var(--menu-gradient);
  box-shadow: var(--menu-shadow);
}

header .navbar {
  background: transparent !important;
}

/* Brand Area */
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: var(--menu-text) !important;
  padding: 4px 6px;
  border-radius: 12px;
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.brand-link:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 5px 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.brand-link:hover .brand-logo {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.1);
}

.brand-logo img {
  height: 36px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.brand-text {
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: 0.4px;
  color: var(--menu-text);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  transition: text-shadow 0.3s ease;
}

.brand-link:hover .brand-text {
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.2);
}

/* Footer Brand Modifier */
.brand-link--footer {
  margin-bottom: 12px;
  padding: 6px 8px;
}

.brand-link--footer .brand-logo {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  padding: 5px 7px;
}

.brand-link--footer:hover .brand-logo {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
}

.brand-link--footer .brand-logo img {
  height: 38px;
}

.brand-link--footer .brand-text {
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-brand-accent {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 10px;
}

/* Nav Links */
.navbar-nav {
  gap: 4px;
}

.navbar-nav .nav-link {
  color: var(--menu-text) !important;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  position: relative;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.navbar-nav .nav-link:hover {
  background: var(--menu-link-hover-bg);
  color: var(--menu-text-hover) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link.active {
  background: var(--menu-link-active-bg);
  color: var(--menu-text-hover) !important;
  box-shadow: inset 0 -2px 0 var(--menu-text);
}

/* Dropdown */
.dropdown-menu {
  background: var(--menu-dropdown-bg);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-top: 0.5rem;
  padding: 8px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  color: var(--menu-dropdown-text);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 450;
  border-left: 3px solid transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    padding-left 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--menu-dropdown-hover-bg);
  color: var(--menu-dropdown-hover-text);
  border-left-color: var(--menu-dropdown-active-accent);
  padding-left: 1.15rem;
}

/* Mobile Menu */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--menu-mobile-bg);
    border-radius: 14px;
    padding: 16px;
    margin-top: 15px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
  }

  .navbar-nav {
    gap: 6px;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .nav-link {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    color: var(--menu-text) !important;
  }

  .navbar-nav .nav-link:hover {
    background: var(--menu-link-hover-bg);
  }

  .navbar-nav .nav-link:active {
    background: var(--menu-link-active-bg);
  }

  .navbar-nav .nav-link.active {
    background: var(--menu-link-active-bg);
    box-shadow: inset 3px 0 0 var(--menu-text);
  }

  .dropdown-menu {
    background: var(--menu-mobile-dropdown-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 6px;
    padding: 8px;
    box-shadow: none;
    animation: none;
  }

  .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 14px;
    border-left: 3px solid transparent;
  }

  .dropdown-item:hover,
  .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-left-color: var(--menu-dropdown-active-accent);
  }

  .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.12);
    margin: 6px 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: linear-gradient(135deg, #f59e0b, #f97316);
  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: linear-gradient(135deg, #fbbf24, #fb923c);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
}

/* 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(135deg, #1b3460 0%, #172c52 50%, #132445 100%);
  box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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 .brand-link:hover {
  padding-left: 8px;
}

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.5);
}

footer .form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: white;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.06);
}

footer .btn-light {
  border-radius: 6px;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
}

footer .btn-light {
  background: #f8fafc;
  color: #1b3460;
}

footer .btn-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  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.18);
  transform: translateY(-2px);
}

/* ===================================
   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;
  }

  .brand-logo img {
    height: 34px;
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .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) {
  .brand-logo img {
    height: 30px;
  }

  .brand-text {
    font-size: 0.95rem;
    letter-spacing: 0.2px;
  }

  .brand-logo {
    padding: 4px 6px;
    border-radius: 8px;
  }

  .brand-link--footer .brand-logo img {
    height: 32px;
  }

  .brand-link--footer .brand-text {
    font-size: 0.9rem;
  }

  .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;
  }
}
