/* ─── Reset and Base Styles ─── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Layout Container ─── */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* ─── Navigation Bar ─── */
nav {
  background-color: #2c3e50;
  display: flex;
  justify-content: center;
  gap: 2em;
  padding: 0.5em 0;
  position: relative;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2em;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  line-height: 1.1em;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

nav a:hover,
nav a.active {
  color: #00aaff;
}

/* ─── Dropdown ─── */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: -2em;
  display: none;
  flex-direction: column;
  z-index: 10;
  min-width: 100px;
  padding: 1.0em;
  margin: 0;
  gap: 0.3em;
}

.dropdown:hover .dropdown-content {
  display: flex;
}

.dropdown-content a {
  display: block;
  color: #2c3e50;
  padding: 0.1em 0.5em;
  margin: 0;
  line-height: 1;
  text-decoration: none;
  font-weight: bold;
  word-spacing: 0.1em;
  font-size: 1.0em;
  transition: color 0.3s ease;
}

.dropdown-content a:hover {
  color: #00aaff;
}

/* ─── User Info ─── */
#user-info {
  position: absolute;
  right: 1em;
  top: 0.5em;
  color: white;
  font-size: 0.9em;
}

/* ─── Main Content ─── */
main {
  flex: 1;
  padding: 1em;
  text-align: center;
}

/* ─── Footer ─── */
footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 0.5em 0;
  font-weight: 600;
  font-size: 0.9em;
}

form input,
form button {
  display: block;
  margin: 0.5em auto;
  padding: 0.5em;
  width: 200px;
}

/* ─── Button Style ─── */
.btn {
  display: inline-block;
  background-color: #2980b9;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.btn:hover {
  background-color: #3498db;
}

/* ─── Watchlist Layout ─── */
#ticker-count.btn {
  display: inline-block;
  background-color: #2980b9;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
}

#ticker-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0;
  list-style: none;
}

#ticker-list li {
  margin: 0;
}

.ticker-entry {
  background-color: #e6f2ff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-weight: 500;
  transition: transform 0.2s ease;
  text-align: center;
}

.ticker-entry:hover {
  transform: scale(1.02);
  background-color: #d0e7ff;
}
