/* DLT Specific Styles */

.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 10;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

.title {
  font-size: 3rem;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(162, 155, 254, 0.3);
}

.subtitle {
  font-size: 1.1rem;
}

/* Info Banner */
.info-banner {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 25px;
  margin-bottom: 30px;
  background: rgba(162, 155, 254, 0.1);
  border: 1px solid rgba(162, 155, 254, 0.2);
  border-radius: 12px;
  color: var(--text-color);
  backdrop-filter: blur(10px);
}

.info-icon {
  color: var(--accent-color);
  font-size: 1.2rem;
}

/* Codes Container */
.codes-container {
  flex: 1;
}

.codes__ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.codes__li {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: slideIn 0.5s ease-out backwards;
  animation-delay: calc(var(--item-index) * 0.05s);
}

.codes__li:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-sm);
}

.codes__li_index {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
  margin-right: 20px;
  width: 30px;
  text-align: right;
  opacity: 0.6;
}

/* Balls */
.front__ball, .back__ball {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  margin: 0 5px;
  box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.front__ball::after, .back__ball::after {
  content: '';
  position: absolute;
  top: 5%;
  left: 15%;
  width: 30%;
  height: 20%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  transform: rotate(-45deg);
}

.front__ball {
  background: var(--ball-red-gradient);
  box-shadow: var(--ball-red-shadow), inset 0 -4px 6px rgba(0,0,0,0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.back__ball {
  background: var(--ball-blue-gradient);
  box-shadow: var(--ball-blue-shadow), inset 0 -4px 6px rgba(0,0,0,0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-left: 15px; /* Separation from front balls */
}

/* Separator Line */
.codes__line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  margin: 10px 0;
}

/* Footer & Button */
footer {
  margin-top: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.check-button {
  background: var(--glass-bg);
  border: 1px solid var(--success-color);
  color: var(--success-color);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
}

.check-button:hover {
  background: var(--success-color);
  color: white;
  box-shadow: 0 0 20px rgba(0, 184, 148, 0.4);
}

.footer-info {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Background Animation Elements */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s infinite alternate;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Responsive */
@media (max-width: 768px) {
  .codes__li {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 20px;
    padding: 20px;
  }
  
  .codes__li_index {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    margin-right: 0;
  }
  
  .back__ball {
    margin-left: 5px;
    margin-top: 10px; /* Separate on new line if wrapping */
  }
  
  .title {
    font-size: 2rem;
  }
}

/* Dialog Styles */
#myDialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--accent-color);
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  color: var(--text-color);
  text-align: center;
  animation: dialogFadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dialogFadeIn {
  from { opacity: 0; transform: translate(-50%, -40%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

#myDialog p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.result-balls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.result-ball {
  transform: scale(1.1);
}

.prize-results {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 15px;
}

.prize-results h3 {
  color: var(--accent-color);
  margin-bottom: 15px;
}

.prize-list {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prize-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: rgba(0, 184, 148, 0.15);
  border: 1px solid rgba(0, 184, 148, 0.3);
  border-radius: 8px;
  font-size: 0.9rem;
}

.prize-level {
  font-weight: bold;
  color: #55efc4;
}

.prize-match {
  margin-left: 10px;
  opacity: 0.7;
  font-size: 0.8rem;
}

.dialog-close {
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.3s;
}

.dialog-close:hover {
  opacity: 1;
}

.no-prize {
  color: var(--text-light);
  padding: 20px;
}

/* Active Ball States (Winning Numbers) */
.front__ball.active, .back__ball.active {
  background: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
  box-shadow: 0 0 25px #00b894, 0 0 10px #55efc4, inset 0 0 15px rgba(255, 255, 255, 0.4);
  border: 2px solid #fff;
  z-index: 10;
  transform: scale(1.2) !important;
  animation: pulseGreen 1.5s infinite ease-in-out;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 20px #00b894, 0 0 10px #55efc4;
    transform: scale(1.2);
  }
  50% {
    box-shadow: 0 0 40px #00b894, 0 0 20px #55efc4;
    transform: scale(1.25);
    border-color: #55efc4;
  }
  100% {
    box-shadow: 0 0 20px #00b894, 0 0 10px #55efc4;
    transform: scale(1.2);
  }
}