/* dashboard.css - 대시보드 스타일 */
.dashboard-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: auto;
    margin-bottom: 15px;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.stat-card {
    border-left: 4px solid var(--primary-color);
    margin-bottom: 20px;
}

.stat-icon {
    font-size: 36px;
    color: var(--primary-color);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
}

.welcome-section {
    background-color: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.chart-container {
    height: 180px;
    max-height: 180px;
    margin-bottom: 15px;
}

.recent-meal-card {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recent-meal-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.meal-time {
    font-size: 0.8rem;
    color: #6c757d;
}

/* 마지막 섹션에 추가 여백 */
.dashboard-bottom-margin {
    margin-bottom: 60px;
}

/* 모바일 슬라이더 스타일 */
.slick-dashboard {
    width: 100%;
    height: auto;
    padding-bottom: 40px;
}

.dashboard-slide-item {
    height: auto;
    display: flex;
    flex-direction: column;
    min-height: auto;
}

/* Slick 페이지네이션 스타일 */
.slick-dots {
    position: fixed;
    bottom: 10px;
    z-index: 100;
    width: 100%;
}

.slick-dots li button:before {
    color: var(--primary-color);
    opacity: 0.7;
}

.slick-dots li.slick-active button:before {
    color: var(--primary-color);
    opacity: 1;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
    padding-top: 10px;
}

.dashboard-slide {
    padding: 10px;
    height: auto;
    max-height: calc(100vh - 170px);
    overflow-y: auto;
}

.slide-indicator {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.slide-indicator-dot {
    height: 8px;
    width: 8px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 4px;
}

.slide-indicator-dot.active {
    background-color: var(--primary-color);
}

.swipe-guide {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swipe-guide i {
    margin: 0 5px;
    animation: swipe-animation 2s infinite;
}

@keyframes swipe-animation {
    0% {
        transform: translateX(-5px);
        opacity: 0.7;
    }
    50% {
        transform: translateX(5px);
        opacity: 1;
    }
    100% {
        transform: translateX(-5px);
        opacity: 0.7;
    }
}

/* 모바일용 스타일 */
@media (max-width: 767px) {
    .welcome-section {
        padding: 20px;
        margin-bottom: 10px;
    }
    
    .welcome-section h1 {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        font-size: 28px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .dashboard-card {
        margin-bottom: 10px;
    }
    
    .chart-container {
        height: 160px;
    }
    
    .desktop-view {
        display: none;
    }
    
    .mobile-view {
        display: block;
    }
}

@media (min-width: 768px) {
    .mobile-view {
        display: none;
    }
    
    .desktop-view {
        display: block;
    }
}

/* Slick 화살표 버튼 스타일 */
.slick-prev,
.slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slick-prev {
    left: 5px;
}

.slick-next {
    right: 5px;
}

.slick-prev:hover,
.slick-next:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Slick 기본 스타일 재정의 */
.slick-prev:before,
.slick-next:before {
    content: '';
    display: none;
}

.slick-slide {
    outline: none;
}

.slick-track {
    display: flex;
}
