/* ============================================================
   sambadPredict.css — AI Prediction Feature Styles
   8PM Lottery Sambad · https://8pmlotterysambad.com
   ============================================================ */

.sambad-predict-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 40px;
  font-family: 'Hind Siliguri', 'Hind', sans-serif;
}

/* Loading */
.sambad-predict-loading {
  text-align: center;
  padding: 60px 20px;
  color: #757575;
}
.sambad-predict-spinner {
  width: 44px; height: 44px;
  border: 4px solid #E0E0E0;
  border-top-color: #1A3C6B;
  border-radius: 50%;
  animation: sambadPredictSpin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes sambadPredictSpin { to { transform: rotate(360deg); } }

/* Header */
.sambad-predict-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0 12px;
}
.sambad-predict-header-icon {
  font-size: 40px;
  flex-shrink: 0;
}
.sambad-predict-title {
  font-size: 22px;
  font-weight: 700;
  color: #1A3C6B;
  margin: 0 0 2px;
}
.sambad-predict-subtitle {
  font-size: 13px;
  color: #757575;
  margin: 0;
}
.sambad-predict-disclaimer-badge {
  margin-left: auto;
  background: #FFF3E0;
  color: #E65100;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid #FFCC80;
}

/* Disclaimer */
.sambad-predict-disclaimer {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #5D4037;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Tabs */
.sambad-predict-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.sambad-predict-tab {
  flex: 1;
  padding: 10px 4px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid #E0E0E0;
  background: #fff;
  color: #757575;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.sambad-predict-tab-active {
  background: #1A3C6B;
  color: #fff;
  border-color: #1A3C6B;
}

/* Days filter */
.sambad-predict-days-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.sambad-predict-filter-label {
  font-size: 13px;
  color: #757575;
  font-weight: 500;
}
.sambad-predict-days-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid #E0E0E0;
  background: #fff;
  color: #757575;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.sambad-predict-days-active {
  background: #E8F0FE;
  color: #1A3C6B;
  border-color: #1A3C6B;
}

/* Number checker */
.sambad-predict-checker-box {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(26,60,107,0.08);
  border: 1px solid #E8EAF0;
}
.sambad-predict-section-title {
  font-size: 17px;
  font-weight: 700;
  color: #1A3C6B;
  margin: 0 0 4px;
}
.sambad-predict-checker-hint {
  font-size: 13px;
  color: #757575;
  margin: 0 0 14px;
}
.sambad-predict-checker-row {
  display: flex;
  gap: 10px;
}
.sambad-predict-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #E0E0E0;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #1A3C6B;
  font-family: inherit;
  text-align: center;
  letter-spacing: 4px;
  transition: border-color 0.15s;
}
.sambad-predict-input:focus {
  outline: none;
  border-color: #1A3C6B;
}
.sambad-predict-check-btn {
  padding: 12px 24px;
  background: #1A3C6B;
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background 0.15s;
}
.sambad-predict-check-btn:hover {
  background: #2A5298;
}

/* Checker result card */
.sambad-predict-result-card {
  margin-top: 16px;
  background: #F7F9FF;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #E3EAF6;
}
.sambad-predict-result-num {
  font-size: 36px;
  font-weight: 800;
  color: #1A3C6B;
  text-align: center;
  letter-spacing: 6px;
  margin-bottom: 8px;
}
.sambad-predict-result-status {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}
.sambad-predict-result-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 16px;
  gap: 8px;
}
.sambad-predict-stat {
  text-align: center;
  flex: 1;
}
.sambad-predict-stat-val {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #1A3C6B;
}
.sambad-predict-stat-label {
  font-size: 11px;
  color: #757575;
  font-weight: 500;
}

/* Probability bar */
.sambad-predict-prob-bar-wrap {
  margin-bottom: 16px;
}
.sambad-predict-prob-label {
  font-size: 12px;
  font-weight: 600;
  color: #757575;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}
.sambad-predict-prob-track {
  height: 10px;
  background: #E0E0E0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 4px;
}
.sambad-predict-prob-fill {
  height: 100%;
  background: linear-gradient(90deg, #1A3C6B, #2A5298);
  border-radius: 10px;
  transition: width 0.6s ease;
}
.sambad-predict-prob-val {
  font-size: 12px;
  color: #1A3C6B;
  font-weight: 700;
  text-align: right;
}

/* History */
.sambad-predict-history { margin-top: 12px; }
.sambad-predict-history-title {
  font-size: 13px;
  font-weight: 600;
  color: #757575;
  margin: 0 0 8px;
}
.sambad-predict-history-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #EEE;
  font-size: 13px;
}
.sambad-predict-history-date { color: #757575; font-weight: 500; }
.sambad-predict-history-prize {
  font-weight: 700;
  color: #2E7D32;
  flex: 1;
}
.sambad-predict-history-slot {
  background: #1A3C6B;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}
.sambad-predict-never {
  color: #757575;
  font-size: 14px;
  text-align: center;
  margin: 8px 0 0;
}
.sambad-predict-input-error {
  color: #C62828;
  font-size: 13px;
  margin: 8px 0 0;
}

/* Cards */
.sambad-predict-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(26,60,107,0.08);
  border: 1px solid #E8EAF0;
}
.sambad-predict-card-lucky {
  background: linear-gradient(135deg, #1A3C6B, #2A5298);
  border: none;
}
.sambad-predict-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.sambad-predict-card-icon { font-size: 28px; flex-shrink: 0; }
.sambad-predict-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #1A3C6B;
  margin: 0 0 2px;
}
.sambad-predict-card-lucky .sambad-predict-card-title { color: #fff; }
.sambad-predict-card-subtitle {
  font-size: 12px;
  color: #757575;
  margin: 0;
}
.sambad-predict-card-lucky .sambad-predict-card-subtitle {
  color: rgba(255,255,255,0.75);
}

/* Lucky numbers grid */
.sambad-predict-lucky-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.sambad-predict-lucky-num {
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
}
.sambad-predict-lucky-note {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  text-align: center;
  margin: 0;
}

/* Number list (hot/cold) */
.sambad-predict-number-list { display: flex; flex-direction: column; gap: 8px; }
.sambad-predict-number-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sambad-predict-rank {
  width: 28px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.sambad-predict-rank-hot { color: #E53935; }
.sambad-predict-rank-cold { color: #1565C0; }
.sambad-predict-number {
  width: 52px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  flex-shrink: 0;
  letter-spacing: 1px;
}
.sambad-predict-number-hot {
  background: #FFEBEE;
  color: #C62828;
}
.sambad-predict-number-cold {
  background: #E3F2FD;
  color: #1565C0;
}
.sambad-predict-bar-wrap {
  flex: 1;
  height: 8px;
  background: #F0F0F0;
  border-radius: 10px;
  overflow: hidden;
}
.sambad-predict-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
  min-width: 6px;
}
.sambad-predict-bar-hot { background: linear-gradient(90deg, #E53935, #FF7043); }
.sambad-predict-bar-cold { background: linear-gradient(90deg, #1565C0, #42A5F5); }
.sambad-predict-count {
  font-size: 12px;
  font-weight: 700;
  color: #757575;
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

/* Digit position analysis */
.sambad-predict-digit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.sambad-predict-digit-card {
  text-align: center;
  background: #F7F9FF;
  border-radius: 12px;
  padding: 14px 8px;
  border: 1px solid #E3EAF6;
}
.sambad-predict-digit-pos {
  font-size: 11px;
  color: #757575;
  font-weight: 600;
  margin-bottom: 8px;
}
.sambad-predict-digit-num {
  font-size: 32px;
  font-weight: 800;
  color: #1A3C6B;
  line-height: 1;
  margin-bottom: 4px;
}
.sambad-predict-digit-label {
  font-size: 10px;
  color: #9E9E9E;
}

/* Data info */
.sambad-predict-data-info {
  text-align: center;
  font-size: 12px;
  color: #9E9E9E;
  padding: 12px 0;
}

/* Dark mode */
[data-theme="dark"] .sambad-predict-card {
  background: #1E1E1E;
  border-color: #333;
}
[data-theme="dark"] .sambad-predict-card-title { color: #90CAF9; }
[data-theme="dark"] .sambad-predict-title { color: #90CAF9; }
[data-theme="dark"] .sambad-predict-checker-box { background: #1E1E1E; border-color: #333; }
[data-theme="dark"] .sambad-predict-input {
  background: #121212;
  border-color: #333;
  color: #E0E0E0;
}
[data-theme="dark"] .sambad-predict-result-card { background: #1A1A1A; border-color: #333; }
[data-theme="dark"] .sambad-predict-digit-card { background: #1A1A1A; border-color: #333; }
[data-theme="dark"] .sambad-predict-tab { background: #1E1E1E; border-color: #333; color: #9E9E9E; }
[data-theme="dark"] .sambad-predict-days-btn { background: #1E1E1E; border-color: #333; color: #9E9E9E; }
[data-theme="dark"] .sambad-predict-result-num { color: #90CAF9; }
[data-theme="dark"] .sambad-predict-stat-val { color: #90CAF9; }

@media (min-width: 480px) {
  .sambad-predict-lucky-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
