/* === Content Pages Common Styles === */

.content-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.content-card p {
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card ul,
.content-card ol {
  margin: 12px 0;
  padding-left: 24px;
}

.content-card li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.text-muted {
  color: #888;
  font-size: 0.85rem;
}

/* === Info Table === */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.info-table th,
.info-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 0.95rem;
}

.info-table th {
  width: 30%;
  background-color: #f8f9fa;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

/* === Prize Table === */
.prize-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.prize-table th,
.prize-table td {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  text-align: center;
  font-size: 0.9rem;
}

.prize-table thead th {
  background-color: #1a73e8;
  color: #fff;
  font-weight: 600;
}

.prize-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.prize-table tbody tr:hover {
  background-color: #e8f0fe;
}

/* === History Table === */
.history-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.history-table th,
.history-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
  text-align: center;
  font-size: 0.9rem;
}

.history-table thead th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #555;
  border-bottom: 2px solid #ddd;
  position: sticky;
  top: 0;
}

.history-table tbody tr:hover {
  background-color: #f0f4ff;
}

.history-table .lucky-number {
  width: 32px;
  height: 32px;
  line-height: 32px;
  font-size: 13px;
  margin: 1px;
}

.history-table .bonus-number {
  opacity: 0.6;
}

/* === Pagination === */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.pagination button {
  padding: 8px 14px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.15s;
}

.pagination button:hover {
  background-color: #e8f0fe;
  border-color: #1a73e8;
}

.pagination button.active {
  background-color: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-info {
  font-size: 0.85rem;
  color: #666;
}

/* === Filter Section === */
.filter-section {
  background: #fff;
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-section label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #555;
}

.filter-section select,
.filter-section input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
}

.filter-section button {
  padding: 8px 16px;
  background-color: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
}

.filter-section button:hover {
  background-color: #1557b0;
}

/* === Bar Chart === */
.bar-chart {
  margin: 16px 0;
}

.bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  gap: 8px;
}

.bar-label {
  width: 36px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 24px;
  background-color: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
  min-width: 2px;
}

.bar-value {
  width: 40px;
  text-align: right;
  font-size: 0.8rem;
  color: #666;
  flex-shrink: 0;
}

/* === Stat Cards === */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1a73e8;
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: #888;
}

/* === Hot/Cold Numbers === */
.number-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 8px 0;
}

.number-list .lucky-number {
  width: 36px;
  height: 36px;
  line-height: 36px;
  font-size: 14px;
}

/* === Tip Card === */
.tip-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-left: 4px solid #1a73e8;
}

.tip-card h3 {
  font-size: 1.05rem;
  color: #1a73e8;
  margin-bottom: 8px;
}

.tip-card p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.tip-card p:last-child {
  margin-bottom: 0;
}

/* === Contact === */
.contact-email {
  text-align: center;
  font-size: 1.1rem;
}

.contact-email a {
  font-weight: 600;
}

/* === Highlight Box === */
.highlight-box {
  background: linear-gradient(135deg, #e8f0fe, #f0f4ff);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 16px 0;
  border: 1px solid #d2e3fc;
}

.highlight-box p {
  margin-bottom: 8px;
}

/* === Responsive === */
@media (max-width: 768px) {
  .content-card {
    padding: 16px;
  }

  .info-table th {
    width: 35%;
  }

  .prize-table th,
  .prize-table td {
    padding: 8px 6px;
    font-size: 0.8rem;
  }

  .filter-section {
    padding: 12px 16px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .info-table th,
  .info-table td {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .history-table .lucky-number {
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 11px;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 14px;
  }

  .stat-card .stat-value {
    font-size: 1.5rem;
  }
}
