@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
  .content-auto {
    content-visibility: auto;
  }

  .text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .bg-gradient-primary {
    background: linear-gradient(135deg, #C8161E 0%, #E63946 100%);
  }

  .transition-all-300 {
    transition: all 0.3s ease;
  }

  .signal-wave {
    position: relative;
  }

  .signal-wave::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath fill='%23C8161E' fill-opacity='0.1' d='M0,10 Q25,20 50,10 T100,10 L100,0 L0,0 Z'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 100px 20px;
    opacity: 0.2;
    z-index: 0;
  }

  .antennas-bg {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%23C8161E' fill-opacity='0.05' d='M10,10 L90,10 L90,20 L10,20 Z M10,40 L90,40 L90,50 L10,50 Z M10,70 L90,70 L90,80 L10,80 Z'/%3E%3C/svg%3E");
  }
}

/* 定义自定义颜色 */
@layer utilities {
  .text-primary {
    color: #C8161E;
  }

  .bg-primary {
    background-color: #C8161E;
  }

  .bg-primary/10 {
    background-color: rgba(200, 22, 30, 0.1);
  }

  .shadow-primary/20 {
    box-shadow: 0 4px 20px rgba(200, 22, 30, 0.2);
  }
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.pagination button {
  margin: 0 5px;
  padding: 8px 12px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

.pagination button.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

th.sort-asc::after {
  content: " ↑";
  color: #007bff;
}

th.sort-desc::after {
  content: " ↓";
  color: #007bff;
}

.leaderboard-container {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto
}

.model-new {
  font-size: 14px;
  font-weight: 800;
  color: red;
  border-style: solid;
  border-width: 2px;
  border-color: red;
  padding-left: 2px;
  padding-right: 2px;
}