@font-face {
  font-family: 'BMJUA';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/BMJUA.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'LINESeedKR-Bd';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_11-01@1.0/LINESeedKR-Bd.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'GmarketSansMedium';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ELAND_Choice_M';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts-20-12@1.0/ELAND_Choice_M.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'GmarketSansMedium', sans-serif;
  display: flex;
  background-color: #f0f4f8;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* 네비게이션 스타일 */
.navbar-nav .nav-link {
  font-family: 'BMJUA', sans-serif;
  white-space: nowrap;
  font-size: 1.35rem;
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

.nav-item.dropdown:hover .nav-link {
  background-color: #274a68;
}

.dropdown-menu {
  font-family: 'BMJUA', sans-serif;
  white-space: nowrap;
  font-size: 1.25rem;
  border: 1px solid #ccc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: absolute !important;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
}

.navbar-brand img {
  object-fit: contain;
}

/* 기본적으로 navbar-collapse는 숨김 */
.navbar-collapse {
  display: none;
}

/* 컨테이너 내부 요소를 한 줄로 정렬 */
.container-fluid {
  display: flex;
  flex-wrap: nowrap !important;
  align-items: center;
}

/* Hero 섹션 */
.hero {
  flex-grow: 1;
  background-size: cover;
  background-position: center;
  font-family: 'LINESeedKR-Bd', sans-serif;
  font-weight: normal;
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.hero h1,
.hero p {
  color: black;
  text-shadow: 1px 1px 2px white;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0rem;
}

.hero p {
  margin-bottom: 1rem;
}

.hero .container {
  text-align: center;
}

/* 래퍼 스타일 */
.width-free-wrapper, .width-midium-wrapper, .analysis-wrapper, .winning-numbers-wrapper {
  border: 1px solid #ccc;
  background-color: white;
  border-radius: 0.5rem;
  margin: 0 auto;
  padding: 0.8rem 0.8rem;
}

.width-midium-wrapper {
  max-width: 1100px;
}

.analysis-wrapper {
  max-width: 600px;
}

.winning-numbers-wrapper {
  max-width: 800px;
}

/* 카드 스타일 */
.card {
  border: 1px solid #ccc;
  background-color: white;
}

.card-premium-info {
  border: 1px solid #ccc;
  background-color: white;
  margin: 15px 15px 0 15px;
}

.card-img-top {
  object-fit: cover;
}

.card-title {
  font-weight: bold;
  font-size: 1.4rem;
}

.card-body {
  padding: 0.5rem !important;
}

.card-text {
  font-family: 'ELAND_Choice_M', sans-serif;
  font-weight: normal;
  font-size: 1.2rem;
  word-break: keep-all;
  word-wrap: break-word;
}

.info-text {
  font-family: 'GmarketSansMedium', sans-serif;
  font-weight: normal;
  font-size: 1.1rem;
  word-break: keep-all;
  word-wrap: break-word;
}

.footer-info {
    max-width: 600px;
    margin: 0 auto;
}

.footer-text {
  font-family: sans-serif;
  font-weight: normal;
  word-break: keep-all;
  word-wrap: break-word;
}

.footer-label {
    font-weight: 500;
}

.footer-link {
    color: #3c6997;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.fs-5 {
  font-weight: normal;
}

.accordion-button,
.accordion-body {
  word-break: keep-all;
  word-wrap: break-word;
  text-align: start;
}

/* 당첨 번호 스타일 */
.winning-numbers-display, .winning-numbers-event-display {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'sans-serif';
  gap: 0.1vw;
}

.winning-numbers-display {
  margin-bottom: 1rem;
}

.winning-numbers-wrapper .winning-numbers-display, 
.winning-numbers-wrapper .prize-info {
  background-color: transparent;
  border: none;
  padding: 0;
}

/* 로또 공 스타일 */
.ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(27px, 8vw, 46px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  color: white;
  font-weight: 600;
  font-size: clamp(0.8rem, 0.45rem + 0.8vw, 1.1rem);
  margin-right: 6px;
  box-sizing: border-box;
}

.ball:last-child {
  margin-right: 0 !important;
}

.ball-highlight {
  border: 3px solid #000000 !important;
}

.ball.yellow { background-color: #fde047 !important; }
.ball.blue   { background-color: #3b82f6 !important; }
.ball.red    { background-color: #f87171 !important; }
.ball.gray   { background-color: #94a3b8 !important; }
.ball.green  { background-color: #4ade80 !important; }

.plus {
  font-size: clamp(1rem, 0.7rem + 1vw, 1.3rem);
  font-weight: bolder;
  margin-right: 6px;
}

/* 당첨 정보 스타일 */
.prize-info {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.5;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: baseline;
}

.prize-info .winning-tickets {
  white-space: nowrap;
}

.lead {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
}

/* 클래식 모드 스타일 */
.classic-mode {
  color: black;
  background-color: transparent;
  border: none;
  border-radius: 0;
  font-weight: normal;
  width: auto;
  height: auto;
  display: inline;
}

.classic-mode-wrapper {
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem 0.5rem;
  background-color: #f39e95;
}

.classic-mode-wrapper table,
.classic-mode-wrapper tbody,
.classic-mode-wrapper th,
.classic-mode-wrapper td,
.classic-mode-wrapper tr {
  border: none;
  background-color: #f39e95;
}

.classic-mode-select {
  background-color: #f39e95;
  border-color: #000000;
}

.classic-mode-box {
  border: 1px solid #000000;
  padding-top: 0.8rem;
  padding-bottom: 0rem;
}

/* 폼 스타일 */
#loginFormContainer, #registerFormContainer {
  max-width: 500px;
  margin: 0 auto;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: white;
  position: relative;
  z-index: 999;
}

#registerFormContainer {
  max-width: 600px;
}

.button-group {
  display: flex;
  justify-content: space-between;
}

.button-group button,
.button-group a {
  margin: 0 1rem;
}

/* 입력 필드 스타일 */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-group input[type="text"]:read-only {
  background-color: #f0f0f0;
}

/* 섹션 스타일 */
.analysis-section {
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  background-color: #fff;
  padding: 0.8rem 0.4rem;
}

/* 테이블 스타일 */
#winningDetails table th,
#winningDetails table td,
#statisticsResults table td,
#statisticsResults table th,
#analysisResults table td,
#analysisResults table th {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  padding: 0.2rem;
  font-size: 1.1rem;
}

#statisticsResults table td,
#statisticsResults table th {
  height: 50px;
}

#statisticsResults {
  max-height: 800px;
}

#expected-end-numbers-table td {
  text-align: left;
}

/* 스크롤 스타일 */
#combinationsResults {
  overflow-x: auto;
}

#combinationsResults::-webkit-scrollbar {
  height: 6px;
}

#combinationsResults::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#combinationsResults::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

#combinationsResults::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 조합 테이블 스타일 */
#combinationsTable {
  table-layout: auto;
  width: 100%;
}

#combinationsTable th,
#combinationsTable td {
  padding: 5px;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  overflow: hidden;
}

/* 번호 선택 스타일 */
.number-selection-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.number-selection-container .btn.number-btn,
.number-selection-container .number-button {
  width: 40px;
  height: 40px;
  margin: 2px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background-color: #f8f9fa;
  border: 2px solid #6c757d;
  color: #212529;
}

.number-button:last-child {
  margin-right: 0 !important;
}

.number-button.fixed {
  background-color: #0d6efd;
  color: white;
  border: 2px solid #0a58ca;
}

.number-button.excluded {
  background-color: #dc3545;
  color: white;
  border: 2px solid #b02a37;
}

#selectedNumbers, #assureSelectedNumbers {
  min-height: 50px;
  padding: 5px;
  border: 1px dashed #ccc;
  border-radius: 5px;
  margin: 0 auto;
}

#selectedNumbers {
  max-width: 380px;
}

#selectedNumbers .ball {
  margin: 0 5px;
}

#assureSelectedNumbers {
  min-height: 60px;
  padding: 10px;
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* 필터 스타일 */
.filter-container {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #e9ecef;
  border-radius: 5px;
  background-color: #f8f9fa;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: bold;
}

.filter-content {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.help-btn {
  background: none;
  border: none;
  color: #6c757d;
  padding: 0 5px;
  font-size: 1rem;
}

.help-btn:hover {
  color: #0d6efd;
}

/* 선택된 번호 표시 영역 스타일 */
.selected-numbers-display .card-body {
  min-height: 50px;
  background-color: #f8f9fa;
}

/* 보장 조합기 스타일 */
.assure-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.assure-options .form-group {
  flex: 1;
  min-width: 200px;
}

.selection-info {
  font-weight: bold;
  color: #3c6997;
  margin: 1rem 0;
}

/* 저장된 필터 스타일 */
.saved-filter-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background-color: #f8f9fa;
}

.saved-filter-item:hover {
  background-color: #e9ecef;
}

.saved-filter-item .filter-name {
  font-weight: bold;
}

.saved-filter-item .filter-actions {
  display: flex;
  gap: 5px;
}

.saved-filter-item .btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

/* 프리미엄 관련 스타일 */
.premium-form-container {
  border: 1px solid #ddd;
  padding: 0.8rem;
  border-radius: 5px;
  max-width: 500px;
  align-items: center;
  margin: 0 auto;
}

#tobeExpiryDate, #paymentAmount {
  font-weight: bold;
}

.premium-history-table-container {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 300px;
  margin-bottom: 10px;
}

.premium-history-table {
  width: 100%;
  margin-top: 10px;
}

.premium-history-table th,
.premium-history-table td {
  padding: 5px;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}

/* 상태별 텍스트 색상 */
.status-pending { color: orange !important; }
.status-approved { color: green !important; }
.status-canceled, .status-rejected { color: gray !important; }
.status-refunded { color: #f87171 !important; }

.account-info, .additional-info {
  text-align: center;
  margin-top: 20px;
  font-weight: bold;
  font-size: 1rem;
  vertical-align: middle;
  word-break: keep-all;
  word-wrap: break-word;
}

.additional-info {
  margin-top: 5px;
}

/* 관리자 테이블 스타일 */
.admin-table-container {
  overflow-x: auto;
  overflow-y: auto;
}

#applicationsTable, #applicationsSummaryTable,
#membersTable, #membersSummaryTable,
#honorTable {
  width: 100%;
}

#applicationsTable th, #applicationsTable td,
#applicationsSummaryTable th, #applicationsSummaryTable td,
#membersTable th, #membersTable td,
#membersSummaryTable th, #membersSummaryTable td,
#honorTable th, #honorTable td {
  padding: 5px;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}

/* 점수 스타일 */
.score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 0.5rem;
  border: 5px solid #ddd;
  transition: border-color 0.3s;
}

.score-text {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
}

.score-label {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 0.5rem;
}

/* 점수 등급별 색상 */
.score-circle.excellent { border-color: #28a745; }
.score-circle.good { border-color: #17a2b8; }
.score-circle.average { border-color: #ffc107; }
.score-circle.poor { border-color: #dc3545; }

.score-label.excellent { color: #28a745; }
.score-label.good { color: #17a2b8; }
.score-label.average { color: #ffc107; }
.score-label.poor { color: #dc3545; }

/* 테이블 점수 분석 스타일 */
#scoreAnalysisTable .positive { color: #28a745; }
#scoreAnalysisTable .negative { color: #dc3545; }
#scoreAnalysisTable .neutral { color: #6c757d; }

#scoreAnalysisTable td:first-child { text-align: left; }
#scoreAnalysisTable td { text-align: center; vertical-align: middle; }

#finalScoreCell {
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
}

/* 모달 디테일 스타일 */
#combinationDetailModal .modal-body {
  max-height: 75vh;
  padding: 0.5rem;
  overflow-y: auto;
}

.rank-badges-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.3rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  white-space: nowrap;
  scrollbar-width: thin;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

.rank-badges-container::-webkit-scrollbar {
  height: 4px;
}

.rank-badges-container::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.past-winning-container {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}

.detail-table-container {
  overflow-x: auto;
  white-space: nowrap;
}

#combinationDetailModal .table th,
#combinationDetailModal .table td {
  padding: 0.4rem;
  vertical-align: middle;
}

#pastWinningTable .ball {
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
  margin-right: 2px;
}

/* 용어 관련 스타일 */
.voca-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-start;
  margin: 1rem 0;
  padding: 0.5rem;
}

.voca-button {
  background-color: white;
  border: 2px solid #3c6997;
  border-radius: 8px;
  color: #3c6997;
  cursor: pointer;
  font-family: 'GmarketSansMedium', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.7rem 1rem;
  text-align: center;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.voca-button:hover {
  background-color: #3c6997;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.voca-button.active-voca {
  background-color: #3c6997;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.voca-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transition: left 0.5s ease-in-out;
}

.voca-button:hover::before {
  left: 100%;
}

#voca-description {
  font-family: 'GmarketSansMedium', sans-serif;
  font-size: 1.1rem;
  background-color: #f8f9fa;
  border: 2px solid #3c6997;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
  min-height: 250px;
  padding: 1.2rem;
  transition: all 0.3s ease;
}

#termsContent {
  text-align: left;
  border: 1px solid #dee2e6;
  padding: 0.5rem;
  margin-top: 1.5rem;
  background-color: white;
  border-radius: 0.25rem;
  word-break: keep-all;
  word-wrap: break-word;
}

#termsContentRegister {
  text-align: left;
}

/* 반응형 스타일 */
@media (max-width: 1384px) {
  .navbar-collapse {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: #3c6997;
    z-index: 1045;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .menu-header {
    padding: 0.5rem 1rem;
    position: relative;
  }

  .navbar-collapse.show {
    transform: translateX(0);
  }

  .navbar-nav {
    padding-top: 0px;
    padding-left: 10px;
    width: 100%;
  }

  .navbar-dark .navbar-nav .nav-link {
    color: white;
    font-size: 1.2rem;
    padding: 0.3rem 0;
  }

  .navbar-nav .nav-item {
    margin-bottom: 0.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.3rem;
  }

  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }

  .navbar-toggler {
    border: none;
    padding: 0.5rem;
    position: relative;
    z-index: 1060;
    display: block !important;
  }

  .navbar-toggler:focus {
    box-shadow: none;
    outline: none;
  }

  .menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
  }

  .menu-backdrop.show {
    display: block;
  }

  .menu-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 1050;
    display: block !important;
  }
}

@media (min-width: 1385px) {
  .navbar-collapse {
    display: flex !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    overflow-y: visible !important;
  }

  .collapse.navbar-collapse {
    display: flex !important;
  }

  .navbar-nav {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    padding-top: 0 !important;
  }

  .navbar-nav .nav-item {
    margin-bottom: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  .navbar-dark .navbar-nav .nav-link {
    font-size: 1.35rem !important;
    padding: 0.5rem !important;
  }

  .navbar-toggler, .menu-close-btn, .menu-backdrop {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .width-free-wrapper, .width-midium-wrapper, .analysis-wrapper, .winning-numbers-wrapper {
    padding: 0.6rem 0.4rem !important;
  }

  .ball, .plus {
    margin-right: 4px;
  }
  
  .prize-info {
    flex-wrap: wrap;
  }
  
  .prize-info .winning-tickets {
    display: block;
    margin-left: 0.3em;
  }
  
  .lead {
    flex-wrap: wrap;
  }
  
  .draw-info {
    display: block;
    text-align: center;
  }
  
  #loginFormContainer, #registerFormContainer {
    max-width: none;
  }
  
  #statisticsResults, #combinationsResults {
    max-height: 500px !important;
  }
  
  #combinationsTable {
    min-width: 650px;
    font-size: 0.9rem;
  }
  
  #combinationsTable th, #combinationsTable td {
    padding: 0.4rem 0.3rem;
  }
  
  #combinationsTable th:nth-child(3), #combinationsTable td:nth-child(3) {
    min-width: 200px;
    white-space: nowrap;
  }
  
  #combinationsTable .btn-sm {
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
  }
  
  #lottoNumberButtons .number-btn {
    margin: 1px;
    font-size: 0.9rem;
  }
  
  #selectedNumbers {
    max-width: 100%;
  }
  
  .score-circle {
    width: 100px;
    height: 100px;
  }
  
  .score-text {
    font-size: 2rem;
  }
  
  #combinationDetailModal .row .col {
    flex-basis: 100%;
    margin-bottom: 0.3rem;
  }
  
  #combinationDetailModal .modal-body {
    max-height: calc(75vh - 15px);
    padding: 0.5rem;
  }
  
  #combinationDetailModal .modal-dialog, #filterHelpModal .modal-dialog {
    margin: 0.4rem;
    max-width: 100%;
  }
  
  #filterHelpModal .modal-body .alert {
    padding: 0.8rem 0.8rem;
    margin-bottom: 0.8rem;
  }
  
  #filterHelpModal .modal-body .mt-2 p {
    margin-bottom: 0.7rem !important;
  }
  
  #combinationDetailModal .card-body {
    padding: 0.5rem;
  }
  
  .rank-badges-container {
    gap: 0.1rem;
    display: flex;
    justify-content: center;
  }
  
  .past-winning-container {
    max-height: 190px;
  }
  
  #combinationDetailModal .table {
    font-size: 0.85rem;
  }
  
  .assure-options {
    flex-direction: column;
  }
  
  .number-selection-container .btn.number-btn, 
  .number-selection-container .number-button {
    width: 38px !important;
    height: 38px !important;
    margin: 1px !important;
    font-size: 0.85rem !important;
  }
  
  .filter-content {
    flex-direction: row;
    justify-content: flex-start;
  }
  
  .form-check-inline {
    margin-right: 0.5rem;
    margin-bottom: 0.3rem;
  }
  
  .input-group {
    flex-wrap: nowrap;
  }
  
  .input-group input {
    width: auto;
  }

  .voca-list {
    gap: 0.5rem;
    padding: 0.3rem;
  }
  
  .voca-button {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }
}

@media (max-width: 576px) {
  .ball, .plus {
    margin-right: 2px;
  }
  
  #combinationDetailModal .modal-dialog, #filterHelpModal .modal-dialog {
    margin: 0.4rem;
    max-width: 100%;
  }
  
  #combinationDetailModal .modal-body {
    padding: 0.4rem;
    max-height: calc(75vh - 15px);
  }
  
  #combinationDetailModal .table, #filterHelpModal .table {
    font-size: 0.85rem;
  }
  
  #combinationDetailModal .table th, #combinationDetailModal .table td,
  #filterHelpModal .table th, #filterHelpModal .table td {
    padding: 0.2rem;
  }
  
  #combinationDetailModal .modal-header, #combinationDetailModal .modal-footer,
  #filterHelpModal .modal-footer {
    padding: 0.4rem;
  }
  
  #filterHelpModal .modal-header {
    padding: 0.6rem 0.6rem 0.4rem 0.6rem;
  }
  
  #filterHelpModal .modal-body .mt-2 p {
    margin-bottom: 0.4rem !important;
  }
  
  #filterHelpModal .modal-body .alert {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  #combinationDetailModal .card {
    margin-bottom: 0.5rem;
  }
  
  .past-winning-container {
    max-height: 180px;
  }
  
  #combinationDetailModal .card-header {
    padding: 0.4rem;
  }
  
  #combinationDetailModal .card-body {
    padding: 0.4rem;
  }
  
  #combinationDetailModal .card-header h6 {
    font-size: 1rem;
  }
  
  #combinationDetailModal .modal-title, #filterHelpModal .modal-title {
    font-size: 1.2rem;
  }
  
  #filterHelpModal .p {
    margin-bottom: 0.6rem !important;
  }
  
  .filter-content {
    justify-content: flex-start;
  }
  
  .form-check-inline {
    margin-right: 0.4rem;
    margin-bottom: 0.3rem;
    flex: 0 0 auto;
  }

  .footer-text {
      font-size: 13px;
  }
  
  .mobile-break {
      display: block;
      margin-top: 3px;
  }
  
  #dreamNumbersBtn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  
  #dreamSearchResults .btn-group {
    flex-direction: column;
  }
  
  #dreamSearchResults .btn-outline-primary,
  #dreamSearchResults .btn-outline-danger {
    margin-bottom: 0.25rem;
    border-radius: 0.25rem !important;
  }
  
  .auto-fixed-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  
  .auto-buttons-container {
    flex-direction: row;
    align-items: start;
  }
  
  #autoExcludeBtn {
    width: 200px;
    margin-right: 0.5rem;
    margin-bottom: 0;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#voca-description {
  animation: fadeIn 0.3s ease-out;
}

.voca-button.active-voca::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
}