/* 피그플랜 부트스트랩 미세조정 완성 버전 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
    --brand-primary: #0081C7;
    --brand-secondary: #4DABF7;
    --brand-accent: #E3F2FD;
    --background-main: #FFFFFF;
    --background-card: #FFFFFF;
    --background-section: #FAFBFC;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border-light: #E5E7EB;
    --border-medium: #D1D5DB;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 부트스트랩 색상 커스터마이징 */
.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    background-image: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
}

.btn-primary:hover {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

.text-primary {
    color: var(--brand-primary) !important;
}

.bg-primary {
    background-color: var(--brand-primary) !important;
}

/* 헤더 스타일 */
.header {
    background: linear-gradient(180deg, var(--background-card) 0%, var(--background-main) 100%);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--brand-primary);
}

/* 실시간 정보 바 */
.info-stats-bar {
    background-color: rgba(0, 129, 199, 0.05) !important;
    border-color: var(--border-light) !important;
}

.info-stats-bar .material-icons {
    font-size: 1rem;
    color: var(--brand-primary);
}

.info-stats-bar small {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.info-stats-bar strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* 새로고침 버튼 스타일 */
.refresh-btn {
    border: none !important;
    background: none !important;
    color: var(--brand-primary) !important;
    box-shadow: none !important;
    outline: none !important;
}

.refresh-btn:hover,
.refresh-btn:focus,
.refresh-btn:active,
.refresh-btn:focus-visible {
    border: none !important;
    background: none !important;
    color: var(--brand-primary) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 메인 컨테이너 */
.main-container {
    padding: 10px 0;
    flex: 1;
}

/* 메인 행 - 정확한 높이 맞춤 */
.main-row {
    margin: 0 -4px;
    min-height: 680px;
}

.main-row > [class*="col-"] {
    padding: 0 4px;
    height: 100%;
}

/* 컬럼 너비 설정 - 풀와이드 */
.col-sidebar {
    width: 280px;
    flex: 0 0 280px;
}

.col-poster {
    width: 380px;
    flex: 0 0 380px;
}

.col-main {
    flex: 1;
    min-width: 0;
}

.col-news {
    flex: 1;
    min-width: 0;
}

/* 1열 높이 설정 - 미세조정으로 여유 공간 확보 */
.col-sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 6px; /* 섹션 간 간격 */
}

.col-sidebar .sidebar-card:nth-child(1) {
    height: 240px; /* 160px → 148px (-12px) */
}

.col-sidebar .sidebar-card:nth-child(2) {
    height: 160px; /* 150px → 135px (-15px) */
}

.col-sidebar .sidebar-card:nth-child(3) {
    height: 250px; /* 200px → 185px (-15px) */
}

.col-sidebar .sidebar-card:nth-child(4) {
    height: 180px; /* 162px → 148px (-14px) */
}

/* 2-3-4열 행별 높이 */
.main-row-1 {
    height: 420px;
}

.main-row-2 {
    height: 420px;
}

.col-poster .row {
    height: 100%;
}

.col-poster .row .col-12 {
    height: calc(50% - 4px);
}

/* 2열 포스터만 별도 높이 조정 */
.col-poster .col-12.main-row-1 {
    height: 420px !important;
}

.col-poster .col-12.main-row-2 {
    height: 420px !important;
}

.col-poster .main-row-1 {
    height: 300px !important;
}

.col-poster .main-row-2 {
    height: 300px !important;
}

/* 카드 공통 스타일 */
.card {
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    background: var(--background-card);
    height: 100%;
    transition: none !important;
}

/* 부트스트랩 카드 호버 효과 완전 제거 */
.card:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    transform: none !important;
}

.card-body {
    padding: 0.75rem; /* 1rem → 0.75rem */
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 카드 헤더 */
.card-header-custom {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.5rem; /* 0.75rem → 0.5rem */
}

.card-header-custom .material-icons {
    color: var(--brand-primary);
    font-size: 1rem; /* 1.125rem → 1rem */
}

.card-header-custom h6 {
    font-size: 1.0rem; /* 0.8rem → 0.9rem */
    font-weight: 600;
    color: var(--text-primary);
}

/* 로그인 폼 - 컴팩트하게 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem; /* 0.5rem → 0.4rem */
}

.login-form .form-control {
    border-radius: var(--border-radius-sm);
    border: 1px solid #ced4da;
    padding: 0.4rem 0.6rem; /* 더 컴팩트하게 */
    font-size: 0.8rem; /* 0.875rem → 0.8rem */
}

.login-form .form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 129, 199, 0.25);
}

.login-form .btn {
    font-size: 0.8rem; /* 0.875rem → 0.8rem */
    padding: 0.5rem; /* 0.6rem → 0.5rem */
}

/* 공지사항 리스트 - 3개만, 컴팩트하게 */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem; /* 0.5rem → 0.3rem */
    flex: 1;
}

.notice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0; /* 0.6rem → 0.4rem */
    border-bottom: 1px solid var(--border-light);
}

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

.notice-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.75rem; /* 0.8rem → 0.75rem */
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 0.5rem;
}

.notice-link:hover {
    color: var(--brand-primary);
}

.notice-date {
    color: var(--text-muted);
    font-size: 0.7rem; /* 0.75rem → 0.7rem */
    font-weight: 500;
    white-space: nowrap;
}

/* 콘텐츠 링크 - 컴팩트하게 */
.content-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem; /* 0.5rem → 0.4rem */
    flex: 1;
}

.content-link {
    display: flex;
    align-items: center;
    gap: 0.6rem; /* 0.75rem → 0.6rem */
    padding: 0.6rem; /* 0.75rem → 0.6rem */
    background: var(--background-main);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.content-link:hover {
    background: var(--brand-accent);
    border-color: var(--brand-primary);
}

.content-icon {
    width: 28px; /* 32px → 28px */
    height: 28px; /* 32px → 28px */
    border-radius: 50%;
    background: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem; /* 1rem → 0.9rem */
    flex-shrink: 0;
}

.content-icon img {
    width: 20px; /* 24px → 20px */
    height: 20px; /* 24px → 20px */
    object-fit: contain;
}

.content-info {
    flex: 1;
}

.content-title {
    font-size: 0.75rem; /* 0.8rem → 0.75rem */
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem; /* 0.25rem → 0.2rem */
}

.content-desc {
    font-size: 0.7rem; /* 0.75rem → 0.7rem */
    color: var(--text-secondary);
}

/* 보고서 아이템 - 컴팩트하게 */
.report-item {
    background: var(--background-main);
    padding: 0.6rem; /* 0.75rem → 0.6rem */
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.4rem; /* 0.5rem → 0.4rem */
}

.report-title {
    font-size: 0.75rem; /* 0.8rem → 0.75rem */
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem; /* 0.25rem → 0.2rem */
}

.report-desc {
    font-size: 0.7rem; /* 0.75rem → 0.7rem */
    color: var(--text-secondary);
    margin-bottom: 0.2rem; /* 0.25rem → 0.2rem */
}

.report-date {
    font-size: 0.65rem; /* 0.7rem → 0.65rem */
    color: var(--text-muted);
}

.more-link {
    color: var(--brand-primary);
    text-decoration: none;
    font-size: 0.7rem; /* 0.75rem → 0.7rem */
    font-weight: 500;
    margin-top: auto;
}

.more-link:hover {
    color: var(--brand-secondary);
}

/* 이벤트 포스터 - 박스에 꽉 차게 */
.event-poster {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-main);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    padding: 4px;
}

.event-poster img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
}

.poster-placeholder {
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-secondary));
    color: var(--brand-primary);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: var(--border-radius-sm);
}

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

/* 버튼 그룹 */
.btn-group .btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

/* 유튜브 썸네일 섹션 */
.youtube-thumbnail {
    width: 100%;
    height: 120px; /* 16:9 비율에 맞는 적절한 높이 */
    background: transparent;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-thumbnail:hover {
    transform: scale(1.02);
}

.youtube-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.youtube-placeholder {
    background: transparent;
    color: var(--text-primary);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-play-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 2rem;
    transition: var(--transition);
}

.youtube-play-btn:hover {
    background: white;
    transform: scale(1.1);
}

/* 전문가 섹션 */
.expert-main {
    background: transparent;
    padding: 0.5rem; /* 1rem → 0.5rem */
    border-radius: var(--border-radius-sm);
}

/* 전문가 콘텐츠 리스트 */
.expert-content-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    overflow-y: auto;
    padding: 0.2rem;
}

.expert-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem; /* 0.75rem → 0.5rem */
    padding: 0.5rem; /* 0.75rem → 0.5rem */
    background: var(--background-main);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    min-height: 50px; /* 55px → 50px */
}

.expert-item:hover {
    background: var(--brand-accent);
}

.expert-info h6 {
    font-size: 0.75rem; /* 0.8rem → 0.75rem */
    font-weight: 600;
    margin-bottom: 0.2rem; /* 0.25rem → 0.2rem */
}

.expert-info h6 a {
    color: var(--text-primary);
    text-decoration: none;
}

.expert-info h6 a:hover {
    color: var(--brand-primary);
}

.expert-info p {
    font-size: 0.7rem; /* 0.75rem → 0.7rem */
    color: var(--text-secondary);
    margin: 0;
}

/* 뉴스 리스트 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* 0.75rem → 0.5rem */
    flex: 1;
    overflow-y: auto;
}

.news-item {
    display: flex;
    gap: 0.5rem; /* 0.75rem → 0.5rem */
    padding: 0.5rem; /* 0.75rem → 0.5rem */
    background: var(--background-main);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    min-height: 60px; /* 70px → 60px */
}

.news-item:hover {
    background: var(--brand-accent);
}

/* 피그플랜 인사이트 강조 스타일 */
.news-item.pigplan-insight {
    background: linear-gradient(135deg, rgba(0, 129, 199, 0.08), rgba(76, 171, 247, 0.05));
    position: relative;
}

.news-item.pigplan-insight:hover {
    background: linear-gradient(135deg, rgba(0, 129, 199, 0.12), rgba(76, 171, 247, 0.08));
}

.news-item.pigplan-insight .news-content h6 a {
    color: var(--brand-primary);
    font-weight: 600;
}

.news-item.pigplan-insight .news-content h6 a:hover {
    color: var(--brand-secondary);
}

.news-date {
    font-size: 0.75rem; /* 0.8rem → 0.75rem */
    color: var(--text-muted);
    font-weight: 500;
    width: 35px; /* 40px → 35px */
    flex-shrink: 0;
}

.news-content h6 {
    font-size: 0.8rem; /* 0.85rem → 0.8rem */
    font-weight: 600;
    margin-bottom: 0.3rem; /* 0.5rem → 0.3rem */
    line-height: 1.3;
}

.news-content h6 a {
    color: var(--text-primary);
    text-decoration: none;
}

.news-content h6 a:hover {
    color: var(--brand-primary);
}

.news-content p {
    font-size: 0.7rem; /* 0.75rem → 0.7rem */
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.3;
}

/* 가이드 리스트 */
.guide-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* 0.75rem → 0.5rem */
    flex: 1;
    overflow-y: auto;
}

.guide-item {
    display: flex;
    gap: 0.5rem; /* 0.75rem → 0.5rem */
    padding: 0.5rem; /* 0.75rem → 0.5rem */
    background: var(--background-main);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    min-height: 60px; /* 70px → 60px */
}

.guide-item:hover {
    background: var(--brand-accent);
}

.guide-icon {
    width: 35px; /* 40px → 35px */
    height: 35px; /* 40px → 35px */
    background: var(--brand-primary);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.guide-icon .material-icons {
    font-size: 1.1rem; /* 1.2rem → 1.1rem */
}

.guide-content h6 {
    font-size: 0.8rem; /* 0.85rem → 0.8rem */
    font-weight: 600;
    margin-bottom: 0.3rem; /* 0.5rem → 0.3rem */
    line-height: 1.3;
}

.guide-content h6 a {
    color: var(--text-primary);
    text-decoration: none;
}

.guide-content h6 a:hover {
    color: var(--brand-primary);
}

.guide-content p {
    font-size: 0.7rem; /* 0.75rem → 0.7rem */
    color: var(--text-secondary);
    margin-bottom: 0.3rem; /* 0.5rem → 0.3rem */
    line-height: 1.3;
}

/* 배지 */
.badge {
    font-size: 0.65rem; /* 0.7rem → 0.65rem */
    padding: 0.2rem 0.4rem; /* 0.25rem 0.5rem → 0.2rem 0.4rem */
    border-radius: 4px;
}

/* 플로팅 버튼 */
.chatbot-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chatbot-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.chatbot-fab .material-icons {
    font-size: 1.5rem;
    color: white;
}

/* 푸터 */
.footer {
    padding: 2rem 0;
    background: var(--background-card);
    border-top: 1px solid var(--border-light);
    margin-top: auto;
    flex-shrink: 0;
}

.footer .small {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.footer a {
    color: var(--text-primary);
    text-decoration: none;
}

.footer a:hover {
    color: var(--brand-primary);
}

/* 반응형 디자인 */
@media (max-width: 1400px) {
    .col-sidebar {
        width: 260px;
        flex: 0 0 260px;
    }
    
    .col-poster {
        width: 350px;
        flex: 0 0 350px;
    }
}

@media (max-width: 1200px) {
    .main-row {
        flex-direction: column;
        gap: 1rem;
        height: auto;
    }
    
    .col-sidebar,
    .col-poster,
    .col-main,
    .col-news {
        width: 100%;
        flex: none;
        height: auto;
    }
    
    .col-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .col-sidebar .sidebar-card:nth-child(1),
    .col-sidebar .sidebar-card:nth-child(2),
    .col-sidebar .sidebar-card:nth-child(3),
    .col-sidebar .sidebar-card:nth-child(4) {
        height: auto;
    }
    
    .main-row-1,
    .main-row-2 {
        height: auto;
        margin-bottom: 0;
    }
    
    .col-poster .row .col-12 {
        height: auto;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }
    
    .info-stats-bar .row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .col-sidebar {
        grid-template-columns: 1fr;
    }
    
    .chatbot-fab {
        bottom: 15px;
        right: 15px;
        width: 48px;
        height: 48px;
    }
    
    .chatbot-fab .material-icons {
        font-size: 1.2rem;
    }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 사이드바 카드에만 애니메이션 적용 */
.sidebar-card {
    animation: fadeInUp 0.6s ease-out;
}

/* 스크롤바 */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-secondary);
}

/* ===== 초현대적 디자인 시스템 2025 ===== */

/* Glassmorphism 카드 */
.ultra-modern-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
}

.ultra-modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.ultra-modern-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(31, 38, 135, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ultra-modern-card:hover::before {
    left: 100%;
}

/* Neumorphism 카드 */
.neuro-card {
    background: #f0f0f3;
    border-radius: 24px;
    box-shadow: 
        9px 9px 18px rgba(163, 163, 163, 0.3),
        -9px -9px 18px rgba(255, 255, 255, 0.8);
    border: none;
    transition: all 0.3s ease;
    position: relative;
}

.neuro-card:hover {
    box-shadow: 
        inset 9px 9px 18px rgba(163, 163, 163, 0.2),
        inset -9px -9px 18px rgba(255, 255, 255, 0.9);
}

/* 초현대적 그라디언트 배경 */
.gradient-bg-primary {
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 100%);
}

.gradient-bg-secondary {
    background: linear-gradient(135deg,
        #f093fb 0%,
        #f5576c 100%);
}

.gradient-bg-success {
    background: linear-gradient(135deg,
        #4facfe 0%,
        #00f2fe 100%);
}

/* 미래형 버튼 */
.futuristic-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 25px;
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px 0 rgba(116, 75, 162, 0.75);
}

.futuristic-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.6s ease;
}

.futuristic-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 30px 0 rgba(116, 75, 162, 0.9);
    color: white;
}

.futuristic-btn:hover::before {
    left: 100%;
}

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

/* 네온 효과 버튼 */
.neon-btn {
    background: transparent;
    border: 2px solid #00f2fe;
    border-radius: 25px;
    color: #00f2fe;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.neon-btn:hover {
    background: #00f2fe;
    color: #000;
    box-shadow: 
        0 0 20px #00f2fe,
        inset 0 0 20px rgba(0, 242, 254, 0.1);
    transform: scale(1.05);
}

/* 플로팅 라벨 입력 */
.floating-input {
    position: relative;
    margin: 25px 0;
}

.floating-input input {
    width: 100%;
    padding: 15px 20px 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 16px;
}

.floating-input input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.floating-input label {
    position: absolute;
    left: 20px;
    top: 15px;
    color: #999;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.floating-input input:focus + label,
.floating-input input:not(:placeholder-shown) + label {
    top: -10px;
    left: 15px;
    font-size: 12px;
    color: #667eea;
    background: white;
    padding: 0 10px;
    border-radius: 10px;
}

/* 고급 카드 애니메이션 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2n) {
    animation-delay: -2s;
}

.floating-card:nth-child(3n) {
    animation-delay: -4s;
}

/* 모던 배지 */
.modern-badge {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(116, 75, 162, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

.modern-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.modern-badge:hover::before {
    left: 100%;
}

/* 스마트 그리드 레이아웃 */
.smart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

@media (min-width: 768px) {
    .smart-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
        gap: 40px;
    }
}

@media (min-width: 1200px) {
    .smart-grid {
        grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
        gap: 50px;
    }
}

/* 인터랙티브 호버 효과 */
.interactive-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    cursor: pointer;
}

.interactive-card:hover {
    transform: rotateY(5deg) rotateX(5deg) translateZ(20px);
}

/* 모던 페이지네이션 */
.futuristic-pagination .page-link {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: #667eea;
    margin: 0 5px;
    padding: 12px 18px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.futuristic-pagination .page-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.futuristic-pagination .page-item.active .page-link {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.5);
}

/* 고급 검색 바 */
.premium-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.premium-search input {
    width: 100%;
    padding: 18px 60px 18px 25px;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

.premium-search input:focus {
    outline: none;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 0 3px rgba(102, 126, 234, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.15);
}

.premium-search .search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 20px;
}

/* 소셜 미디어 스타일 카드 */
.social-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
}

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

/* 고급 통계 카드 */
.premium-stats {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.premium-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.premium-stats:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.premium-stats .stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 모던 탭 */
.futuristic-tabs .nav-link {
    background: transparent;
    border: none;
    border-radius: 20px;
    color: #999;
    font-weight: 600;
    padding: 15px 25px;
    margin: 0 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.futuristic-tabs .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.futuristic-tabs .nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.futuristic-tabs .nav-link:hover::before {
    width: 80%;
}

.futuristic-tabs .nav-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.futuristic-tabs .nav-link.active::before {
    width: 80%;
}

/* 개선된 헤더 카드 */
.header-card {
    background: linear-gradient(135deg, var(--background-card) 0%, var(--brand-accent) 100%);
    border: 2px solid var(--brand-primary);
    border-radius: var(--border-radius-lg);
}

/* 메인 콘텐츠 영역 */
.content-section {
    background: var(--background-main);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* 향상된 폼 스타일 */
.enhanced-form-control {
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--background-card);
}

.enhanced-form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 129, 199, 0.15);
    background: white;
}

/* 모던 버튼 스타일 */
.btn-modern {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    letter-spacing: -0.025em;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
}

.btn-modern-primary:hover {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 129, 199, 0.3);
    color: white;
}

/* 향상된 배지 스타일 */
.badge-modern {
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.025em;
}

.badge-featured {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

.badge-new {
    background: linear-gradient(135deg, #4ECDC4, #44B3AC);
    color: white;
    box-shadow: 0 2px 4px rgba(78, 205, 196, 0.3);
}

/* 개선된 통계 카드 */
.stats-card {
    background: linear-gradient(135deg, var(--background-card), var(--brand-accent));
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 129, 199, 0.15);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1;
}

.stats-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* 향상된 뉴스/콘텐츠 아이템 */
.news-item-modern {
    background: var(--background-card);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    margin-bottom: 1rem;
    position: relative;
}

.news-item-modern::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary));
    border-radius: 2px 0 0 2px;
}

.news-item-modern:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

/* 개선된 필터 섹션 */
.filter-section {
    background: var(--background-card);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 향상된 페이지네이션 */
.pagination-modern .page-link {
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.pagination-modern .page-link:hover {
    background: var(--brand-accent);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.pagination-modern .page-item.active .page-link {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

/* 향상된 검색 바 */
.search-bar-modern {
    position: relative;
    max-width: 400px;
}

.search-bar-modern .form-control {
    padding-left: 3rem;
    border: 2px solid var(--border-light);
    border-radius: 50px;
    background: var(--background-card);
}

.search-bar-modern .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 2;
}

/* 개선된 알림/공지 스타일 */
.notice-modern {
    background: linear-gradient(135deg, var(--brand-accent), rgba(227, 242, 253, 0.7));
    border: 1px solid var(--brand-primary);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.notice-modern::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--brand-primary);
    border-radius: 2px 0 0 2px;
}

/* 향상된 사이드바 */
.sidebar-modern {
    background: var(--background-card);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 개선된 탭 스타일 */
.nav-tabs-modern {
    border: none;
    margin-bottom: 2rem;
}

.nav-tabs-modern .nav-link {
    border: 2px solid transparent;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 1rem 1.5rem;
    transition: var(--transition);
}

.nav-tabs-modern .nav-link:hover {
    border-color: var(--border-light);
    background: var(--brand-accent);
    color: var(--brand-primary);
}

.nav-tabs-modern .nav-link.active {
    border-color: var(--brand-primary);
    background: var(--background-card);
    color: var(--brand-primary);
    border-bottom-color: var(--background-card);
}

/* 반응형 그리드 개선 */
.grid-modern {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (min-width: 768px) {
    .grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (min-width: 1200px) {
    .grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

/* 로딩 애니메이션 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-light);
    border-radius: 50%;
    border-top-color: var(--brand-primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 개선된 토스트/알림 */
.toast-modern {
    background: var(--background-card);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.toast-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
}

/* 향상된 아코디언 */
.accordion-modern .accordion-item {
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    background: var(--background-card);
}

.accordion-modern .accordion-button {
    background: var(--background-card);
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.accordion-modern .accordion-button:not(.collapsed) {
    background: var(--brand-accent);
    color: var(--brand-primary);
}

/* 개선된 프로그레스 바 */
.progress-modern {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-modern .progress-bar {
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    transition: width 0.6s ease;
}

/* 로그인 섹션 스타일 */
.login-section {
    transition: var(--transition);
}

.logged-in-section {
    transition: var(--transition);
}

.user-info {
    background: var(--background-section);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    border: 1px solid var(--border-light);
}

.user-info .fw-bold {
    color: var(--brand-primary);
    font-size: 14px;
}

.logged-in-section .material-icons {
    vertical-align: middle;
}

.logged-in-section .btn {
    font-size: 13px;
    padding: 8px 16px;
}

.logged-in-section .btn .material-icons {
    font-size: 16px;
}



/* 로그인 후, ui 디자인 */
.fade-transition {
    transition: opacity 0.3s ease-in-out;
}

.user-profile {
    padding: 0.7rem 0;
    font-size: 0.85rem;
}


.farm-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0d6efd;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    flex-shrink: 0;
}

.userName {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* 구분자 추가 */
.fade-transition {
    transition: opacity 0.3s ease-in-out;
}

.user-profile {
    padding: 0.8rem 0;
    font-size: 0.9rem;
}


.user-details {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.farm-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0d6efd;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    flex-shrink: 0;
}

.userName {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* 구분자 추가 */
.farm-name::after {
    content: "·";
    margin-left: 0.4rem;
    color: #ccc;
    font-weight: normal;
}

.quick-stats {
    display: flex;
    justify-content: space-around;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #0d6efd;
    line-height: 1.3;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 3px;
    line-height: 1.2;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-user-action {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.5rem 0.7rem;
    line-height: 1.4;
}

.btn-user-action .material-icons {
    font-size: 0.9rem !important;
}

.d-none {
    display: none !important;
}