/* LIV인테리어 - 커스텀 스타일 */

/* 폰트 적용 */
@import url('https://spoqa.github.io/spoqa-han-sans/css/SpoqaHanSansNeo.css');

* {
    font-family: 'Spoqa Han Sans Neo', 'sans-serif';
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 드롭다운 메뉴 */
.group:hover .group-hover\:visible {
    visibility: visible;
    opacity: 1;
}

/* 모바일 메뉴 */
@media (max-width: 768px) {
    .mobile-menu {
        display: none;
    }
    .mobile-menu.active {
        display: block;
    }
}

/* 카드 호버 효과 */
.card-hover {
    transition: all 0.2s ease;
}

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

/* 로딩 애니메이션 */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* 알림 애니메이션 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-slide {
    animation: slideIn 0.3s ease;
}

/* 테이블 스타일 */
.table-responsive {
    overflow-x: auto;
}

/* 인쇄용 스타일 */
@media print {
    header, nav, .no-print {
        display: none !important;
    }

    body {
        background: white !important;
    }

    .print-area {
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* 타임라인 스타일 */
.timeline-bar {
    transition: all 0.2s ease;
}

.timeline-bar:hover {
    transform: scaleY(1.1);
    filter: brightness(1.1);
}

.timeline-bar.color-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.timeline-bar.color-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.timeline-bar.color-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.timeline-bar.color-pink { background: linear-gradient(135deg, #ec4899, #be185d); }
.timeline-bar.color-orange { background: linear-gradient(135deg, #f97316, #c2410c); }
.timeline-bar.color-red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.timeline-bar.color-yellow { background: linear-gradient(135deg, #eab308, #ca8a04); }
.timeline-bar.color-green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.timeline-bar.color-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.timeline-bar.color-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.timeline-bar.color-gray { background: linear-gradient(135deg, #6b7280, #4b5563); }

/* 폼 포커스 스타일 */
input:focus, textarea:focus, select:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
}

/* 버튼 비활성화 */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 툴팁 */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 채팅 모달 스타일 */
#chatModal .chat-message {
    max-width: 80%;
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}

#chatModal .chat-message.mine {
    background-color: #3b82f6;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

#chatModal .chat-message.others {
    background-color: #f3f4f6;
    color: #1f2937;
    margin-right: auto;
    border-bottom-left-radius: 2px;
}

#chatModal .chat-time {
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.7;
    text-align: right;
}
