* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* :root {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  font-weight: 400;

  color: #334155; /* dark-gray */
/*   background-color: #ffffff;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
 */
/* body {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  padding: 20px;
} */

/* #app {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 0;
} */ 

#app {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
	
}
/* Header Styles */
header {
    text-align: center;
     background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%);
    color: white !important;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 10px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
}




header h1 {
    font-size: 45px !important;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}


.subtitle {
  font-size: 1.1rem;
  color: white;
  font-weight: 500;
}

/* Controls Container */
.controls {
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
}

.control-group {
  margin-bottom: 30px;
}

.control-group:last-of-type {
  margin-bottom: 0;
}

.control-label {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  color: #1e3a8a !important;
  margin-bottom: 15px !important;
}

/* Age Range Controls */
.age-range-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.age-inputs {
  display: flex;
  gap: 20px;
}

.age-input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.age-input-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155 !important;
}

.age-input {
  padding: 12px 16px !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 8px !important;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background: #ffffff !important;
}

.age-input:focus {
  outline: none !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.slider-container {
  position: relative;
}

.age-slider {
  width: 100%;
  height: 8px !important;
  border-radius: 4px !important;
  background: linear-gradient(90deg, #3b82f6, #f59e0b) !important;
  outline: none !important;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
	padding:4px!important;
}

.age-slider:hover {
  opacity: 1;
}

.age-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50% !important;
  background: #f59e0b;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
              0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 3px solid #ffffff;
}

.age-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50% !important;
  background: #f59e0b;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
              0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 3px solid #ffffff;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #64748b;
}

/* Format Select */
.format-select {
  width: 100%;
  padding: 12px 16px !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 8px !important;
  font-size: 1rem;
  font-weight: 500;
  background: #ffffff !important;
  cursor: pointer;
  transition: all 0.3s ease;
}

.format-select:focus {
  outline: none !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Quantity Controls */
.quantity-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quantity-buttons {
  display: flex;
  gap: 10px;
}

.qty-btn {
  flex: 1;
  padding: 12px 20px !important;
  border: 2px solid #3b82f6 !important;
  background: #ffffff !important;
  color: #3b82f6 !important;
  border-radius: 8px !important;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.qty-btn:hover {
  background: #3b82f6 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.qty-btn.active {
  background: #3b82f6 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
              0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.custom-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Celebration Animation */
.celebration-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
}

.celebration-container.active {
  opacity: 1;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #f59e0b;
  animation: confetti-fall 3s ease-out forwards;
}

.confetti:nth-child(1) { left: 10%; background: #3b82f6; animation-delay: 0s; transform: rotate(45deg); }
.confetti:nth-child(2) { left: 20%; background: #f59e0b; animation-delay: 0.2s; transform: rotate(90deg); }
.confetti:nth-child(3) { left: 30%; background: #3b82f6; animation-delay: 0.4s; transform: rotate(135deg); }
.confetti:nth-child(4) { left: 40%; background: #d97706; animation-delay: 0.1s; transform: rotate(180deg); }
.confetti:nth-child(5) { left: 50%; background: #1e3a8a; animation-delay: 0.3s; transform: rotate(225deg); }
.confetti:nth-child(6) { left: 60%; background: #fbbf24; animation-delay: 0.5s; transform: rotate(270deg); }
.confetti:nth-child(7) { left: 70%; background: #3b82f6; animation-delay: 0.15s; transform: rotate(315deg); }
.confetti:nth-child(8) { left: 80%; background: #f59e0b; animation-delay: 0.35s; transform: rotate(360deg); }
.confetti:nth-child(9) { left: 90%; background: #1e3a8a; animation-delay: 0.25s; transform: rotate(45deg); }
.confetti:nth-child(10) { left: 95%; background: #d97706; animation-delay: 0.45s; transform: rotate(90deg); }

@keyframes confetti-fall {
  0% { top: -10px; opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
  50% { opacity: 1; transform: translateY(50vh) rotate(180deg) scale(0.8); }
  100% { top: 100vh; opacity: 0; transform: translateY(100vh) rotate(360deg) scale(0.5); }
}

/* Birthday celebration text animation */
@keyframes celebrate {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.results-title.celebrating {
  animation: celebrate 0.6s ease-in-out;
  color: #f59e0b;
}

.custom-quantity label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  white-space: nowrap;
}

.custom-input {
  flex: 1;
  padding: 12px 16px !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 8px !important;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.custom-input:focus {
  outline: none !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Generate Button */
.generate-btn {
  width: 100%;
  padding: 18px 24px !important;
 background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%);
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.generate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
              0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.generate-btn:active {
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 1.4rem;
}

/* Results Container */
.results-container {
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 30px !important;
  border: 1px solid #e2e8f0 !important;
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.results-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e3a8a !important;
  margin-bottom: 15px;
  text-align: center;
}

.results-stats {
  text-align: center;
  margin-bottom: 25px;
}

.results-count {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #1e3a8a);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.birthdates-list {
  display: grid;
  gap: 12px;
  margin-bottom: 25px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.birthday-item {
  background: #f8fafc;
  border: 2px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 16px 20px !important;
  font-size: 1rem;
  font-weight: 500;
  color: #334155;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.birthday-item:hover {
  border-color: #3b82f6;
  transform: translateX(5px);
  background: rgba(59, 130, 246, 0.05);
}

.birthday-item::before {
  content: "🎂";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.birthday-item:hover::before {
  opacity: 1;
}

.copy-btn {
  width: 100%;
  padding: 14px 20px !important;
  background: #1e3a8a !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: #1e2039 !important;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
/*   body { padding: 10px; } */
  .title { font-size: 35px !important; }
	.container{
		padding:0 !important
	}
	#app{
		padding:0 !important
	}
  .controls { padding: 20px; }
  .age-inputs { flex-direction: column; gap: 15px; }
  .quantity-buttons { flex-wrap: wrap; }
  .custom-quantity { flex-direction: column; align-items: stretch; gap: 10px; }
  .custom-quantity label { text-align: center; }
  .results-container { padding: 20px; }
}

@media (max-width: 480px) {
  .title { font-size: 1.8rem; }
  .subtitle { font-size: 1rem; }
  .controls { padding: 15px; }
  .control-label { font-size: 1rem; }
  .qty-btn { padding: 10px 15px; font-size: 0.9rem; }
}

/* Scrollbar Styling */
.birthdates-list::-webkit-scrollbar { width: 8px; }
.birthdates-list::-webkit-scrollbar-track { background: #f8fafc; border-radius: 4px; }
.birthdates-list::-webkit-scrollbar-thumb { background: #3b82f6; border-radius: 4px; }
.birthdates-list::-webkit-scrollbar-thumb:hover { background: #1e3a8a; }
