/* === dollasaenz2.css | Fully cleaned and optimized for Icon Hover === */

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f1f1f1;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.6;
}



header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  gap: 20px;
  overflow: visible; /* ALLOW GLOW TO EXPAND */
}

/* Nav link base style */
nav ul li a {
  text-decoration: none;
  color: #fff;
  padding: 8px; /* Tight padding */
  border-radius: 50%; /* Circular hover area */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  transition: all 0.3s ease;
}

/* Nav hover and active state */
nav ul li a:hover,
nav ul li a.active {
  background: rgba(255, 99, 71, 0.15); /* Soft red background */
  color: #ff6347;
  box-shadow: 0 0 10px rgba(255, 99, 71, 0.6);
  transform: scale(1.05); /* Slightly enlarge on hover */
}

/* Locked menu item style */
nav ul li a.locked {
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

/* Popup Content */
.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 300px;
  width: 90%;
}

.popup-content button {
  margin: 5px;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  background-color: #ff6347;
  color: #fff;
}

.popup-content button:hover {
  background-color: #cc3f2c;
}

/* Main Content Area */
main {
  padding: 20px;
  width: 90%;
  max-width: 800px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 20px;
  background-color: #333;
  color: #fff;
  text-align: center;
  width: 100%;
}

/* User Controls */
.user-controls {
  position: absolute;
  top: 20px;
  right: 20px;
}

.user-dropdown button {
  background-color: #ff6347;
  border: none;
  border-radius: 50%;
  padding: 10px;
  color: #fff;
  cursor: pointer;
}

.user-dropdown .dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 160px;
  box-shadow: 0px 8px 12px rgba(0,0,0,0.2);
  border-radius: 6px;
  z-index: 10;
}

.user-dropdown .dropdown-content a {
  color: #333;
  padding: 12px 16px;
  display: block;
  text-decoration: none;
}

.user-dropdown .dropdown-content a:hover {
  background-color: #ffe6e1;
}

.user-dropdown:hover .dropdown-content {
  display: block;
}

/* Dashboard Section */
#dashboard {
  max-width: 800px;
  margin: 30px auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.image-placeholder {
  width: 100px;
  height: 100px;
  background-color: #ddd;
  border-radius: 50%;
  margin: 0 auto 20px;
  background-image: url('images/avatar.png');
  background-size: cover;
  background-position: center;
}

#user-stats p {
  font-size: 1.1em;
  text-align: center;
  margin: 10px 0;
}

#transaction-history {
  margin-top: 30px;
}

#transaction-history h3 {
  text-align: center;
  margin-bottom: 15px;
}

#transaction-history ul {
  list-style: none;
  padding: 0;
}

#transaction-history li {
  padding: 10px;
  background: #eee;
  border-radius: 5px;
  margin-bottom: 10px;
}

.dashboard-controls {
  text-align: center;
  margin-top: 30px;
}

.dashboard-controls a {
  display: inline-block;
  margin: 10px;
  padding: 10px 20px;
  background: #ff6347;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.dashboard-controls a:hover {
  background: #cc3f2c;
}

/* Icon Tabs */
#menu li a i {
  font-size: 1.5rem;
  display: block;
}

#menu li a .label {
  display: block;
  font-size: 0.75rem;
  margin-top: 2px;
}

/* Responsive for Small Screens */
@media (max-width: 600px) {
  header h1 {
    display: none;
  }

  header nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #333;
    padding: 10px 0;
    z-index: 999;
  }

  #menu {
    justify-content: space-around;
    gap: 0;
  }

  nav ul {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  nav ul::-webkit-scrollbar {
    display: none;
  }

  #menu li a .label {
    display: none;
  }

  .user-controls {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 1000;
  }

  .user-controls img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
  }

  nav ul li a:hover,
  nav ul li a.active {
    background: rgba(255, 99, 71, 0.15);
    color: #ff6347;
    box-shadow: 0 0 6px rgba(255, 99, 71, 0.6);
    transform: scale(1.05);
  }

  #menu li img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    display: block;
    margin: 0 auto;
  }
}
