body {
  margin: 0;
  font-family: sans-serif;
  background: #f5f5f5;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2c3e50;
  color: white;
  padding: 10px 20px;
}

.logo {
  font-size: 20px;
  font-weight: bold;
}

.burger {
  font-size: 26px;
  cursor: pointer;
}

.menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 20px;
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 6px;
  overflow: hidden;
}

.menu a {
  padding: 10px 15px;
  color: #2c3e50;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.menu a:last-child {
  border-bottom: none;
}

.tabs {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.tab {
  padding: 10px 20px;
  margin: 0 5px;
  background: #ecf0f1;
  border-radius: 6px;
  cursor: pointer;
}

.tab.active {
  background: #3498db;
  color: white;
}

.tab-content {
  padding: 20px;
  display: none;
}

.tab-content.active {
  display: block;
}

.ranking-table {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.ranking-table h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.ranking-table table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

.ranking-table th {
  background-color: #f0f0f0;
}

/*Auth*/
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-box {
  background: white;
  padding: 30px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 90%;
  max-width: 400px;
}

.login-box h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

.login-box label {
  display: block;
  margin-bottom: 5px;
  color: #555;
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.login-button {
  width: 100%;
  padding: 12px;
  background-color: #3498db;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.login-button:hover {
  background-color: #2980b9;
}
/* Стили для <select> — Школа и Класс */
.login-box select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  background-color: #fff;
  font-size: 16px;
  appearance: none; /* убирает стрелку в Safari */
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='292.4' height='292.4'%3E%3Cpath fill='%23999' d='M287 69.4L166.6 189.8c-5.5 5.5-14.3 5.5-19.8 0L5.4 69.4c-7.1-7.1-2.1-19.4 7.9-19.4h266.3c10 0 15 12.3 7.9 19.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

/* При фокусе */
.login-box select:focus {
  border-color: #3498db;
  outline: none;
}

/* Медиа-запрос — для мобильных */
@media (max-width: 600px) {
  .login-box select {
    font-size: 15px;
    padding: 9px 10px;
  }
}