/* lottery-style.css */
/* Frontend Styles */
.lottery-container, .saved-numbers-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f9f9ff 0%, #f0f5ff 100%);
    border: 1px solid #e0e6ff;
}

.lottery-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e6ff;
}

.lottery-header h2 {
    color: #1a237e;
    margin-bottom: 15px;
    font-size: 36px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.result-title {
    text-align: center;
    margin-top: 40px;
    color: #1a237e;
    font-size: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e6ff;
    position: relative;
}

.result-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ff5722, #e91e63, #3f51b5);
    border-radius: 2px;
}

.gradient-bar {
    height: 8px;
    background: linear-gradient(90deg, #ff5722, #e91e63, #3f51b5);
    border-radius: 4px;
    width: 120px;
    margin: 20px auto;
}

.full-number-input {
    margin: 40px 0;
    text-align: center;
}

.full-number-input input, 
.full-number-input textarea {
    width: 100%;
    max-width: 700px;
    padding: 22px 30px;
    font-size: 22px;
    border: 2px solid #d1d9ff;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f7f9ff 100%);
    font-weight: bold;
    resize: vertical;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(94, 114, 228, 0.1);
    color: #1a237e;
}

.save-new-number .full-number-input textarea {
    background: linear-gradient(135deg, #ffffff 0%, #f7f9ff 100%);
    border: 2px solid #d1d9ff;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(94, 114, 228, 0.1);
}

.input-note {
    font-size: 16px;
    color: #5e72e4;
    margin-top: 15px;
    font-style: italic;
    font-weight: 500;
}

.full-number-input input:focus, 
.full-number-input textarea:focus {
    border-color: #5e72e4;
    outline: none;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05), 0 5px 20px rgba(94, 114, 228, 0.2);
    background: #ffffff;
}

.button {
    background: linear-gradient(135deg, #5e72e4 0%, #825ee4 100%);
    color: white;
    border: none;
    padding: 18px 45px;
    font-size: 21px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(94, 114, 228, 0.4);
    position: relative;
    overflow: hidden;
}

.button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(30deg);
    transition: all 0.6s ease;
}

.button:hover::after {
    transform: rotate(30deg) translate(20%, 20%);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(94, 114, 228, 0.6);
}

.button:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(94, 114, 228, 0.4);
}

.button-primary {
    background: linear-gradient(135deg, #fb6340 0%, #fbb140 100%);
    box-shadow: 0 5px 15px rgba(251, 99, 64, 0.4);
}

.button-primary:hover {
    box-shadow: 0 8px 20px rgba(251, 99, 64, 0.6);
}

/* Guest promo box */
.guest-promo-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid #90caf9;
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.2);
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-icon {
    font-size: 60px;
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    background: #4285f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.promo-content {
    flex-grow: 1;
}

.promo-content h4 {
    margin: 0 0 15px 0;
    color: #1a237e;
    font-size: 26px;
}

.promo-content p {
    margin: 0 0 20px 0;
    color: #1a237e;
    font-size: 18px;
    line-height: 1.6;
}

.promo-button {
    background: linear-gradient(135deg, #34a853 0%, #0f9d58 100%);
    padding: 15px 35px;
    font-size: 20px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(52, 168, 83, 0.3);
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.promo-button:hover {
    background: linear-gradient(135deg, #2e8b47 0%, #0d8040 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 168, 83, 0.4);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .guest-promo-box {
        flex-direction: column;
        text-align: center;
    }
    
    .promo-icon {
        margin-bottom: 20px;
    }
}

.lottery-result {
    margin-top: 50px;
    padding: 0px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    min-height: 200px;
    animation: pulse 2s infinite;
}


.not-winner {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 3px solid #f44336;
    background: white !important;
    border: 1px solid #e0e6ff;
}

.error {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 3px solid #ffc107;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.match-result {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin: 25px auto;
    width: 95%;
    max-width: 1000px; /* Wider max-width */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #5e72e4;
    text-align: center;
    position: relative;
    overflow: hidden;
}


.winner-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: linear-gradient(135deg, #fb6340 0%, #fbb140 100%);
    color: white;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: bold;
    transform: rotate(15deg);
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(251, 99, 64, 0.4);
    z-index: 2;
}

.winning-number {
    font-size: 38px;
    font-weight: bold;
    color: #e91e63;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    display: inline-block;
    margin: 20px 0;
    padding: 12px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef0ff 100%);
    border-radius: 15px;
    border: 2px dashed #d1d9ff;
}

.eligible-series-title {
    font-weight: bold;
    margin: 30px 0 20px;
    color: #5e72e4;
    font-size: 26px;
    position: relative;
    display: block;
    padding-bottom: 10px;
}

.eligible-series-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 4px;
    background: linear-gradient(90deg, #ff5722, #e91e63, #3f51b5);
    border-radius: 2px;
}

.eligible-series-img {
    max-width: 90%;
    height: auto;
    border-radius: 12px;
    margin: 15px auto;
    display: block;
}

.check-period {
    font-style: italic;
    color: #5e72e4;
    margin-top: 25px;
    font-size: 18px;
    font-weight: 500;
    display: block;
    text-align: center;
}

.checking-message {
    padding: 30px;
    background: linear-gradient(135deg, #e3f2fd 0%, #d2e6ff 100%);
    border-radius: 15px;
    font-size: 24px;
    border: 1px solid #bbdefb;
}

/* Saved numbers styles */
.saved-numbers-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .saved-numbers-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.save-new-number {
    background: linear-gradient(135deg, #ffffff 0%, #f7f9ff 100%);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #e0e6ff;
    box-shadow: 0 10px 30px rgba(94, 114, 228, 0.15);
}

.save-new-number h3 {
    color: #5e72e4;
    margin-top: 0;
    padding-bottom: 25px;
    border-bottom: 2px solid #e0e6ff;
    font-size: 28px;
    text-align: center;
    position: relative;
}

.save-new-number h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff5722, #e91e63, #3f51b5);
    border-radius: 2px;
}

.saved-numbers-list {
    background: linear-gradient(135deg, #ffffff 0%, #f7f9ff 100%);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #e0e6ff;
    box-shadow: 0 10px 30px rgba(94, 114, 228, 0.15);
}

.saved-numbers-list h3 {
    color: #5e72e4;
    margin-top: 0;
    padding-bottom: 25px;
    border-bottom: 2px solid #e0e6ff;
    font-size: 28px;
    text-align: center;
    position: relative;
}

.saved-numbers-list h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff5722, #e91e63, #3f51b5);
    border-radius: 2px;
}

.saved-numbers-summary {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e6ff;
    font-size: 20px;
    text-align: center;
}

.saved-numbers-summary strong {
    color: #fb6340;
    font-size: 24px;
}

#saved-numbers-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#saved-numbers-ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 30px;
    background: white;
    margin-bottom: 20px;
    border-radius: 15px;
    border: 1px solid #e0e6ff;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#saved-numbers-ul li.list-header {
    background: linear-gradient(135deg, #5e72e4 0%, #825ee4 100%);
    color: white;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(94, 114, 228, 0.3);
}

#saved-numbers-ul li.list-header span {
    flex: 1;
    text-align: center;
}

#saved-numbers-ul li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-left: 5px solid #5e72e4;
}

number-display {
  white-space: nowrap;
  overflow-x: auto;
  padding: 8px 0;
  font-size: 18px; /* Larger text for readability */
}

.save-date {
    color: #5e72e4;
    font-size: 18px;
    margin: 0 25px;
    min-width: 140px;
    text-align: center;
    font-weight: 500;
}

.delete-number {
    background: linear-gradient(135deg, #fb6340 0%, #fbb140 100%);
    padding: 12px 25px;
    font-size: 18px;
    border-radius: 10px;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(251, 99, 64, 0.3);
}

.delete-number:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(251, 99, 64, 0.4);
}

.saved-numbers-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e6ff;
    flex-wrap: wrap;
}

.pagination-prev, .pagination-next {
    padding: 15px 30px;
    background: linear-gradient(135deg, #5e72e4 0%, #825ee4 100%);
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 10px rgba(94, 114, 228, 0.3);
}

.pagination-prev:hover, .pagination-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(94, 114, 228, 0.4);
}

.pagination-prev::before {
    content: "←";
    margin-right: 12px;
    font-weight: bold;
    font-size: 18px;
}

.pagination-next::after {
    content: "→";
    margin-left: 12px;
    font-weight: bold;
    font-size: 18px;
}

.pagination-numbers {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 8px 0;
}

.pagination-numbers a, .pagination-numbers span {
    display: block;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    min-width: 50px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 18px;
}

.pagination-numbers a {
    background: linear-gradient(135deg, #e0e0e0 0%, #f0f0f0 100%);
    color: #5e72e4;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.pagination-numbers a:hover {
    background: linear-gradient(135deg, #d1d9ff 0%, #e0e6ff 100%);
    color: #1a237e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(94, 114, 228, 0.2);
}

.pagination-numbers .current-page {
    background: linear-gradient(135deg, #fb6340 0%, #fbb140 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(251, 99, 64, 0.3);
    transform: translateY(-3px);
}

.check-all-container {
    text-align: center;
    margin: 50px 0 35px;
}

#saved-numbers-result {
    margin-top: 45px;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f7f9ff 100%);
    border-radius: 20px;
    border: 1px solid #e0e6ff;
    box-shadow: 0 5px 20px rgba(94, 114, 228, 0.1);
}

.winner-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-left: 5px solid #4caf50;
    text-align: center;
}

.winning-number-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e6ff;
    flex-wrap: wrap;
}

.winning-badge {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
}

/* Add this at the end of your existing CSS */

/* Mobile Responsive Fixes */
@media (max-width: 767px) {
  .lottery-container, .saved-numbers-container {
    padding: 15px;
    margin: 0;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
    
    .lottery-header h2 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .full-number-input input {
        padding: 18px 20px;
        font-size: 18px;
    }
    
    .match-result {
        width: 100%;
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .winning-badge {
        font-size: 18px;
        padding: 8px 20px;
        top: -10px;
        right: -10px;
    }
    
    .winning-number {
         font-size: 28px;
        padding: 10px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .eligible-series-img {
      max-width: 100%;
    }
    
   .saved-numbers-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }
    
    .save-new-number, 
    .saved-numbers-list {
        padding: 25px;
    }
    
    #saved-numbers-ul li {
        flex-wrap: wrap;
        padding: 15px;
    }
    
    .number-display, 
    .save-date {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .delete-number {
        margin: 10px auto 0;
        display: block;
    }
    
    .saved-numbers-pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination-prev, 
    .pagination-next {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
    
    .pagination-numbers {
        width: 100%;
        justify-content: center;
    }
    
    .guest-promo-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .promo-icon {
        margin: 0 auto 15px;
    }
    
    .winner-card {
        padding: 25px 15px;
    }
    
    .winning-number-header {
        flex-direction: column;
        text-align: center;
    }
    
    .winning-badge {
        position: relative;
        top: 0;
        right: 0;
        margin: 15px auto;
        transform: none;
    }
}

@media (max-width: 480px) {
    .lottery-header h2 {
        font-size: 22px;
    }
    
    .button {
        width: 100%;
        padding: 16px;
        font-size: 18px;
    }
    
    .winning-number {
         font-size: 24px;
    }
    
    .match-result h4 {
       font-size: 18px;
    }
    
    .saved-numbers-list h3,
    .save-new-number h3 {
        font-size: 22px;
    }
}

.premium-card {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
  font-family: 'Segoe UI', 'Nirmala UI', 'Arial', sans-serif;
  text-align: center;
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.premium-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top left, rgba(52, 152, 219, 0.08), transparent 40%),
              radial-gradient(circle at bottom right, rgba(46, 204, 113, 0.06), transparent 40%);
  z-index: -1;
}

.card-header {
  margin-bottom: 30px;
}

.icon-container {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #3498db, #2c3e50);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.icon-container svg {
  width: 40px;
  height: 40px;
  color: white;
}

.card-title {
  color: #2c3e50;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-subtitle {
  color: #7f8c8d;
  font-size: 18px;
  line-height: 1.5;
  max-width: 380px;
  margin: 0 auto;
}

.features {
  margin: 30px 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #34495e;
  font-size: 16px;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(245, 247, 250, 0.7);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(52, 152, 219, 0.08);
  transform: translateX(5px);
}

.feature-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #3498db, #2c3e50);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  font-weight: bold;
  font-size: 16px;
}

.stats-container {
  display: flex;
  justify-content: space-around;
  margin: 30px 0;
  padding: 25px 0;
  border-top: 1px solid rgba(52, 152, 219, 0.1);
  border-bottom: 1px solid rgba(52, 152, 219, 0.1);
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: #7f8c8d;
  font-weight: 500;
}

.register-btn {
  background: linear-gradient(135deg, #3498db, #2c3e50);
  color: white;
  border: none;
  padding: 18px 45px;
  font-size: 18px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 0;
  position: relative;
  overflow: hidden;
}

.register-btn svg {
  width: 20px;
  height: 20px;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.register-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(52, 152, 219, 0.4);
}

.register-btn:hover svg {
  transform: translateX(5px);
}

.register-btn:active {
  transform: translateY(1px);
}

.watermark {
  position: absolute;
  bottom: 15px;
  right: 20px;
  color: rgba(52, 152, 219, 0.05);
  font-size: 80px;
  font-weight: 900;
  transform: rotate(-15deg);
  user-select: none;
  z-index: -1;
}

@media (max-width: 500px) {
  .premium-card {
    padding: 30px 20px;
  }
  
  .card-title {
    font-size: 22px;
  }
  
  .card-subtitle {
    font-size: 16px;
  }
  
  .stats-container {
    flex-direction: column;
    gap: 15px;
  }
}