/* Base Customer Layout Styles */

/* Global Styles */
* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Header Navigation - Start House Modern Style */
.top-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
  padding: 10px 0;
  color: #ffffff;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.top-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  display: flex;
  gap: 25px;
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.contact-info span:hover {
  opacity: 1;
  color: #d4af37;
}

.contact-info i {
  font-size: 0.8rem;
  color: #d4af37;
}

.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.lang-switch {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.lang-switch:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: #d4af37;
  color: #d4af37;
}

/* Main Navigation */
.main-navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: #2c2c2c !important;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: translateY(-1px);
}

.logo {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
  font-size: 1.2rem;
  font-weight: 700;
  border: 2px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

.logo:hover {
  border-color: #d4af37;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.logo-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 10px;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.navbar-brand:hover .logo-img {
  filter: brightness(1);
}

.brand-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2c2c2c;
  margin: 0;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: #d4af37;
  margin: 0;
  line-height: 1;
  font-weight: 500;
  font-style: italic;
}

.navbar-toggler {
  border: none;
  padding: 10px;
  border-radius: 10px;
  background: #f8f9fa;
  color: #2c2c2c;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
  background: rgba(212, 175, 55, 0.1);
}

.navbar-toggler:hover {
  background: rgba(212, 175, 55, 0.1);
  color: #d4af37;
}

.navbar-nav {
  gap: 6px;
}

.nav-link {
  color: #2c2c2c !important;
  font-weight: 500;
  padding: 14px 16px !important;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transition: left 0.6s;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: #d4af37 !important;
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.nav-link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  box-shadow: 0 6px 20px rgba(44, 44, 44, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.nav-link.active:hover {
  color: #d4af37 !important;
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
}

.nav-link i {
  font-size: 1.1rem;
  width: 18px;
  text-align: center;
  transition: transform 0.3s ease;
}

.nav-link:hover i {
  transform: scale(1.1);
}

/* Notification Dropdown - Start House Style */
.notification-dropdown {
  width: 400px;
  max-height: 520px;
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.notification-header {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  color: white;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.notification-header h6 {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}

.notification-header .btn-outline-primary {
  border-color: rgba(212, 175, 55, 0.5);
  color: #d4af37;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.notification-header .btn-outline-primary:hover {
  background: #d4af37;
  color: #2c2c2c;
  border-color: #d4af37;
}

.notification-header h6 {
  margin: 0;
  font-weight: 600;
  color: #ffffff;
}

.notification-header .btn {
  color: #d4af37;
  border-color: rgba(212, 175, 55, 0.3);
  font-size: 0.8rem;
  font-weight: 500;
}

.notification-header .btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: #d4af37;
  color: #d4af37;
}

.notification-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 0;
  background: #ffffff;
}

.notification-item {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.notification-item:hover {
  background: #f8f9fa;
  transform: translateX(2px);
}

.notification-item.unread {
  background: rgba(212, 175, 55, 0.05);
  border-left: 4px solid #d4af37;
}

.notification-item.unread:hover {
  background: rgba(212, 175, 55, 0.08);
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
}

.notification-title {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
  font-size: 0.9rem;
  line-height: 1.3;
}

.notification-message {
  color: #6b7280;
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 6px;
}

.notification-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #9ca3af;
}

.notification-type {
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.notification-type.success {
  background: #dcfce7;
  color: #166534;
}

.notification-type.info {
  background: #dbeafe;
  color: #1e40af;
}

.notification-type.warning {
  background: #fef3c7;
  color: #92400e;
}

.notification-type.error,
.notification-type.urgent {
  background: #fee2e2;
  color: #991b1b;
}

.notification-footer {
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}

.notification-loading {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

.notification-empty {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

#notification-badge, #notification-badge-mobile {
  font-size: 0.65rem;
  min-width: 18px;
  height: 18px;
  line-height: 16px;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3) !important;
  animation: pulse 2s infinite;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
  z-index: 10 !important;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

/* Override Bootstrap positioning for better desktop badge placement */
.navbar-nav .nav-item .position-relative .start-100 {
  left: 83% !important;
}

.navbar-nav .nav-item .position-relative .top-0 {
  top: 3px !important;
}

.navbar-nav .nav-item .position-relative .translate-middle {
  transform: none !important;
}

/* Mobile Notification Icon - Start House Style */
.notification-mobile-icon {
  position: relative;
}

.notification-mobile-icon .nav-link {
  background: none !important;
  border: none !important;
  padding: 10px !important;
  border-radius: 10px !important;
  text-decoration: none;
  color: #2c2c2c !important;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  height: auto;
}

.notification-mobile-icon .nav-link:hover {
  background: rgba(212, 175, 55, 0.1) !important;
  color: #d4af37 !important;
  transform: scale(1.05);
}

.notification-mobile-icon .fas.fa-bell {
  font-size: 1.4rem;
  color: inherit;
  transition: transform 0.3s ease;
}

.notification-mobile-icon .nav-link:hover .fas.fa-bell {
  transform: rotate(15deg);
}

/* Badge styling for mobile */
#notification-badge-mobile {
  font-size: 0.6rem !important;
  min-width: 16px !important;
  height: 16px !important;
  line-height: 14px !important;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: white !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
  z-index: 10 !important;
}

/* Override Bootstrap positioning for mobile badge */
.notification-mobile-icon .position-relative .start-100 {
  left: 50% !important;
}

.notification-mobile-icon .position-relative .top-0 {
  top: 50% !important;
}

.notification-mobile-icon .position-relative .translate-middle {
  transform: translate(-50%, -50%) !important;
}

/* Mobile badge centered styling */
#notification-badge-mobile {
  background: rgba(220, 38, 38, 0.9) !important;
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  z-index: 1000 !important;
  pointer-events: none; /* Không block click vào icon */
  min-width: 16px !important;
  height: 16px !important;
  font-size: 0.55rem !important;
  line-height: 12px !important;
}

/* Content area */
.main-content {
  min-height: calc(100vh - 140px);
  padding: 20px 0;
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h5 {
  color: #f9fafb;
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer-section p, .footer-section a {
  color: #d1d5db;
  text-decoration: none;
  line-height: 1.6;
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: #4f46e5;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.social-links a {
  width: 36px;
  height: 36px;
  background: #374151;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #4f46e5;
  color: white;
  transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
  .top-header {
    padding: 6px 0;
  }
  
  .contact-info {
    gap: 12px;
    font-size: 0.8rem;
  }
  
  .contact-info span:last-child {
    display: none;
  }
  
  .navbar-collapse {
    background: white;
    margin-top: 12px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }
  
  .nav-link {
    margin-bottom: 4px;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .top-header {
    padding: 8px 0;
    font-size: 0.8rem;
  }
  
  .contact-info {
    gap: 15px;
  }
  
  .contact-info span {
    gap: 6px;
  }
  
  .brand-text {
    font-size: 1.4rem;
  }
  
  .brand-subtitle {
    font-size: 0.8rem;
  }
  
  .nav-link {
    padding: 12px 12px !important;
    font-size: 0.9rem;
  }
  
  .nav-link i {
    font-size: 1rem;
  }
  
  .notification-dropdown {
    width: 320px;
    max-height: 450px;
  }
}

@media (max-width: 576px) {
  .top-header .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .contact-info {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  
  .main-navbar {
    padding: 12px 0;
  }
  
  .navbar-brand {
    gap: 12px;
  }
  
  .logo, .logo-img {
    width: 40px;
    height: 40px;
  }
  
  .brand-text {
    font-size: 1.3rem;
  }
  
  .brand-subtitle {
    font-size: 0.75rem;
  }
  
  .notification-dropdown {
    width: 300px;
    max-height: 400px;
  }
  
  .notification-header {
    padding: 15px 18px;
  }
  
  .notification-item {
    padding: 15px 18px;
  }
}
