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

body {
  font-family: "Arial", sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.whitepaper {
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 60px 50px;
  margin-bottom: 30px;
}

.header {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-bottom: 50px;
  border-bottom: 3px solid #09cc7f;
  padding-bottom: 30px;
}

.title {
  font-size: 28px;
  color: #09cc7f;
  font-weight: 700;
  margin-bottom: 15px;
}

.subtitle {
  font-size: 22px;
  color: #4a5568;
  font-style: italic;
  margin-bottom: 10px;
}

.event-detail {
  background: #f7fafc;
  padding: 20px;
  border-radius: 6px;
  margin: 20px 0;
  border-left: 4px solid #38a169;
  width: 100%;
}

.controls {
  padding: 30px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-bottom: 1px solid #dee2e6;
}

.search-container {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.search-box {
  width: 100%;
  padding: 15px 50px 15px 20px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 50px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-box:focus {
  border-color: #2a5298;
  box-shadow: 0 0 20px rgba(42, 82, 152, 0.3);
  transform: translateY(-2px);
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 20px;
}

.stats {
  text-align: center;
  margin-top: 20px;
  font-size: 18px;
  color: #666;
  font-weight: 500;
}

.participants-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 30px;
}

@media (max-width: 1024px) {
  .participants-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .participants-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px;
  }

  .whitepaper {
    padding: 15px;
  }

  .container {
    padding: 30px 15px;
  }
}

@media (max-width: 480px) {
  .participants-grid {
    grid-template-columns: 1fr;
  }
}

.participant-item {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  background: white;
}

.participant-item:hover {
  background: linear-gradient(135deg, #f8f9ff, #e8f2ff);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.participant-item:nth-child(4n) {
  border-right: none;
}

.participant-name {
  font-weight: 600;
  color: #333;
  font-size: 16px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.participant-item:hover .participant-name {
  color: #2a5298;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 18px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 15px;
  margin: 20px;
}

.no-results::before {
  content: "🔍";
  display: block;
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.add-participant-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.add-participant-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 12px 30px rgba(40, 167, 69, 0.4);
}

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

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.modal-title {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}

.modal-input {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}

.modal-input:focus {
  border-color: #2a5298;
}

.modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.modal-btn {
  padding: 12px 30px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-btn-primary {
  background: linear-gradient(135deg, #2a5298, #4a90e2);
  color: white;
}

.modal-btn-secondary {
  background: #f8f9fa;
  color: #666;
  border: 2px solid #dee2e6;
}

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

.loading {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 18px;
}

.entry-animation {
  animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.highlight {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7) !important;
  animation: pulse 1s ease-in-out;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.winners-section {
  padding: 30px;
}

.section-title {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
  font-size: 2.2em;
  border-bottom: 2px solid #09cc7f;
  padding-bottom: 10px;
}

.winner-category {
  margin-bottom: 30px;
}

.winner-category h3 {
  color: #09cc7f;
  font-size: 1.6em;
  margin-bottom: 15px;
  border-left: 5px solid #09cc7f;
  padding-left: 10px;
}

.winner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.winner-card {
  background-color: #ecf0f1;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.winner-card h4 {
  color: #2c3e50;
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 10px;
  background: #2a5298;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  min-width: 45px;
  text-align: center;
}

.position-two h4 {
  background: #27ae60;
}

.position-one h4 {
  background: #f39c12;
}

.position-three h4 {
  background: #95a5a6;
}

.winner-card p {
  margin: 5px 0;
  font-size: 1.1em;
  font-weight: bold;
}

.position-two {
  border-bottom: 3px solid #27ae60; /* Green for position 1 */
}

.position-one {
  border-bottom: 3px solid #f39c12; /* Orange for position 2 */
}

.position-three {
  border-bottom: 3px solid #95a5a6; /* Orange for position 2 */
}

.winner-list {
  background-color: #ecf0f1;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.winner-list p {
  margin: 8px 0;
  font-size: 1.1em;
  padding-left: 10px;
  border-left: 3px solid #95a5a6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .winner-grid {
    grid-template-columns: 1fr;
  }
}

.participants-btn {
    margin-top: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.submit-btn {
    /* display: inline-flex; */
    align-items: center;
    gap: 12px;
    background: #3b9c6c;
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
    margin: 0 auto;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #09cc7f;
    background: #09cc7f;
    /* color: #1a365d; */
}

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

.btn-icon {
    /* font-size: 22px; */
    margin-right: 5px;
    animation: pulse 2s infinite;
}

.btn-arrow {
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(5px);
}