/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.app-background {
  background-color: var(--background-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  padding: 24px 0;
  animation: fadeIn 0.3s ease-out;
}

/* Navigation */
.navbar {
  background-color: var(--surface-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--divider-color);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  height: 64px;
}

.navbar-brand {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.navbar-menu {
  display: flex;
  list-style: none;
}

.navbar-item {
  margin-left: 16px;
}

.navbar-link {
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  transition: background-color 0.2s;
}

.navbar-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.navbar-link.active {
  border-bottom: 2px solid var(--primary-color);
  font-weight: 600;
}

.navbar-link .material-icons {
  margin-right: 8px;
  font-size: 20px;
}

.navbar-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--surface-color);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  z-index: 1;
  border-radius: var(--border-radius);
  right: 0;
  top: 100%;
}

.dropdown-content a {
  color: var(--text-primary);
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.navbar-dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-category {
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.dropdown-category a span {
  margin-right: 10px;
}

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

.navbar-mobile-menu {
  display: none;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-mobile-menu .material-icons {
  font-size: 24px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  right: 0;
  background-color: var(--surface-color);
  width: 270px;
  height: calc(100vh - 64px);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
  display: block;
}

.mobile-menu-item {
  padding: 16px;
  display: flex;
  align-items: center;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--divider-color);
}

.mobile-menu-item .material-icons {
  margin-right: 16px;
}

.mobile-menu-item.active {
  background-color: rgba(245, 166, 35, 0.15);
}

/* Page Header */
.page-header {
  margin-bottom: 24px;
  border-left: 3px solid var(--primary-color);
  padding-left: 16px;
}

.page-header-title {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.page-header-icon {
  margin-right: 16px;
  color: var(--primary-color);
  font-size: 32px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

.page-header-subtitle {
  color: var(--text-secondary);
  margin-left: 48px;
}

/* Cards */
.card {
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-content {
  padding: 16px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
}

.card-subtitle .material-icons {
  font-size: 16px;
  margin-right: 4px;
}

.card-divider {
  height: 1px;
  background-color: var(--divider-color);
  margin: 16px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
  padding: 2px 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 12px;
  font-size: 16px;
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-secondary);
}

.search-bar-icon {
  color: var(--text-secondary);
}

.search-bar-clear {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
}

/* Loading Indicator */
.loading-indicator {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 150px;
  padding: 24px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  margin-top: 16px;
  color: var(--text-secondary);
}

/* Error Display */
.error-display {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  padding: 24px 0;
}

.error-icon {
  color: var(--error-color);
  font-size: 48px;
  margin-bottom: 16px;
}

.error-title {
  color: var(--error-color);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.error-message {
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
}

.error-button {
  margin-top: 16px;
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: black;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: black;
}

.btn-primary:hover {
  background-color: var(--primary-light);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: #3c3c3c;
}

.btn .material-icons {
  margin-right: 8px;
}

/* Chips/Tags */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 16px;
  font-size: 0.75rem;
  margin: 4px;
  background-color: rgba(255, 255, 255, 0.1);
}

.chip-primary {
  background-color: var(--primary-color);
  color: black;
}

.chip-success {
  background-color: var(--success-color);
  color: white;
}

.chip-error {
  background-color: var(--error-color);
  color: white;
}

.chip-warning {
  background-color: var(--warning-color);
  color: black;
}

.chip .material-icons {
  font-size: 16px;
  margin-right: 4px;
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--divider-color);
}

.tab {
  padding: 12px 16px;
  cursor: pointer;
  color: var(--text-primary);
  text-align: center;
  flex: 1;
  transition: color 0.2s;
  position: relative;
  justify-content: center;
}

.tab.active {
  color: var(--primary-color);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary-color);
}

/* Dialog/Modal */
.dialog-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.dialog {
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: dialogFadeIn 0.2s ease-out;
}

@keyframes dialogFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.dialog-title {
  padding: 16px 24px;
  border-bottom: 1px solid var(--divider-color);
  font-size: 1.25rem;
  font-weight: 600;
}

.dialog-content {
  padding: 24px;
  border-bottom: 1px solid var(--divider-color);
}

.dialog-actions {
  padding: 8px 24px;
  display: flex;
  justify-content: flex-end;
}

/* Footer */
.site-footer {
  background-color: var(--surface-color);
  padding: 24px 0;
  text-align: center;
  border-top: 1px solid var(--divider-color);
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }
  
  .navbar-mobile-menu {
    display: block;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  
  .page-header h1 {
    font-size: 1.5rem;
  }
  
  .page-header-subtitle {
    margin-left: 0;
  }
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--surface-color);
  border: 1px solid var(--divider-color);
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.2s;
}

.pagination-button:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.pagination-button:disabled {
  opacity: 0.5;
  cursor: default;
  background-color: var(--surface-color);
}

.pagination-info {
  padding: 0 16px;
  color: var(--text-secondary);
}

/* Match item hover effect */
.match-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

/* Recent search item hover effect */
.recent-search-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Add to style.css - Enhanced search bar styling */
.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
  padding: 2px 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.search-bar:focus-within {
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.15);
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 12px;
  font-size: 16px;
  outline: none;
  width: 100%;
}

.search-bar input::placeholder {
  color: var(--text-secondary);
}

.search-bar-icon {
  color: var(--text-secondary);
}

.search-bar-clear {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  transition: opacity 0.2s;
}

.search-bar-clear:hover {
  opacity: 0.8;
}

/* Stats search bar styling */
.stats-search-container {
  position: relative;
}

.stats-search-bar {
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius);
  padding: 0 16px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s;
}

.stats-search-bar:focus-within {
  border-color: var(--primary-color);
}

.stats-search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
  height: 100%;
  padding: 0 16px;
}

.platform-select {
  min-width: 120px;
  background-color: transparent;
  color: var(--text-primary);
  border: none;
  padding: 8px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 24px;
}

.search-button {
  height: 54px;
  width: 56px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s, background-color 0.2s;
  border-radius: var(--border-radius);
  background-color: var(--primary-color);
  color: black;
  border: none;
  cursor: pointer;
}

.search-button:hover {
  transform: translateY(-2px);
  background-color: var(--primary-light);
}

/* Dropdown styling */
.recent-searches-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 8px;
  border: 1px solid var(--divider-color);
  animation: dropdownFadeIn 0.2s ease-out;
}

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

.dropdown-header {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--divider-color);
  background-color: rgba(0, 0, 0, 0.1);
}

.dropdown-header .material-icons {
  margin-right: 8px;
  font-size: 16px;
}

.dropdown-header span {
  font-size: 0.875rem;
  font-weight: 600;
}

.recent-search-item {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.recent-search-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.recent-search-icon {
  margin-right: 8px;
  font-size: 16px;
  color: var(--text-secondary);
}

.recent-search-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 16px;
  border: 1px solid var(--divider-color);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: black;
}

.recent-search-info {
  flex: 1;
  min-width: 0;
}

.recent-search-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-search-platform {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.delete-search-button {
  background: none;
  border: none;
  color: var(--text-secondary);
  opacity: 0.6;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  border-radius: 50%;
}

.delete-search-button:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
}

/* General styling improvements */
body {
  background-color: var(--background-color);
  color: var(--text-primary);
  font-family: var(--font-family);
}

/* Better card styling */
.card {
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 16px;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-content {
  padding: 15px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.card-divider {
  height: 1px;
  background-color: var(--divider-color);
  margin: 16px 0;
}

/* Improved buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
  border: none;
  text-decoration: none;
  font-size: 0.9375rem;
}

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

.btn-primary {
  background-color: var(--primary-color);
  color: black;
  box-shadow: 0 2px 5px rgba(245, 166, 35, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  box-shadow: 0 4px 8px rgba(245, 166, 35, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-primary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  background-color: #3c3c3c;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.btn .material-icons {
  margin-right: 8px;
  font-size: 18px;
}

/* Better tabs styling */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--divider-color);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 12px 20px;
  cursor: pointer;
  color: var(--text-primary);
  text-align: center;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
  position: relative;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.tab:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.tab.active {
  color: var(--primary-color);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary-color);
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}

.tab .material-icons {
  font-size: 18px;
  margin-right: 6px;
}

/* Improved loading spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(245, 166, 35, 0.2);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Better chip styling */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  margin: 2px;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s;
}

.chip:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.chip-primary {
  background-color: var(--primary-color);
  color: black;
}

.chip-success {
  background-color: var(--success-color);
  color: white;
}

.chip-error {
  background-color: var(--error-color);
  color: white;
}

.chip-warning {
  background-color: var(--warning-color);
  color: black;
}

.chip .material-icons {
  font-size: 16px;
  margin-right: 4px;
}

/* Enhanced page header */
.page-header {
  margin-bottom: 32px;
  border-left: 3px solid var(--primary-color);
  padding-left: 20px;
  animation: fadeInLeft 0.5s ease-out;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.page-header-title {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.page-header-icon {
  margin-right: 16px;
  color: var(--primary-color);
  font-size: 32px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
  background: linear-gradient(90deg, var(--text-primary) 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header-subtitle {
  color: var(--text-secondary);
  margin-left: 48px;
  max-width: 600px;
}

/* Better dialog styling */
.dialog-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dialog {
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  max-width: 90%;
  width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: dialogScale 0.3s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes dialogScale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.dialog-title {
  padding: 20px 24px;
  border-bottom: 1px solid var(--divider-color);
  font-size: 1.25rem;
  font-weight: 600;
  position: relative;
}

.dialog-content {
  padding: 24px;
  border-bottom: 1px solid var(--divider-color);
}

.dialog-actions {
  padding: 12px 24px;
  display: flex;
  justify-content: flex-end;
}

/* Responsive Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
  
  .card-content {
    padding: 16px;
  }
  
  .page-header h1 {
    font-size: 1.5rem;
  }
  
  .page-header-subtitle {
    margin-left: 0;
  }
  
  .tabs {
    overflow-x: auto;
  }
  
  .dialog {
    width: 95%;
  }
  
  .stats-search-bar {
    flex-direction: column;
    height: auto;
    padding: 12px;
  }
  
  .stats-search-bar input {
    width: 100%;
    margin-bottom: 8px;
    padding: 8px 0;
  }
  
  .platform-select {
    width: 100%;
    margin-top: 8px;
  }
}

/* Better image handling */
img {
  max-width: 100%;
  height: auto;
}

img[onerror="this.style.display='none'"] {
  display: none;
}

/* Image backups - when images fail to load */
.image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 8px;
}

/* Fix for rank images */
.rank-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding: 4px;
}

/* Theme elements */
.highlight-text {
  color: var(--primary-color);
  font-weight: 600;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animation for page transitions */
.page-transition-enter {
  opacity: 0;
  transform: translateY(20px);
}

.page-transition-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s, transform 0.3s;
}

.page-transition-exit {
  opacity: 1;
}

.page-transition-exit-active {
  opacity: 0;
  transition: opacity 0.3s;
}

/* Gestione fallback immagini */
.image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  color: var(--text-secondary);
}

.operator-avatar-fallback,
.profile-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  border-radius: 50%;
  color: #000;
}

/* Forzare dimensioni canvas */
#rank-chart {
  width: 100% !important;
  height: 400px !important;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.header-icon {
    background-color: rgba(255, 153, 0, 0.1);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.header-icon .material-icons {
    color: var(--primary-color);
    font-size: 28px;
}

.header-text h1 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.header-text p {
    color: var(--text-secondary);
    margin: 4px 0 0 0;
}

/* Search Card */
.search-card {
    background-color: var(--surface-color);
    padding: 24px;
    margin-bottom: 32px;
}

.search-inputs {
   display: flex; /* Changed from grid to flex */
  align-items: center;
  gap: 0; /* No gap between elements */
}

.search-field-container {
    position: relative;
    width: 50%;
}

.search-field {
    display: flex;
    align-items: center;
    background-color: var(--background-color);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 16px;
    height: 56px;
    transition: border-color 0.2s;
}

.search-field:hover, .search-field:focus-within {
    border-color: var(--primary-color);
}

.search-field .material-icons {
    color: var(--text-secondary);
    margin-right: 8px;
}

.search-field input {
    flex: 1;
    background: none;
    border: none;
    height: 100%;
    color: var(--text-primary);
    font-size: 1.1rem;
    outline: none;
}

.platform-select-container {
    margin-left: auto;
    margin-right: 8px;
}

.platform-select-container select {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.platform-select-container select option {
    background-color: var(--background-color);
}

.search-button {
    background-color: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 8px;
    height: 55px;
    width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    margin-left: 10px;
}

.search-button:hover {
    background-color: var(--primary-light);
}

.search-button:disabled {
    background-color: rgba(255, 153, 0, 0.5);
    cursor: not-allowed;
}

/* Recent Searches Dropdown */
.recent-searches-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background-color: var(--surface-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary);
}

.dropdown-header .material-icons {
    font-size: 18px;
    margin-right: 8px;
}

.recent-search-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.recent-search-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.search-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 8px;
}

.search-item-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-item-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}


.search-item-name {
    font-weight: 500;
    color: var(--text-primary);
}

.search-item-platform {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.search-item-delete {
    opacity: 0.6;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: opacity 0.2s, background-color 0.2s;
}

.search-item-delete:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Error Message */
.error-message {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: rgba(244, 67, 54, 0.1);
    border-radius: 8px;
    margin-bottom: 24px;
    border-left: 3px solid var(--error-color);
}

.error-message .material-icons {
    color: var(--error-color);
    margin-right: 8px;
}

/* Loading Container */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-text {
    color: var(--text-secondary);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Player Info Card */
.player-info-card {
    margin-bottom: 24px;
}

.player-info-content {
    display: flex;
    align-items: center;
    padding: 24px;
}

.player-profile {
    display: flex;
    align-items: center;
}

.player-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 16px;
    border: 2px solid var(--primary-color);
}

.player-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
}

.player-avatar-placeholder .material-icons {
    font-size: 32px;
    color: #000;
}

.player-identity {
    display: flex;
    flex-direction: column;
}

.player-username {
    font-size: 1.5rem;
    margin: 0 0 4px 0;
}

.player-platform {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.player-platform .material-icons {
    font-size: 16px;
    margin-right: 4px;
}

.player-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 40px;
}

.rank-value {
    font-size: 22px;
}

.rank-badge {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
}

.player-mmr {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.player-info-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0 24px;
}

.player-stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
    padding: 16px 24px;
}

.player-stat {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 600;
}

/* Tabs */
.tabs-container {
    margin-bottom: 24px;
    background-color: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
}

.tabs {
    display: flex;
    width: 100%;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 16px;
    cursor: pointer;
    position: relative;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--primary-color);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.stats-card {
    height: 100%;
}

.card {
    background-color: var(--surface-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-content {
    padding: 24px;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.card-header .material-icons {
    color: var(--primary-color);
    margin-right: 8px;
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.card-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 16px 0;
}

.combat-stats, .match-stats {
    padding: 8px 0;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value.wins {
    color: var(--success-color);
}

.stat-value.losses {
    color: var(--error-color);
}

.stat-value.abandons {
    color: var(--warning-color);
}

/* Chart Container */
.chart-container {
    width: 100%;
    height: 400px;
    position: relative;
}

/* Rank Info Grid */
.rank-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.rank-info-item {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.rank-display {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.rank-icon {
    width: 40px;
    height: 40px;
    margin-right: 8px;
}

.rank-name {
    font-size: 1.25rem;
    font-weight: 500;
}

/* Match List */
.matches-list {
    max-height: 500px;
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    margin-top: 16px;
}

.match-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s;
}

.match-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.match-item:last-child {
    border-bottom: none;
}

.match-rank {
    margin-right: 16px;
}

.match-rank-icon {
    width: 50px;
    height: 50px;
    padding: 4px;
}

.rank-placeholder {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rank-placeholder .material-icons {
    color: var(--primary-color);
}

.match-info {
    flex: 1;
}

.match-rank-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.match-timestamp {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.match-mmr {
    text-align: right;
}

.match-mmr-value {
    font-weight: 600;
    margin-bottom: 4px;
}

.match-mmr-change {
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.match-mmr-change.positive {
    color: var(--success-color);
}

.match-mmr-change.negative {
    color: var(--error-color);
}

/* Platforms List */
.platforms-card {
    margin-top: 32px;
}

.platforms-list {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    margin-top: 16px;
}

.platform-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.platform-item:last-child {
    border-bottom: none;
}

.platform-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.platform-info {
    flex: 1;
}

.platform-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.platform-type {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .player-info-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .player-rank {
        margin-top: 16px;
        align-items: flex-start;
        flex-direction: row;
        gap: 16px;
    }
    
    .rank-badge {
        margin-bottom: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .rank-info-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .search-inputs {
        grid-template-columns: 1fr;
    }
}

/* Custom Platform Select Styling */
.custom-select-container {
  position: relative;
  margin-left: auto;
  min-width: 140px;
  z-index: 20;
}

.selected-platform {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 6px 12px;
  margin-right: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.selected-platform:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.selected-platform.active {
  background-color: rgba(255, 153, 0, 0.15);
  border-color: var(--primary-color);
}

.selected-platform .material-icons {
  color: var(--primary-color);
  margin-right: 8px;
  font-size: 20px;
}

.selected-platform .dropdown-arrow {
  margin-left: 8px;
  margin-right: 0;
  font-size: 18px;
  transition: transform 0.2s ease;
  color: var(--text-secondary);
}

.selected-platform.active .dropdown-arrow {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.platform-text {
  flex: 1;
  font-weight: 500;
  color: var(--text-primary);
}

.platform-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: var(--surface-color);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: none;
  z-index: 30;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInScale 0.2s ease-out;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.platform-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.platform-option:last-child {
  border-bottom: none;
}

.platform-option:hover {
  background-color: rgba(255, 153, 0, 0.1);
}

.platform-option:active {
  background-color: rgba(255, 153, 0, 0.2);
  transform: scale(0.98);
}

.platform-option .material-icons {
  color: var(--primary-color);
  margin-right: 12px;
  font-size: 20px;
}

.platform-option span:not(.material-icons) {
  font-weight: 500;
}

/* Enhanced Recent Searches Dropdown */
.recent-searches-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 12px;
  background-color: var(--surface-color);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform-origin: top center;
}

.recent-searches-dropdown::-webkit-scrollbar {
  width: 6px;
}

.recent-searches-dropdown::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.recent-searches-dropdown::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.dropdown-header {
  display: flex;
  align-items: center;
  padding: 16px;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  background-color: var(--surface-color);
  z-index: 2;
  backdrop-filter: blur(5px);
}

.dropdown-header .material-icons {
  font-size: 18px;
  margin-right: 10px;
  color: var(--primary-color);
}

.search-list {
  overflow-y: auto;
}

.recent-search-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.recent-search-item:last-child {
  border-bottom: none;
}

.recent-search-item:hover {
  background-color: rgba(255, 255, 255, 0.07);
}

.recent-search-item:active {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(0.98);
}

.search-item-platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: rgba(255, 153, 0, 0.15);
  margin-right: 12px;
}

.search-item-platform-icon .material-icons {
  font-size: 18px;
  color: var(--primary-color);
}

.search-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.search-item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-item-avatar .material-icons {
  color: #000;
  font-size: 20px;
}

.search-item-name {
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-platform {
  color: var(--text-secondary);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
}

.search-item-delete {
  opacity: 0.6;
  background: none;
  border: none;
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.search-item-delete:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
}

.search-item-delete:active {
  transform: scale(0.92);
}

/* Ripple Effect for Buttons */
.ripple-effect {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Enhanced Search Field */
.search-field {
  display: flex;
  align-items: center;
  background-color: var(--background-color);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 16px;
  height: 56px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-field:hover {
  border-color: rgba(255, 153, 0, 0.3);
}

.search-field:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.search-field .material-icons {
  color: var(--text-secondary);
  margin-right: 12px;
  font-size: 22px;
}

.search-field input {
  flex: 1;
  background: none;
  border: none;
  height: 100%;
  color: var(--text-primary);
  font-size: 1.1rem;
  outline: none;
}

/* Enhanced Search Button */
.search-button {
  background-color: var(--primary-color);
  color: #000;
  border: none;
  border-radius: 12px;
  height: 56px;
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 10px;
  box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.search-button:hover {
  background-color: #ffa726;
  box-shadow: 0 8px 25px rgba(255, 153, 0, 0.4);
}

/* Animation for dropdown transitions */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Search card enhancements */
.search-card {
  background-color: var(--surface-color);
  padding: 24px;
  margin-bottom: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-inputs {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Enhanced Scrollbar for Matches List */
.matches-list {
  max-height: 500px;
  overflow-y: auto;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin-top: 16px;
  padding: 8px 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Webkit-based browsers (Chrome, Safari, newer Edge) */
.matches-list::-webkit-scrollbar {
  width: 6px;
}

.matches-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  margin: 8px 0;
}

.matches-list::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.matches-list::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* Firefox */
.matches-list {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.2);
}

/* Enhanced Chart Styling */
.chart-container {
  width: 100%;
  height: 450px;
  position: relative;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.chart-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#rank-chart-container {
  position: relative;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 20px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#rank-chart-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  border-radius: 8px 8px 0 0;
}

/* Additional card styling for better chart presentation */
.card .card-content .card-header {
  margin-bottom: 24px;
}

/* Chart loading animation */
@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 0.8; }
  100% { opacity: 0.6; }
}

.loading-container .loading-spinner {
  animation: spin 1s linear infinite, pulse 1.5s infinite ease-in-out;
}