:root {
  --purple-900: #2b0c3c;
  --purple-800: #3a0f54;
  --purple-700: #4b116f;
  --purple-600: #5b1a88;
  --accent-yellow: #ffee00;
  --text-light: #fff;
  --sidebar-width: 260px;
}

* { 
  box-sizing: border-box; 
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, var(--purple-900), var(--purple-700)) no-repeat fixed;
  color: var(--text-light);
  min-height: 100vh;
  transition: all 0.2s ease;
  margin: 0;
}

.app {
  display: flex;
  min-height: 100vh; 
  width: 100%;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
}

.hamburger-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--text-light);
  border-radius: 3px;
  transition: all 0.2s ease;
}

.hamburger-btn:hover span {
  background: var(--accent-yellow);
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--purple-800);
  color: var(--text-light);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.close-sidebar {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.close-sidebar:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-yellow);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  backdrop-filter: blur(2px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text-light);
}

.sidebar-header .logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.home-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.home-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #a855f7;
  transform: scale(1.1);
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--accent-yellow);
  background: rgba(0, 0, 0, 0.4);
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--text-light);
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-type-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--accent-yellow);
  margin-left: auto;
  opacity: 0.8;
}

.no-results {
  padding: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.btn {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

.btn.purple {
  background: linear-gradient(90deg, var(--purple-700), var(--purple-600));
  color: #fff;
}

.btn.ghost {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--text-light);
}

.btn:hover {
  transform: translateY(-1px);
}

.leagues { 
  font-size: 12px; 
  font-weight: 700; 
  margin-top: 12px; 
  color: var(--text-light);
  opacity: 0.8;
}

.league-list { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
}

.league-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.9;
  background: transparent;
  border: none;
  border-radius: 8px;
  width: 100%;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  text-decoration: none;
}

.league-link:hover {
  color: var(--accent-yellow);
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
  text-decoration: none;
}

.league-link img {
  width: 1.2em;
  height: 1.2em;
  object-fit: contain;
  border-radius: 4px;
  vertical-align: middle;
}

.main {
  flex: 1;
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: transparent; 
}

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.topbar-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.brand h1 {
  font-size: 28px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.underline {
  width: 120px;
  height: 4px;
  background: var(--accent-yellow);
  margin: 6px auto 0;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.map-container {
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
  background: #dbe4ea;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.map-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.jvm-tooltip {
  background-color: var(--purple-900);
  border: 1px solid var(--accent-yellow);
  font-family: 'Inter', sans-serif;
  padding: 6px 10px;
  border-radius: 4px;
}

.tickets-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--purple-800);
  color: var(--text-light);
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  padding: 25px;
  position: relative;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  opacity: 0.7;
  transition: all 0.2s ease;
}

.close-modal:hover {
  opacity: 1;
  transform: scale(1.1);
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-light);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--text-light);
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  background: var(--purple-900);
  color: var(--text-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 0 2px rgba(255, 238, 0, 0.2);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.submit-ticket {
  background: linear-gradient(90deg, var(--purple-700), var(--purple-600));
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

.submit-ticket:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.auth-link {
  color: var(--accent-yellow);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.auth-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* Media Queries */
@media (max-width: 900px) {
  .hamburger-btn {
    display: flex;
  }
  
  .close-sidebar {
    display: block;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999;
    transform: translateX(-100%);
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  }
  
  .sidebar.active {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
  }
  
  .sidebar-overlay {
    display: none;
  }
  
  .sidebar-overlay.active {
    display: block;
  }
  
  .main {
    margin-left: 0;
    padding: 20px;
  }
  
  .topbar {
    margin-top: 10px;
  }
  
  .topbar-buttons {
    width: 100%;
    justify-content: space-between;
  }
  
  .map-title {
    font-size: 16px;
  }
  
  .brand h1 {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .hamburger-btn {
    top: 15px;
    left: 15px;
    width: 25px;
    height: 18px;
  }
  
  .sidebar {
    width: 280px;
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 100%;
  }
  
  .hamburger-btn {
    top: 12px;
    left: 12px;
  }
  
  .topbar-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .map-container {
    padding: 15px;
  }
}

/* Container do Dropdown */
.user-menu-container {
    position: relative;
    display: inline-block;
}

/* O Menu em si (escondido por padrão) */
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background-color: var(--purple-800);
    min-width: 170px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
    border-radius: 8px;
    z-index: 1000;
    border: 1px solid var(--purple-700);
    overflow: hidden;
}

/* Itens do Menu */
.dropdown-item {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: 0.2s;
}

.dropdown-item:hover { background: var(--purple-700); }
.show-dropdown { display: block !important; }

.dropdown-item.logout:hover {
    background-color: #ff4444; /* Vermelho para o logout */
}

.dropdown-divider {
    height: 1px;
    background-color: var(--purple-700);
    margin: 4px 0;
}

/* Classe para mostrar o menu via JS */
.show-dropdown {
    display: block !important;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}