/* ============================================
   Republic Financial - Modern Attractive Layout
   Beautiful Navbar & Footer Design
   ============================================ */

/* =================================== 
   MODERN ATTRACTIVE NAVBAR
   =================================== */

.navbar {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  min-height: 70px;
  padding: 0.5rem 0;
}

.navbar:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Logo Styling */
.navbar-brand {
  padding: 0.5rem 0;
}

.logo-hover {
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-hover:hover {
  transform: scale(1.05) rotate(2deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Navigation Item */
.nav-item-custom {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: #6c757d;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  background: rgba(108, 117, 125, 0.1);
}

.nav-item-custom:hover {
  color: var(--brand-primary);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.nav-item-custom i {
  font-size: 1.1rem;
}

/* Action Buttons */
.action-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* Removed ::before pseudo-element that was causing flickering between buttons */

.action-btn:hover {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.action-btn:active {
  transform: translateY(0) scale(0.95);
}

/* Theme Toggle Icons */
.light-icon {
  display: block;
  color: #ffa500;
  font-size: 1.2rem;
}

.dark-icon {
  display: none;
  color: #6c5ce7;
  font-size: 1.2rem;
}

[data-theme="dark"] .light-icon {
  display: none;
}

[data-theme="dark"] .dark-icon {
  display: block !important;
}

/* Fullscreen Toggle Icons */
.fullscreen-expand {
  display: block;
  color: #6c5ce7;
  font-size: 1.2rem;
}

.fullscreen-compress {
  display: none;
  color: #e74c3c;
  font-size: 1.2rem;
}

.is-fullscreen .fullscreen-expand {
  display: none;
}

.is-fullscreen .fullscreen-compress {
  display: block !important;
}

/* Main content fullscreen mode */
.main-content.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--bg-primary);
  overflow-y: auto;
  padding: 2rem;
}

/* Hide compress icon by default */
.fullscreen-compress {
  display: none;
}

/* Hide fullscreen button on mobile devices */
@media (max-width: 991px) {
  #fullscreenToggle {
    display: none !important;
  }
  
  .action-btn#fullscreenToggle {
    display: none !important;
  }
}

/* Also hide on small mobile */
@media (max-width: 576px) {
  #fullscreenToggle,
  button#fullscreenToggle {
    display: none !important;
  }
}

/* Notification Enhancement */
.noti.has-notification::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  border-radius: 50%;
  border: 2px solid white;
  animation: notificationPulse 2s infinite;
  box-shadow: 0 2px 6px rgba(255, 107, 107, 0.4);
}

@keyframes notificationPulse {
  0% { 
    transform: scale(1); 
    opacity: 1; 
  }
  50% { 
    transform: scale(1.3); 
    opacity: 0.7; 
  }
  100% { 
    transform: scale(1); 
    opacity: 1; 
  }
}

/* User Menu Button */
.user-menu-btn {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 25px;
  color: #495057;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-menu-btn:hover {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
  border-color: var(--brand-primary);
}

.user-avatar i {
  font-size: 1.5rem;
  color: var(--brand-primary);
}

.user-menu-btn:hover .user-avatar i {
  color: white;
}

/* User Dropdown - Professional Compact Design */
.user-dropdown {
  border: none;
  border-radius: 8px;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-top: 0.5rem;
  min-width: 240px;
  animation: dropdownFadeIn 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0;
  overflow: hidden;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-dropdown .dropdown-header {
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  padding: 0.875rem 1rem;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.user-avatar-large {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-avatar-large i {
  font-size: 1.25rem;
  color: white;
}

.dropdown-header .fw-semibold {
  color: #2d3748;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
  line-height: 1.3;
}

.dropdown-header .text-muted {
  color: #718096 !important;
  font-size: 0.8125rem;
  line-height: 1.3;
}

.user-dropdown .dropdown-item {
  padding: 0.625rem 1rem;
  color: #4a5568;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  display: flex !important;
  align-items: center;
  margin: 0;
  border-radius: 0;
}

.user-dropdown .dropdown-item:hover {
  background: #edf2f7;
  color: var(--brand-primary);
  text-decoration: none;
}

.user-dropdown .dropdown-item i {
  width: 20px;
  height: 20px;
  font-size: 0.875rem;
  color: #718096;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.user-dropdown .dropdown-item span {
  line-height: 1.4;
  font-size: 0.875rem;
  display: inline-block;
}

.user-dropdown .dropdown-item:hover i {
  color: var(--brand-primary);
}

.user-dropdown .logout-item {
  color: #4a5568;
}

.user-dropdown .logout-item i {
  color: #e53e3e;
}

.user-dropdown .logout-item:hover {
  background: #fed7d7;
  color: #c53030;
}

.user-dropdown .logout-item:hover i {
  color: #c53030;
}

.dropdown-divider {
  margin: 0.5rem 1rem;
  border-color: #e2e8f0;
}

/* =================================== 
   MODERN FOOTER
   =================================== */

footer {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

footer img {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

footer:hover img {
  transform: scale(1.05);
}

.badge.bg-success {
  background: linear-gradient(135deg, #28a745, #20c997) !important;
  border: none;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

/* =================================== 
   DARK MODE ENHANCEMENTS
   =================================== */

[data-theme="dark"] .navbar {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%) !important;
  border-bottom-color: var(--border-primary);
}

[data-theme="dark"] footer {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%) !important;
  border-top-color: var(--border-primary) !important;
}

[data-theme="dark"] .logo-hover,
[data-theme="dark"] footer img {
  filter: brightness(0.9) drop-shadow(0 2px 4px rgba(255, 255, 255, 0.1));
}

[data-theme="dark"] .nav-item-custom {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .action-btn {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .user-menu-btn {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
  color: var(--text-primary);
  border-color: var(--border-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}


[data-theme="dark"] .user-dropdown {
  background: var(--bg-card);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: var(--border-primary);
}

[data-theme="dark"] .user-dropdown .dropdown-header {
  background: var(--bg-secondary);
  border-bottom-color: var(--border-primary);
}

[data-theme="dark"] .user-avatar-large {
  background: var(--brand-primary);
}

[data-theme="dark"] .dropdown-header .fw-semibold {
  color: var(--text-primary);
}

[data-theme="dark"] .dropdown-header .text-muted {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .dropdown-item {
  color: var(--text-secondary);
}

[data-theme="dark"] .dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--brand-primary);
}

[data-theme="dark"] .dropdown-item i {
  color: var(--text-secondary);
}

[data-theme="dark"] .dropdown-item:hover i {
  color: var(--brand-primary);
}

[data-theme="dark"] .logout-item:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* =================================== 
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
  .navbar {
    min-height: 60px;
  }
  
  .logo-hover {
    height: 36px;
  }
  
  .action-btn {
    width: 38px;
    height: 38px;
  }
  
  .nav-item-custom {
    padding: 0.4rem 0.8rem;
  }
  
  .user-menu-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
  }
}

@media (max-width: 576px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  footer .row {
    text-align: center;
  }
  
  footer .col-md-6:last-child {
    margin-top: 0.75rem;
  }
  
  .user-dropdown {
    min-width: 260px;
  }
}

/* =================================== 
   SMOOTH ANIMATIONS
   =================================== */

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.navbar * {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.navbar {
  animation: fadeIn 0.6s ease-out;
}

/* Hover glow effects */
.action-btn:hover,
.user-menu-btn:hover {
  box-shadow: 
    0 6px 20px rgba(74, 144, 226, 0.4),
    0 0 20px rgba(74, 144, 226, 0.2);
}