/* base.css - 기본 스타일 */
:root {
    --primary-color: #8bc34a;
    --primary-dark: #689f38;
    --primary-light: #dcedc8;
    --accent-color: #4caf50;
    --text-primary: #212121;
    --text-secondary: #757575;
    --background-color: #f8f9fa;
    --card-color: #ffffff;
    --border-radius: 8px;
}

body {
    padding-top: 56px;
    background-color: var(--background-color);
    color: var(--text-primary);
    font-family: 'Noto Sans KR', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

body.has-mobile-nav {
    padding-bottom: 60px; /* 모바일 네비게이션 바를 위한 하단 패딩 */
}

.app-logo {
    font-weight: bold;
    font-size: 24px;
    color: var(--primary-color);
    text-decoration: none;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    color: var(--text-secondary);
    position: relative;
    padding: 8px 15px;
    margin: 0 5px;
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 10px 10px 0 0;
}

.footer {
    margin-top: auto;
    padding: 30px 0;
    background-color: #f0f7e6;
    color: var(--text-primary);
    flex-shrink: 0;
    border-top: 1px solid var(--primary-light);
}

.footer a {
    color: #5a8f29;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.footer a:hover {
    color: #8bc34a;
}

.footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #8bc34a;
    transition: width 0.3s ease;
}

.footer a:hover::after {
    width: 100%;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
    color: #3e7207;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(139, 195, 74, 0.3);
    padding-top: 15px;
    margin-top: 15px;
}

/* 로딩 오버레이 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

.spinner-container {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

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

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

/* 카드 스타일 개선 */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: var(--card-color);
    border-bottom: 1px solid var(--primary-light);
    padding: 15px 20px;
}

.card-body {
    padding: 20px;
}

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

.btn-custom-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-custom-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-custom {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 상단 헤더 */
.header {
    height: 56px;
    display: flex;
    align-items: center;
    z-index: 1030;
}

/* 모바일 네비게이션 바 */
.mobile-nav {
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    z-index: 1020;
}

.mobile-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 5px;
    border-radius: 8px;
    transition: all 0.2s;
}

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

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

/* 플로팅 액션 버튼 */
.btn-floating {
    position: fixed;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1030;
    text-decoration: none;
}

.btn-floating-inner {
    width: 56px;
    height: 56px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-floating-inner:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

/* 모바일 푸터 */
.mobile-footer {
    background-color: var(--background-color);
    padding: 10px 0;
    font-size: 0.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .app-logo {
        font-size: 20px;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .col-md-3 {
        margin-top: 20px;
    }
    
    .social-links {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    /* 카드 간격 조정 */
    .card {
        margin-bottom: 15px;
    }
}

/* 콘텐츠 래퍼 */
.content-wrapper {
    flex: 1 0 auto;
    padding-bottom: 3rem; /* 푸터와의 여백 */
    max-width: 100%;
    overflow-x: hidden;
}
