/* Swimming Theme Color Palette */
:root {
  --pool-blue: #0077BE;
  --pool-light-blue: #4A9FCC;
  --pool-dark-blue: #004E7A;
  --water-teal: #00A8CC;
  --wave-blue: #5DADE2;
  --lane-yellow: #FFD700;
  --splash-white: #F0F8FF;
  --pool-border: #003F5C;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Wave Header */
.wave-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(180deg, var(--pool-blue) 0%, var(--pool-light-blue) 100%);
  clip-path: ellipse(100% 100% at 50% 0%);
  z-index: -1;
}

/* Swimming Navigation */
.swimming-nav {
  background: linear-gradient(90deg, var(--pool-dark-blue) 0%, var(--pool-blue) 100%);
  box-shadow: 0 4px 15px rgba(0, 119, 190, 0.3);
  border-bottom: 3px solid var(--lane-yellow);
}

.swimming-nav .navbar-brand {
  font-size: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.swimming-nav .navbar-brand:hover {
  transform: scale(1.05);
}

.swimming-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
}

.swimming-nav .nav-link:hover {
  color: var(--lane-yellow) !important;
  transform: translateY(-2px);
}

.swimming-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--lane-yellow);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.swimming-nav .nav-link:hover::after {
  width: 80%;
}

/* Card Styles with Pool Theme */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 119, 190, 0.15);
  transition: all 0.3s ease;
  background: white;
  overflow: hidden;
  border-top: 4px solid var(--pool-blue);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 119, 190, 0.25);
}

.card-header {
  background: linear-gradient(135deg, var(--pool-light-blue) 0%, var(--pool-blue) 100%);
  color: white;
  font-weight: 600;
  border: none;
  padding: 1rem 1.5rem;
}

/* Heat Display Cards */
.heat-card {
  border-left: 5px solid var(--lane-yellow);
  margin-bottom: 1.5rem;
}

.lane-badge {
  background: var(--pool-blue);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  display: inline-block;
  margin: 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 119, 190, 0.3);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--pool-blue) 0%, var(--water-teal) 100%);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 119, 190, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--pool-dark-blue) 0%, var(--pool-blue) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 190, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #28A745 0%, #20C997 100%);
  border: none;
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

.btn-danger {
  background: linear-gradient(135deg, #DC3545 0%, #C82333 100%);
  border: none;
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

/* Table Styles */
.table {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 119, 190, 0.1);
}

.table thead {
  background: linear-gradient(135deg, var(--pool-blue) 0%, var(--pool-light-blue) 100%);
  color: white;
}

.table thead th {
  border: none;
  padding: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background: var(--splash-white);
  transform: scale(1.01);
}

/* Swimming Footer */
.swimming-footer {
  background: linear-gradient(180deg, var(--pool-dark-blue) 0%, var(--pool-border) 100%);
  position: relative;
  margin-top: auto;
}

.wave-footer {
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(180deg, transparent 0%, var(--pool-dark-blue) 100%);
  clip-path: ellipse(100% 100% at 50% 100%);
}

/* Form Controls */
.form-control, .form-select {
  border: 2px solid var(--pool-light-blue);
  border-radius: 10px;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--pool-blue);
  box-shadow: 0 0 0 0.25rem rgba(0, 119, 190, 0.15);
}

/* Badge Styles */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
}

.badge-pool {
  background: var(--pool-blue);
  color: white;
}

.badge-lane {
  background: var(--lane-yellow);
  color: var(--pool-dark-blue);
}

/* Alert Styles */
.alert {
  border: none;
  border-radius: 15px;
  border-left: 5px solid;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-info {
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  border-left-color: var(--pool-blue);
  color: var(--pool-dark-blue);
}

.alert-success {
  background: linear-gradient(135deg, #D4EDDA 0%, #C3E6CB 100%);
  border-left-color: #28A745;
  color: #155724;
}

.alert-danger {
  background: linear-gradient(135deg, #F8D7DA 0%, #F5C6CB 100%);
  border-left-color: #DC3545;
  color: #721C24;
}

/* Splash Animation */
@keyframes splash {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.splash-effect {
  animation: splash 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .swimming-nav .navbar-brand {
    font-size: 1.2rem;
  }

  .card {
    margin-bottom: 1rem;
  }
}