@charset "utf-8";

/* ==========================================================================
   AUTO SPORTS PLUGIN STYLES
   ========================================================================== */

/* 1. 공통 유틸리티 */
.odds-wrapper {
  padding: 30px 0;
  background-color: #fcfcfc;
  min-height: 800px;
}
.odds-title-area {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #333;
}
.odds-title-area h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

/* 2. 스포츠 탭 */
.sport-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.sport-tab-btn {
  padding: 8px 18px;
  margin: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #7f8c8d;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 20px;
  transition: all 0.2s;
}
.sport-tab-btn:hover {
  background: #f1f2f6;
  color: #333;
}
.sport-tab-btn.active {
  background: #2c3e50;
  color: #fff;
  border-color: #2c3e50;
}

/* 3. 리스트 테이블 (분석센터) */
.odds-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  table-layout: fixed;
}
.odds-table th {
  background: #34495e;
  color: #fff;
  padding: 12px;
  font-weight: 600;
  text-align: center;
  font-size: 14px;
}
.odds-table td {
  padding: 12px 6px;
  border-bottom: 1px solid #eee;
  text-align: center;
  color: #444;
  font-size: 14px;
  vertical-align: middle;
}

/* 4. 위젯 테이블 (메인) */
.ms-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.ms-box {
  flex: 1;
  min-width: 300px;
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.ms-header {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fcfcfc;
}
.ms-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
}
.ms-title i {
  margin-right: 6px;
}
.ms-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.ms-table th {
  background: #f8f9fa;
  font-size: 12px;
  color: #666;
  padding: 8px 0;
  text-align: center;
  border-bottom: 1px solid #eee;
}
.ms-table td {
  padding: 8px 5px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 13px;
  color: #444;
  vertical-align: middle;
  cursor: pointer;
  transition: background 0.2s;
}
.ms-table tr:hover td {
  background: #f0f4f8;
}
.ms-table tr:last-child td {
  border-bottom: none;
}

/* 5. 팀/배당 스타일 */
.team-cell {
  text-align: left !important;
  padding-left: 10px !important;
}
.league-name-small {
  display: block;
  font-size: 11px;
  color: #999;
  margin-bottom: 4px;
}
.team-name {
  font-weight: bold;
  font-size: 14px;
  color: #2c3e50;
}
.vs-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  background: #bdc3c7;
  padding: 2px 5px;
  border-radius: 3px;
  margin: 0 5px;
}

.odd-btn {
  display: block;
  width: 100%;
  padding: 8px 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.odd-btn:hover {
  background: #f1f2f6;
  border-color: #bbb;
}
.odd-btn.win {
  color: #e74c3c;
  border-color: #fadbd8;
  background: #fdfefe;
}
.odd-btn.draw {
  color: #2c3e50;
}
.odd-btn.lose {
  color: #3498db;
  border-color: #d6eaf8;
  background: #fdfefe;
}
.odd-btn:hover.win {
  background: #ffeceb;
}
.odd-btn:hover.lose {
  background: #ebf5fb;
}

/* 위젯용 미니 배당박스 */
.ms-odds-cell {
  text-align: center;
  white-space: nowrap;
}
.ms-odd-box {
  display: inline-block;
  padding: 2px 0;
  font-size: 11px;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  width: 32px;
  text-align: center;
  margin: 0 1px;
}

/* 6. 버튼 및 뱃지 */
.btn-analyze {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}
.status-wait {
  background: #95a5a6;
  color: #fff;
}
.status-wait:hover {
  background: #7f8c8d;
}
.status-done {
  background: #27ae60;
  color: #fff;
}
.status-done:hover {
  background: #219150;
}

.badge-hot {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  margin-left: 8px;
  vertical-align: text-bottom;
  animation: pulse 2s infinite;
}
.badge-rec {
  display: inline-block;
  background: #3498db;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  margin-left: 8px;
  vertical-align: text-bottom;
}
.ms-badge {
  display: inline-block;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 3px;
  color: #fff;
  margin-left: 4px;
  font-weight: bold;
  vertical-align: middle;
}
.bg-hot {
  background: #e74c3c;
  animation: pulse 1.5s infinite;
}
.bg-rec {
  background: #3498db;
}
.bg-done {
  background: #27ae60;
}

/* 7. 베팅 슬립 (장바구니) */
#bet-slip-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 340px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
  overflow: hidden;
  font-family: "Noto Sans KR", sans-serif;
  border: 1px solid #ddd;
}
.bs-header {
  background: #2c3e50;
  color: #fff;
  padding: 12px 15px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.bs-header .bs-count {
  background: #e74c3c;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 5px;
}
.bs-body {
  max-height: 350px;
  overflow-y: auto;
  background: #f9f9f9;
  padding: 10px;
}
.bs-item {
  background: #fff;
  border: 1px solid #eee;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.bs-item .bs-match {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
  font-weight: 500;
}
.bs-item .bs-pick-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bs-item .bs-pick {
  font-weight: 800;
  color: #2c3e50;
  font-size: 14px;
}
.bs-item .bs-odds {
  color: #e74c3c;
  font-weight: 800;
  background: #fff5f5;
  padding: 2px 6px;
  border-radius: 4px;
}
.bs-item .bs-del {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #ccc;
  cursor: pointer;
  font-size: 16px;
  transition: color 0.2s;
}
.bs-item .bs-del:hover {
  color: #e74c3c;
}
.bs-footer {
  padding: 15px;
  background: #fff;
  border-top: 1px solid #eee;
}
.bs-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: #555;
}
.bs-input-wrap {
  margin: 15px 0;
  position: relative;
}
.bs-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-align: right;
  font-weight: bold;
  font-size: 16px;
  box-sizing: border-box;
}
.bs-input:focus {
  border-color: #3498db;
  outline: none;
}
.bs-input-label {
  position: absolute;
  left: 10px;
  top: 12px;
  font-size: 12px;
  color: #999;
}
.bs-btn-submit {
  width: 100%;
  padding: 14px;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}
.bs-btn-submit:hover {
  background: #c0392b;
}

/* 8. 이용 가이드 박스 */
.user-guide-box {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 25px;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}
.user-guide-box h4 {
  font-size: 14px;
  font-weight: bold;
  color: #2c3e50;
  margin: 0 0 8px 0;
}
.user-guide-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.user-guide-box li {
  margin-bottom: 4px;
  display: flex;
  align-items: start;
}
.user-guide-box i.fa-check-circle {
  color: #27ae60;
  margin-right: 6px;
  margin-top: 3px;
}
.user-guide-box strong {
  color: #e74c3c;
  font-weight: bold;
}

/* 9. 로딩 오버레이 */
#loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  text-align: center;
  padding-top: 20%;
  color: #fff;
}
#widget-loader {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  text-align: center;
  padding-top: 20%;
  color: #fff;
}
.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-bottom: 15px;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 반응형 */
@media (max-width: 768px) {
  .odds-table th,
  .odds-table td {
    font-size: 12px;
    padding: 8px 2px;
  }
  .team-name {
    font-size: 12px;
  }
  .odd-btn {
    font-size: 11px;
    padding: 6px 0;
  }
  .btn-analyze {
    padding: 6px 4px;
    font-size: 11px;
  }
  .ms-container {
    flex-direction: column;
  }
  #bet-slip-container {
    width: 94%;
    right: 3%;
    bottom: 10px;
  }
}

/* =========================================
   [나의 베팅 내역] 페이지 스타일 (Dark Theme)
   ========================================= */
.bet-history-container {
  padding: 20px 0;
  max-width: 1000px;
  color: #fff;
}

.bet-box {
  background-color: #2b2b2b; /* 박스 배경 어둡게 */
  border: 1px solid #444;
  border-radius: 5px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.bet-header {
  background-color: #383838; /* 헤더 배경 */
  padding: 12px 15px;
  border-bottom: 1px solid #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ccc;
}

.bet-content {
  padding: 15px;
}

.bet-footer {
  background-color: #303030; /* 푸터 배경 */
  padding: 12px 15px;
  border-top: 1px solid #444;
  text-align: right;
  color: #eee;
}

/* 테이블 다크 모드 커스텀 */
.table-dark-custom {
  width: 100%;
  margin: 0;
  font-size: 13px;
  text-align: center;
  color: #ddd;
  border-collapse: collapse;
}

.table-dark-custom th {
  background-color: #1f1f1f;
  border: 1px solid #444;
  padding: 8px;
  color: #aaa;
}

.table-dark-custom td {
  border: 1px solid #444;
  padding: 8px;
  vertical-align: middle;
}

/* 상태 뱃지 스타일 */
.badge-ing {
  background: #555;
  color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
}
.badge-win {
  background: #e74c3c;
  color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
}
.badge-lose {
  background: #007bff;
  color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
}

/* 데이터 없음 박스 */
.empty-bet-box {
  text-align: center;
  padding: 80px;
  background: #2b2b2b;
  border: 1px solid #444;
  border-radius: 5px;
  color: #888;
}

/* =========================================
   [관리자] 베팅 내역 관리 페이지 (admin.list.php)
   ========================================= */
.admin-wrap {
  padding: 30px 0;
  min-height: 600px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #444;
  padding-bottom: 15px;
}

.admin-header h2 {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  margin: 0;
}

/* 관리자 테이블 (다크 모드) */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background-color: #2b2b2b;
  color: #ddd;
}

.admin-table th {
  background-color: #1f1f1f;
  color: #eee;
  padding: 12px;
  border: 1px solid #444;
  text-align: center;
  font-weight: bold;
}

.admin-table td {
  padding: 10px;
  border: 1px solid #444;
  text-align: center;
  vertical-align: middle;
}

.admin-table tr:hover {
  background-color: #333; /* 마우스 올렸을 때 하이라이트 */
}

/* 버튼 스타일 */
.btn-settle {
  background-color: #e74c3c;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}
.btn-settle:hover {
  background-color: #c0392b;
}

.btn-detail {
  background-color: #555;
  color: #fff;
  border: 1px solid #666;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
}
.btn-detail:hover {
  background-color: #777;
}
