/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  position: relative;
  min-height: 100vh;
  background: url('https://wallpapercave.com/wp/wp11496895.jpg') no-repeat center center fixed;
  background-size: cover;
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

/* Header Styles */
.main-header {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 1rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  height: 50px; 
  display: flex;
  align-items: center;
}

.logo-image {
  height: 100%;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(255, 204, 0, 0.6));
}

.logo i {
  font-size: 2rem;
}

.auth-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn {
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.login-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.register-btn {
  background-color: #ffcc00;
  color: #000;
}

.register-btn:hover {
  background-color: #ffd633;
  transform: translateY(-2px);
}

/* Main Content Styles */
.main-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.game-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.prizes-card, .winners-card, .guide-card {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  width: 100%;
}

.prizes-card:hover, .winners-card:hover, .guide-card:hover {
  transform: translateY(-5px);
}

.prizes-card h3, .winners-card h3, .guide-card h3 {
  color: #ffcc00;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.prizes-list, .winners-list, .guide-list {
  list-style-type: none;
}

.prizes-list li, .winners-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-list li {
  padding: 0.5rem 0;
  margin-left: 1.5rem;
}

.wheel-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.username-form {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.username-form h3 {
  margin-bottom: 1rem;
  color: #ffcc00;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-input {
  padding: 0.8rem 1rem;
  border-radius: 50px;
  border: none;
  background-color: rgba(255, 255, 255, 0.9);
  font-family: 'Poppins', sans-serif;
}

.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.3);
}

/* Wheel Styles */
.wheel-spin-box {
  position: relative;
  display: inline-block;
}

#spinwheel {
  position: relative;
  width: 360px;
  margin: auto;
}

.wheeldotsround {
  position: absolute;
  width: 100%;
  height: 100%;
}

.wheeldotsround .wheeldots {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  z-index: 1;
}

.wheeldotsround .wheeldots:nth-child(2n+1) {
  background: #fff;
}

.wheeldotsround .wheeldots.active-dots {
  background: #ff8400;
}

.wheeldotsround .wheeldots.active-dots:nth-child(2n+1) {
  background: #2660a4;
}

.wheeldotsround .wheeldots:nth-child(1) {
  left: calc(50% - 4px);
  top: 3px;
}

.wheeldotsround .wheeldots:nth-child(2) {
  right: 25%;
  top: 7%;
}

.wheeldotsround .wheeldots:nth-child(3) {
  right: 7%;
  top: 25%;
}

.wheeldotsround .wheeldots:nth-child(4) {
  right: 3px;
  top: 50%;
}

.wheeldotsround .wheeldots:nth-child(5) {
  right: 8.2%;
  bottom: 23%;
}

.wheeldotsround .wheeldots:nth-child(6) {
  right: 25%;
  bottom: 7%;
}

.wheeldotsround .wheeldots:nth-child(7) {
  left: calc(50% - 4px);
  bottom: 3px;
}

.wheeldotsround .wheeldots:nth-child(8) {
  left: 25%;
  bottom: 7%;
}

.wheeldotsround .wheeldots:nth-child(9) {
  left: 8.2%;
  bottom: 23%;
}

.wheeldotsround .wheeldots:nth-child(10) {
  left: 3px;
  top: 50%;
}

.wheeldotsround .wheeldots:nth-child(11) {
  left: 7%;
  top: 25%;
}

.wheeldotsround .wheeldots:nth-child(12) {
  left: 25%;
  top: 7%;
}

#spinwheel svg {
  width: 100%;
  height: 100%;
  border: 15px solid #CE3816;
  border-radius: 50%;
  background: #CE3816;
}

.wheel-spin-box .chartholder .slice path {
  fill: #441ced;
}

.wheel-spin-box .chartholder .slice:nth-child(2n+1) path {
  fill: #F9AA00;
}

.wheel-spin-arrow {
  position: relative;
  margin-top: -35px;
  text-align: center;
  z-index: 1;
}

.wheel-spin-arrow svg {
  max-width: 65px;
}

.spin-click-button {
  background-color: #ffcc00;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.spin-click-button:hover {
  background-color: #ffd633;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

.spin-click-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Footer Styles */
.main-footer {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #fff;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #ffcc00;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .game-container {
    flex-direction: column;
    align-items: center;
  }
  
  .prizes-card, .winners-card {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 479.98px) {
  #spinwheel {
    width: 270px;
  }
  
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .logo {
    font-size: 1.2rem;
  }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    text-align: center;
    color: white;
    position: relative;
    animation: slideDown 0.4s;
}

.modal-icon {
    font-size: 60px;
    color: #f1c40f;
    margin-bottom: 20px;
}

.prize-display {
    font-size: 28px;
    font-weight: bold;
    color: #f1c40f;
    margin: 20px 0;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.modal-button {
    background: #f1c40f;
    color: #2c3e50;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    margin-top: 20px;
}

.modal-button:hover {
    background: #f39c12;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.close-modal:hover {
    color: #f1c40f;
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.slice text {
    pointer-events: none;
    user-select: none;
    font-family: 'Poppins', sans-serif;
}

.slice path {
    transition: opacity 0.3s;
}

.slice path:hover {
    opacity: 0.8;
}

/* Modern Prize Popup */
.prize-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s;
}

.prize-popup {
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideUp 0.4s;
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
    animation: confettiFall 3s ease-in-out forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(-100px) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: translateY(600px) rotate(360deg);
    }
}

.trophy-animation {
    font-size: 80px;
    color: #FFD700;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    transform: scale(0);
    animation: trophyBounce 0.6s ease-out forwards;
}

@keyframes trophyBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.prize-display {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
    margin: 20px 0;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    position: relative;
    z-index: 2;
}

.close-popup {
    background: #FFD700;
    color: #2c3e50;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.close-popup:hover {
    background: #FFC000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

#spinwheel svg {
    transition: transform 0.05s linear; 
    will-change: transform; 
}

.wheel-spin-box {
    perspective: 1000px; 
}

/* WhatsApp Floating Button */
.whatsapp-float {
    transition: all 0.3s ease;
}

/* Dashboard Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
}

.page-link {
    padding: 5px 10px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 3px;
}

.page-link:hover {
    background-color: #f5f5f5;
}

.page-link.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* Table Header with Download Button */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Winner Badge */
.winner-badge {
    background-color: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.9em;
}