/* .body{
    background-color: rgba(177, 165, 165, 0.541);
}
.header{
    display: flex;
}
.paragraph{
    padding: 10% 20% 10% 0%;
}
.head{
    font-family: 'Berkshire Swash', cursive;
}
.card{
    border: 1px solid rgb(247, 231, 188);
    border-radius: 0;
}
.full-card{
    padding-left: 1%;

}

.second-section{
    padding-top: 1%;
}

.bar{
    margin-left: 12%;
}
 */

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

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.animated-bg::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 50px 50px;
  animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Header Section */
.header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px 20px;
  border-radius: 0 0 50px 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.header-img {
  width: 150px;
  height: 150px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.header-text h1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 700px;
}

/* Stats Overview Section */
.stats-overview {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-card {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 5px;
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.progress-bar-custom {
  height: 8px;
  border-radius: 10px;
  background: #e0e0e0;
  overflow: hidden;
  margin-top: 15px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 10px;
  transition: width 0.5s ease;
}

/* Player Cards */
.player-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.player-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.player-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.player-info {
  padding: 20px;
  text-align: center;
  background: #2c3e50;
  color: white;
}

.player-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.player-stats {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.select-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  color: white;
  padding: 12px 40px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.select-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.select-btn:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Selection Panel */
.selection-panel {
  position: sticky;
  top: 20px;
}

.panel-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.panel-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 15px;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 1.2rem;
}

.selected-player-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.selected-player-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.remove-btn {
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.remove-btn:hover {
  background: #c0392b;
  transform: rotate(90deg);
}

.budget-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.budget-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.calculate-btn {
  width: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  color: white;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.calculate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.expense-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.expense-label {
  color: #555;
  font-weight: 500;
}

.expense-value {
  color: #667eea;
  font-weight: 700;
  font-size: 1.1rem;
}

.total-expense {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 15px;
  border-radius: 10px;
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.2rem;
}

/* Error Message */
.error-message {
  background: #e74c3c;
  color: white;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: none;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-message.show {
  display: block;
}

/* Footer */
footer {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
  border-radius: 50px 50px 0 0;
}

/* Responsive */
@media (max-width: 768px) {
  .header-text h1 {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .player-card img {
    height: 220px;
  }

  .selection-panel {
    position: static;
    margin-top: 30px;
  }
}

.input-group-custom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.input-label {
  color: #555;
  font-weight: 500;
  font-size: 0.9rem;
}
