
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #0a192f;
  color: #ffffff;
  min-height: 100vh;
}

/* Layout */
.container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 250px;
  background: #112240;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.sidebar h2,
.sidebar h3 {
  color: #64ffda;
  margin-bottom: 10px;
}

.nav-button {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
  background: transparent;
  border: 1px solid #233554;
  color: #fff;
  border-radius: 5px;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s;
}

.nav-button:hover,
.nav-button.active {
  background: #64ffda;
  color: #0a192f;
}

.hidden {
  display: none !important;
}

.bottom-section {
  border-top: 1px solid #233554;
  padding-top: 20px;
}

#authSection label {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #9db4c0;
}

#authSection input {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  background: #0f253a;
  border-radius: 4px;
  border: 1px solid #355070;
  color: #fff;
  margin-bottom: 10px;
}

#authSection button,button {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: none;
  border-radius: 4px;
  background: #64ffda;
  color: #0a192f;
  font-weight: bold;
  cursor: pointer;
}

#authSection button:hover,button{
  background: #52e0c4;
}

/* Main Content */
.main {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  background: #0a192f;
}

#home-section,
#leaderboard-section {
  background: #0a1e38;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(100, 255, 218, 0.1);
}

.main h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #64ffda;
}

.main p,
.main h2,
.main h3 {
  color: #c3dfff;
}

.main label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  color: #a8d0e6;
}

.main input,
.main select,input{
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  background: rgba(13, 35, 64, 0.7);
  color: #fff;
  border: 1px solid #355070;
  border-radius: 6px;
  backdrop-filter: blur(5px);
}

.main input::placeholder,
.main select,input {
  color: #b5d6e3;
}

#roastBtn {
  margin-top: 15px;
  padding: 12px 20px;
  background: #64ffda;
  color: #0a192f;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s;
}

#roastBtn:hover {
  background: #52e0c4;
}

.message {
  margin-top: 10px;
  font-weight: bold;
  color: #ff6b6b;
}

.roast-result {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #64ffda;
  padding: 15px;
  border-radius: 10px;
  font-style: italic;
  color: #dff;
  backdrop-filter: blur(4px);
}

audio {
  margin-top: 15px;
  background: #0a1e38;
  border-radius: 10px;
}

hr {
  margin: 30px 0;
  border: none;
  height: 1px;
  background: linear-gradient(to right, #64ffda, #233554, #64ffda);
  border-radius: 5px;
}

/* Table Design */
#leaderboardBest table,
#leaderboardWorst table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  overflow: hidden;
  color: #d3f4ff;
  margin-top: 10px;
}

#leaderboardBest th,
#leaderboardWorst th {
  background: rgba(100, 255, 218, 0.1);
  color: #64ffda;
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #355070;
}

#leaderboardBest td,
#leaderboardWorst td {
  padding: 10px;
  border-bottom: 1px solid #1f3248;
  transition: background 0.3s;
  position: relative;
}

/* Row + Column Highlighting */
#leaderboardBest tr:hover td,
#leaderboardWorst tr:hover td {
  background: rgba(100, 255, 218, 0.1);
}

#leaderboardBest td:hover::before,
#leaderboardWorst td:hover::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 100%;
  background: rgba(100, 255, 218, 0.08);
  z-index: -1;
}

/* For highlight across both axes */
#leaderboardBest tr:hover td:hover,
#leaderboardWorst tr:hover td:hover {
  background: rgba(100, 255, 218, 0.25);
  color: #ffffff;
  font-weight: bold;
}

/* Containers for tables */
#recentRoasts,
#leaderboardBest,
#leaderboardWorst {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 10px;
  margin-top: 10px;
  border: 1px solid #355070;
  backdrop-filter: blur(4px);
  color: #d3f4ff;
}

/* Scrollbar Styling */
.main::-webkit-scrollbar {
  width: 8px;
}

.main::-webkit-scrollbar-thumb {
  background: #355070;
  border-radius: 10px;
}

.main::-webkit-scrollbar-thumb:hover {
  background: #2a405d;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .main {
    padding: 20px;
  }
}

