/* 로또 번호 볼 스타일 */
.lotto-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, background 0.3s ease;
}

/* 필수 포함 번호 강조 스타일 */
.lotto-ball.included {
    border: 3px solid #fff;
    box-shadow: 0 0 15px rgba(255, 255, 100, 0.8), 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 8px rgba(255, 255, 100, 0.6), 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    to {
        box-shadow: 0 0 20px rgba(255, 255, 100, 1), 0 4px 8px rgba(0, 0, 0, 0.3);
    }
}

.lotto-ball:hover {
    transform: scale(1.1);
}

/* 반응형 로또 볼 */
@media (max-width: 768px) {
    h1, .display-4 {
        font-size: 2.5rem;
    }
    .lotto-ball {
        width: 48px;
        height: 48px;
        font-size: 1rem;
        margin: 4px;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 0.95rem;
    }
    h1, .display-4 {
        font-size: 2rem;
    }
    .lead {
        font-size: 1rem;
    }
    .lotto-ball {
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
        margin: 3px;
    }
    .card-body {
        padding: 1rem;
    }
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* 카드 스타일 개선 */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 버튼 스타일 개선 */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* 네비게이션 스타일 */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* 로딩 애니메이션 */
.spinner-border {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 배지 스타일 */
.badge {
    font-size: 0.8rem;
    padding: 0.5em 0.8em;
}

/* 차트 컨테이너 */
#chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

/* 통계 리스트 */
#high-frequency-list,
#low-frequency-list {
    max-height: 300px;
    overflow-y: auto;
}

#high-frequency-list > div,
#low-frequency-list > div {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

#high-frequency-list > div:last-child,
#low-frequency-list > div:last-child {
    border-bottom: none;
}

/* 푸터 스타일 */
footer {
    margin-top: auto;
}

/* 반응형 테이블 */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* 애니메이션 효과 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* 사용자 정의 색상 */
:root {
    --primary-color: #007bff;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

/* --- Mobile Bottom Navigation --- */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    border-top: 1px solid #dee2e6;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d; /* secondary color */
    text-decoration: none;
    flex-grow: 1;
    font-size: 0.7rem;
    transition: color 0.2s ease;
}

.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.mobile-nav-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 991.98px) { /* lg breakpoint and down */
    main.container {
        padding-bottom: 80px; /* Space for mobile nav */
    }
}


/* 작은 로또 볼 스타일 (연관분석 페이지용) */
.lotto-ball-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    line-height: 1;
}
