/* Enhanced Header Styles for GoalTalents
 * This CSS integrates the improved header designs with both logged-in and logged-out states
 */

/* Online Indicator for User Avatar */
.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background-color: #4CAF50;
  border-radius: 50%;
  border: 2px solid white;
}

/* Notification badge styling */
.notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  margin-left: 8px;
  font-weight: bold;
}

/* Improved dropdown menu styling */
#accountDropdown {
  border-radius: 12px;
  overflow: hidden;
  min-width: 200px;
  right: 0;
  top: calc(100% + 10px);
  background-color: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#accountDropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 20px;
  width: 16px;
  height: 16px;
  background-color: white;
  transform: rotate(45deg);
  box-shadow: -2px -2px 5px rgba(0,0,0,0.05);
  z-index: -1;
}

/* Improved account header */
.account-header {
  border-radius: 12px 12px 0 0;
}

/* Enhanced account button styling */
.account-btn {
  display: flex;
  align-items: center;
  background-color: #f5f7fa;
  border-radius: 30px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.account-btn:hover {
  background-color: white;
  border-color: #e0e0e0;
}

.account-btn img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #36A359;
}

/* Better dropdown item styling */
#accountDropdown a.dropdown-item {
  display: block;
  padding: 12px 16px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  position: relative;
  overflow: visible;
}

#accountDropdown a.dropdown-item::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 20px;
  height: 20px;
  background-image: url('../soccer-ball.gif');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 5;
}

#accountDropdown a.dropdown-item:hover {
  background-color: rgba(240, 255, 250, 0.5);
  padding-left: 40px !important;
  color: #00a000 !important;
  border-left-color: transparent;
}

#accountDropdown a.dropdown-item:hover::before {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

#accountDropdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

#accountDropdown li {
  width: 100%;
  display: block;
}

/* Improved user menu buttons */
.user-menu .icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  position: relative;
}

.user-menu .icon-btn:hover {
  background-color: #e5e5e5;
}

/* Account header styling */
.account-header {
  background-color: #f9f9f9;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

/* Main navigation hover enhancement */
nav .nav-link:hover {
  transform: translateY(-1px);
}

/* Dropdown arrow rotation fix */
.dropdown-arrow {
  transition: transform 0.3s;
}

.nav-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Soccer ball hover effect for all navigation dropdowns */
.dropdown-item,
nav .dropdown a,
.dropdown .dropdown-item,
#nav-menu .dropdown a {
  position: relative;
  transition: all 0.3s ease;
  overflow: visible;
  padding-left: 16px;
}

.dropdown-item::before,
nav .dropdown a::before,
.dropdown .dropdown-item::before,
#nav-menu .dropdown a::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 20px;
  height: 20px;
  background-image: url('../soccer-ball.gif');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 5;
}

.dropdown-item:hover,
nav .dropdown a:hover,
.dropdown .dropdown-item:hover,
#nav-menu .dropdown a:hover {
  background-color: rgba(240, 255, 250, 0.5);
  padding-left: 40px !important;
  color: #00a000 !important;
}

.dropdown-item:hover::before,
nav .dropdown a:hover::before,
.dropdown .dropdown-item:hover::before,
#nav-menu .dropdown a:hover::before {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

/* Special handling for account dropdown items with images */
#accountDropdown a.dropdown-item:first-child {
  display: flex;
  align-items: center;
  padding-left: 16px !important; /* Always keep padding for first item */
}

#accountDropdown a.dropdown-item:first-child:hover {
  padding-left: 16px !important;
}

#accountDropdown a.dropdown-item:first-child::before {
  display: none; /* Hide soccer ball for menu item with avatar */
}

/* Fix for duplicate headers in iframes */
#content-iframe {
  border: none !important;
  width: 100% !important;
  height: 100% !important;
  overflow: auto !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  display: block !important;
}

/* Ensure the iframe doesn't have any padding/margin */
#content-iframe {
  padding: 0 !important;
  margin: 0 !important;
}

/* Style the #main-container to ensure proper sizing */
#main-container {
  height: calc(100vh - 80px) !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Force styling for iframe parent container */
#main-container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Increase the specificity of the header fix */
html body iframe#content-iframe {
  --header-display: none !important;
}