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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
}

/* Add form label styling */
.form-label {
  display: block;
  text-align: left;
  margin-bottom: 15px;
  color: #475569;
  padding-left: 5px;
  font-weight: bold;
  text-align: center;
}

/* Hero Section */
.hero {
  background: linear-gradient(
      135deg,
      rgba(0, 153, 219, 0.9) 0%,
      rgba(0, 104, 181, 0.9) 50%,
      rgba(0, 60, 116, 0.9) 100%
    ),
    url("img/bg.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 60px 32px;
  color: #fff;
  margin-bottom: 34px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.intel-logo {
  max-width: 100px;
  margin-bottom: 25px;
  filter: brightness(0) invert(1);
}

.hero h1 {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  color: white;
}

.hero-divider {
  width: 100px;
  height: 3px;
  margin: 26px auto;
  background-color: #00c7fd;
}

.hero p {
  font-size: 22px;
  letter-spacing: 1px;
  font-weight: 300;
  color: white;
}

/* Main container */
.container {
  max-width: 700px;
  width: 90%;
  margin: 0 auto 20px;
  padding: 26px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 5px 24px rgba(0, 60, 116, 0.07);
  text-align: center;
}

/* Check-in form */
.check-in {
  width: 100%;
  margin: 0 auto;
  padding: 30px;
  background-color: #f8fafc;
  border-radius: 16px;
  text-align: center;
}

.form-group {
  display: flex;
  gap: 15px;
  width: 100%;
  align-items: center; /* <— fixes vertical centering */
  justify-content: center; /
}

/* Form elements */
input {
  flex: 1;
  padding: 16px 15px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-size: 17px;
  font-weight: 500;
  background: white;
  color: #2c3e50;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

input:focus {
  border-color: #0071c5;
  box-shadow: 0 0 0 4px rgba(0, 113, 197, 0.15);
}

button {
  background-color: #0071c5;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0 28px;
  min-width: 160px;
  height: 56px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 113, 197, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

button:hover {
  background-color: #005a9e;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 113, 197, 0.3);
}

/* Icon spacing */
.fas {
  margin-right: 8px;
}

button .fas {
  font-size: 18px;
  margin-right: 10px;
}

.attendance-header i {
  font-size: 22px;
  margin-right: 8px;
}

/* Attendance section spacing */
.attendance-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 15px;
  font-size: 17px;
  color: #64748b;
}

/* Attendance tracker styling */
.attendance-tracker {
  max-width: 700px;
  width: 90%;
  margin: 0 auto 40px;
  padding: 0 20px;
  text-align: center;
}

.attendance-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 15px;
  font-size: 17px;
  color: #64748b;
}

#attendeeCount {
  color: #0071c5;
  font-size: 24px;
  font-weight: 700;
  margin: 0 2px;
}

.attendance-header i {
  color: #0071c5;
  font-size: 20px;
  margin-right: 4px;
}

/* Max attendees text */
.attendance-header span:last-child {
  color: #64748b;
  font-size: 17px;
}

/* Progress container - simplified */
.progress-container {
  width: 100%;
  max-width: 500px;
  height: 16px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin: 8px auto;
  position: relative;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background-color: #0071c5;
  background-image: linear-gradient(90deg, #0071c5, #00aeef);
  border-radius: 10px;
  transition: width 0.6s ease;
}

/* Adjust spacing between components */
.container {
  margin-top: 0;
}

/* Messages */
#greeting {
  font-weight: 500;
  font-size: 1.5rem;
  padding: 16px 20px;
  border-radius: 8px;
  color: #333;
  margin-bottom: 15px;
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* winning message */
#winningMessage {
  font-weight: 700;
  font-size: 1.5rem;
  padding: 16px 20px;
  border-radius: 8px;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
  opacity: 0;
  transition: opacity 2s ease;
  display: none;
}

.success-message {
  background-color: #e8f4fc;
  color: #003c71;
}

/* Counter */
#attendeeCount {
  color: #0071c5;
  font-size: 24px;
  font-weight: 700;
  margin: 0 2px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-size: 14px;
}


.footer-link {
  color: #64748b;
  text-decoration: none;
}

.footer-link:hover {
  color: #0071c5;
  text-decoration: underline;
}

.attendee-list {
  max-height: 220px;           /* fixed height box */           /* vertical scroll if list gets long */
  border: 2px solid #f1f5f9;   /* soft border like team stats divider */
  border-radius: 12px;
  padding: 15px;
  margin: 20px 0;
  background-color: #f8fafc;   /* same as form background */
  box-shadow: 0 4px 12px rgba(0, 113, 197, 0.08);
  text-align: left;
}

.attendee-list h2 {
  text-align: center;
  color: #64748b;
  font-size: 16px;
  margin-bottom: 20px;
}

.attendee-scroll {
  max-height: 200px;   /* adjust height as needed */
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f9fafb;
}

.attendee-list ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.attendee-list li {
  padding: 6px 10px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 1.1rem;
  color: #334155;
  text-align: center;
}

.attendee-list li:last-child {
  border-bottom: none;
}

.liName {
  padding-right: 1rem;
}

.liTeam {
  padding-left: 0rem;
  margin-left: 0rem;
}

.teamIcons{
  margin: 0rem;
  padding: 0;
}


/* Input wrapper for name and team select */
.input-wrapper {
  flex: 1;
  display: flex;
  gap: 10px;
}

select {
  padding: 16px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-size: 17px;
  font-weight: 500;
  background: white;
  color: #2c3e50;
  cursor: pointer;
  min-width: 140px;
}

/* Team Stats */
.team-stats {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #f1f5f9;
}

.team-stats h3 {
  color: #64748b;
  font-size: 16px;
  margin-bottom: 20px;
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.team-card {
  padding: 15px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Team card colors */
.team-card.water {
  background-color: #e8f7fc;
}
.team-card.zero {
  background-color: #ecfdf3;
}
.team-card.power {
  background-color: #fff7ed;
}

.team-name {
  font-size: 15px;
  font-weight: 500;
  color: #475569;
}

#reset {
  display: flex;
  justify-content: center;
}

#reset-Btn {
  display: flex;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hero {
    padding: 35px 20px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .container {
    padding: 32px;
    margin: 0 15px 30px;
  }

  .form-group {
    flex-direction: column;
  }

  input,
  button {
    width: 100%;
    max-width: 244px;
  }

  button {
    height: 50px;
  }

  .input-wrapper {
    flex-direction: column;
  }

  .teams-grid {
    grid-template-columns: 1fr;
  }
  
  #reset {
    flex-direction: column;
    align-items: center;
  }
  #resetBtn {
    min-width: 244px;
  }
  #winningMessage {
    font-size: 1.35rem;
  }
}

@media (max-width: 575px) {
  #winningMessage {
    font-size: 1rem;
  }

  #greeting {
    font-size: 1.25rem;
  }
}

@media (max-width: 447px) {
  #winningMessage {
    font-size: .9rem;
  }
  #greeting {
    font-size: .75rem;
  }
  .attendee-list li {
    font-size: .75rem;
  }
}

@media (max-width: 400px) {
  #winningMessage {
    font-size: 1rem;
  }
}

