/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd,
fieldset, form, label, legend,
caption,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

:root {
    scroll-behavior: auto;
}

body {
    line-height: 1.25;
}

code {
    white-space: normal;
}

input:focus {
    outline: none !important;
    box-shadow: none !important;
}

ol, ul {
    margin-bottom: 0;
}

/* Animations for redesigned board page */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-16px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes dataProcessing {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
}

@keyframes dataEntry {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-8px) scale(1.1);
        opacity: 1;
    }
}

@keyframes dataFlow {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.5;
    }
    50% {
        transform: translateX(5px);
        opacity: 1;
    }
}

@keyframes chartGeneration {
    0%, 100% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateX(-50%) translateY(-10px) scale(1.2);
        opacity: 1;
    }
}


@keyframes diamondProcessing {
    0% {
        transform: rotate(45deg) scale(1);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: rotate(45deg) scale(1.03);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    }
    100% {
        transform: rotate(45deg) scale(1);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Feature card hover effects */
.feature-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2rem !important;
    }

    .display-4 {
        font-size: 1.5rem !important;
    }
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

html {
    font-family: "Pretendard" !important;
}

html, body {
    overflow-x: hidden;
    height: 100%;
}

a {
    color: initial;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    color: initial;
}

.text-blue {
    color: #0d6efd;
}

.markepers-message-style {
    white-space: pre-wrap;
    line-height: 1.5;
}

.markepers-message * {
    line-height: 1.5;
}

.markepers-message ol, .markepers-message ul, .markepers-message li {
    line-height: 1;
}

.markepers-message li {
    line-height: 1.25;
}

/* 메시지 확대/축소 트랜지션 */
.markepers-message {
    position: relative;
    cursor: pointer;
}

.markepers-message:not(.message-expanded) {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.markepers-message.message-expanded {
    max-height: none !important;
    overflow: visible !important;
    cursor: default;
}

.markepers-message.message-expanded:after {
    display: none;
}

.main-container {
    --bs-gutter-x: 2rem;
    max-width: 1920px !important;
    left: 0;
    width: 100%;
    margin: auto;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.sub-container {
    max-width: 768px !important;
    left: 0;
    width: 100%;
    margin: auto;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}


.overflow-scroll {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.blurred {
    pointer-events: none; /* 클릭 방지 */

    /* 그라데이션 마스크 추가 */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 90%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 90%);

    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.width-max-content {
    width: max-content;
    min-width: 100%;
}

.request-message-height {
    min-height: calc(100vh - 150px);
}

.thumbnail-wrapper {
    position: relative;
    display: inline-block;
    margin: 5px;
    line-height: 1;
}

.thumbnail-wrapper img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 1rem;
}

.thumbnail-wrapper .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    color: white;
    background: var(--bs-secondary);
    border-radius: 50%;
    padding: 2px;
    cursor: pointer;
    font-size: 14px;
    width: 18px;
    height: 18px;
    display: flex;
    align-content: center;
    justify-content: center;
}

.ellipsis-one-line {
    white-space: nowrap; /* 줄 바꿈 없이 한 줄로 유지 */
    overflow: hidden; /* 넘친 텍스트 숨김 */
    text-overflow: ellipsis; /* 넘친 부분에 ... 표시 */
}

.ellipsis-two-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 최대 줄 수 설정 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}

/* Hero title font size adjustment */
.hero-section .display-1 {
    word-break: keep-all;
    font-size: min(3rem, calc(1.25rem + 4.5vw)) !important;
}

#btn-sidebar-toggle {
    position: absolute;
    left: 50%;
    top: initial;
    bottom: 8px;
    transform: translateX(-50%);
    z-index: 990;
}

#analysis-panel {
    max-width: 100%;
    min-width: 100%;
    height: 100%;
}

#analysis-panel.expand {
    width: 100%;
    max-width: 100%;
    visibility: visible;
}

#analysis-panel.expand.expand2 {
    max-height: 100%;
    height: 100vh;
}

#analysis-panel.expand2 #tab-content-messages {
    width: 100%;
    height: calc(100vh - 115px);
}

#analysis-panel .nav-link {
    color: var(--bs-nav-tabs-link-active-color);
}

#analysis-panel .nav-link.active {
    color: var(--bs-nav-link-color);
}


#textarea-ai-action:focus {
    color: initial;
    background-color: white;
    outline: initial;
    box-shadow: initial;
}

#btn-attach-images-a:focus, #btn-attach-images-b:focus {
    color: initial;
    outline: initial;
    box-shadow: initial;
}

#input-message {
    resize: none;
}

.toast-container {
    z-index: 9999 !important;
}

.persona-profile-img {
    animation: fade-in-out 3s linear infinite;
}

.pulse-animation {
    animation: pulse 1.5s infinite ease-in-out;
}

.ai-loading-message {
    color: #6c757d;
    font-style: italic;
    opacity: 0.8;
    position: relative;
}

.ai-loading-message::after {
    content: '';
    display: inline;
    animation: typing-dots 1.5s infinite;
}

@keyframes typing-dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60% {
        content: '...';
    }
    80%, 100% {
        content: '....';
    }
}


.lds-spinner {
    color: var(--bs-primary) !important;
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-spinner div {
    transform-origin: 40px 40px;
    animation: lds-spinner 1.2s linear infinite;
}

.lds-spinner div:after {
    content: " ";
    display: block;
    position: absolute;
    top: 3px;
    left: 37px;
    width: 6px;
    height: 18px;
    border-radius: 20%;
    background: var(--bs-primary) !important;
}

.lds-spinner div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -1.1s;
}

.lds-spinner div:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -1s;
}

.lds-spinner div:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.9s;
}

.lds-spinner div:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.8s;
}

.lds-spinner div:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.7s;
}

.lds-spinner div:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.6s;
}

.lds-spinner div:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.5s;
}

.lds-spinner div:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.4s;
}

.lds-spinner div:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.3s;
}

.lds-spinner div:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.2s;
}

.lds-spinner div:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -0.1s;
}

.lds-spinner div:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
}

@keyframes lds-spinner {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes fade-in-out {
    0% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.4;
    }
}

@keyframes pulseOld {
    0% {
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(0.9);
    }
}

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

@keyframes drawLine {
    0% {
        stroke-dasharray: 0 1000;
        opacity: 0.5;
    }
    50% {
        stroke-dasharray: 1000 0;
        opacity: 1;
    }
    100% {
        stroke-dasharray: 0 1000;
        opacity: 0.5;
    }
}

@keyframes fillArea {
    0%, 100% {
        opacity: 0.2;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.4;
        transform: scaleY(1.05);
    }
}

/* Typewriter Animation for AI Insights */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: var(--text-width, 100%);
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: white;
    }
}

.ai-insight-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid white;
    width: 0;
    display: inline-block;
}

.ai-insight-text.typing {
    animation: typewriter 0.5s steps(25, end), blink-caret 0.3s step-end infinite;
    animation-fill-mode: forwards;
}

.ai-insight-text.typing-complete {
    border-right: none;
    white-space: normal;
    width: auto;
    display: inline-block;
}

.ai-insight-text.typing-complete::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
}

.ai-insight-subtitle {
    opacity: 0;
    transition: opacity 0.5s ease-in;
    display: block;
    clear: both;
}

.ai-insight-subtitle.show {
    opacity: 0.75;
}

/* AI Insights 동그라미 고정 크기 유지 */
.ai-insight-text ~ .bg-white.rounded-circle,
.d-flex .bg-white.rounded-circle {
    flex-shrink: 0;
    min-width: 8px;
    min-height: 8px;
}


/* Guide Chatbot Highlight Effect */
@keyframes guideHighlight {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.6), 0 0 20px rgba(255, 107, 107, 0.4);
        background-color: rgba(255, 107, 107, 0.08);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(255, 71, 87, 0.8), 0 0 30px rgba(255, 71, 87, 0.6);
        background-color: rgba(255, 71, 87, 0.12);
    }
}

.guide-highlight {
    animation: guideHighlight 1s ease-in-out 3;
    position: relative;
    z-index: 1000;
}


@media (min-width: 992px) {
    .btn-lg-lg {
        padding: 0.5rem 1rem;
        font-size: 1.25rem;
        border-radius: 0.375rem;
    }

    #analysis-panel {
        max-width: initial;
        min-width: initial;
        height: calc(100vh - 56.516px);
    }

    #analysis-panel.expand {
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        min-width: 360px;
        height: calc(100vh - 56.516px);
    }

    #analysis-panel.expand.expand2 {
        max-width: 100%;
    }

    #analysis-panel.expand2 {
        height: calc(100vh - 56.516px) !important;
    }
}

/* Guide Chatbot Message Styling */
.guide-message-content p,
.guide-message-content ol,
.guide-message-content ul,
.guide-message-content li,
.guide-message-content span {
    line-height: 1.75;
}

/* Floating Menu Hover Effect */
.hover-bg-light {
    transition: background-color 0.2s ease;
}

.hover-bg-light:hover {
    background-color: #f8f9fa !important;
}

/* Symbol Loading Overlay */
.symbol-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.symbol-loading-overlay.active {
    display: flex;
}

.symbol-loading-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.symbol-loading-icon {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
}

.symbol-loading-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.9) 20%,
            #7337FF 40%,
            #7337FF 60%,
            rgba(255, 255, 255, 0.9) 80%,
            rgba(255, 255, 255, 0.9) 100%
    );
    background-size: 100% 200%;
    background-position: 0% -100%;
    mask-image: url('/static/img/symbol-white.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url('/static/img/symbol-white.svg');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    animation: symbolGradientWave 2.5s linear infinite;
    pointer-events: none;
}

@keyframes symbolGradientWave {
    0% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% -100%;
    }
}

/* === Feature Showcase Sections === */
.feature-section {
    padding: 120px 0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.feature-section.visible {
    opacity: 1;
    transform: translateY(0);
}
.feature-section:nth-child(even) {
    background: #f8f9fa;
}
.feature-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    flex-shrink: 0;
}
.feature-icon-box.chart { background: linear-gradient(135deg, #667eea, #764ba2); }
.feature-icon-box.table { background: linear-gradient(135deg, #f093fb, #f5576c); }
.feature-icon-box.insight { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.feature-icon-box.heatmap { background: linear-gradient(135deg, #a78bfa, #7337FF); }
.feature-icon-box.keywords { background: linear-gradient(135deg, #f97316, #ef4444); }
.feature-icon-box.blue { background: linear-gradient(135deg, #4facfe, #1e3a8a); }
.feature-icon-box.amber { background: linear-gradient(135deg, #fbbf24, #b45309); }

.feature-demo-divider {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 16px 0;
}

.feature-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    line-height: 1.3;
}
.feature-desc {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
}
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: #f0f0ff;
    color: #667eea;
}
.feature-tag.pink { background: #fff0f6; color: #f5576c; }
.feature-tag.cyan { background: #e6fcff; color: #00b8d9; }
.feature-tag.green { background: #ede9fe; color: #7337FF; }
.feature-tag.orange { background: #fff7ed; color: #ea580c; }
.feature-tag.blue { background: #eff6ff; color: #2563eb; }
.feature-tag.amber { background: #fffbeb; color: #b45309; }

/* Feature demo mockups */
.feature-demo {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}
.feature-demo-header {
    background: #f5f6f8;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #e5e7eb;
}
.feature-demo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.feature-demo-body {
    background: #fff;
    padding: 24px;
}

/* Mini chart bars for demo */
.mini-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    padding-top: 10px;
}
.mini-bar {
    flex: 1;
    border-radius: 6px 6px 0 0;
    transition: height 1s ease;
}
.feature-section.visible .mini-bar { animation: growBar 1s ease forwards; }
@keyframes growBar {
    from { height: 0; }
}

/* Hero demo inner animations */
@keyframes heroSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes heroBubbleIn {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}
.hero-demo-user-bubble {
    opacity: 0;
    animation: heroBubbleIn 0.5s ease forwards;
    animation-delay: 0.3s;
}
.hero-demo-chart {
    opacity: 0;
    animation: heroSlideUp 0.6s ease forwards;
    animation-delay: 0.8s;
}
.hero-demo-table {
    opacity: 0;
    animation: heroSlideUp 0.6s ease forwards;
    animation-delay: 1.6s;
}
.hero-demo-report {
    opacity: 0;
    animation: heroSlideUp 0.6s ease forwards;
    animation-delay: 2.4s;
}
.hero-demo-input {
    opacity: 0;
    animation: heroSlideUp 0.4s ease forwards;
    animation-delay: 3.0s;
}

/* Mini table for demo */
.mini-table {
    width: 100%;
    font-size: 13px;
    border-collapse: separate;
    border-spacing: 0;
}
.mini-table th {
    background: #f8f9fa;
    padding: 8px 12px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e9ecef;
    text-align: left;
}
.mini-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}
.mini-table tr:last-child td { border-bottom: none; }
.mini-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.mini-table .highlight { color: #059669; font-weight: 600; }

/* Mini insight cards for demo */
.mini-insight {
    padding: 14px 16px;
    border-radius: 10px;
    background: #f8f9fa;
    margin-bottom: 10px;
    border-left: 3px solid;
}
.mini-insight:last-child { margin-bottom: 0; }

/* Mini heatmap for feature demo — matches actual time-heatmap-grid style */
.mini-heatmap-grid {
    display: grid;
    grid-template-columns: 36px repeat(8, 1fr);
    font-size: 11px;
}
.mini-heatmap-grid .mhm-corner { background: #fff; }
.mini-heatmap-grid .mhm-hour {
    display: flex; align-items: center; justify-content: center;
    padding: 6px 0; color: #6b7280; font-weight: 600; font-size: 10px; background: #fff;
}
.mini-heatmap-grid .mhm-day {
    display: flex; align-items: center; justify-content: center;
    font-weight: 500; color: #374151; background: #fff; padding: 0 2px;
}
.mini-heatmap-grid .mhm-day.mhm-weekend { color: #7337FF; font-weight: 600; }
.mini-heatmap-grid .mhm-cell {
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #f3f4f6; min-height: 28px; font-variant-numeric: tabular-nums;
    color: #374151; font-size: 10px;
}
.mhm-legend {
    width: 14px; height: 14px; border-radius: 2px; display: inline-block;
}

/* Mini impact heatmap for feature demo */
.mini-impact-grid { padding: 0 12px; }
.mini-impact-table {
    width: 100%; border-collapse: collapse; font-size: 12px;
}
.mini-impact-table th {
    padding: 6px 8px; font-weight: 600; color: #6b7280; text-align: center;
    border-bottom: 1px solid #e5e7eb; font-size: 11px;
}
.mini-impact-table th:first-child { width: 36px; }
.mini-impact-table td {
    padding: 8px; text-align: center; font-weight: 600; font-size: 11px;
    font-variant-numeric: tabular-nums; border: 1px solid #f3f4f6;
}
.mini-impact-table td.dim-label {
    background: #fff; color: #374151; font-weight: 500; text-align: center;
    border: none; border-bottom: 1px solid #f3f4f6;
}

/* Mini word cloud for feature demo — absolute positioning like actual spiral layout */
.mini-cloud {
    position: relative;
    overflow: hidden;
}
.mini-cloud .mc-kw {
    position: absolute;
    white-space: nowrap;
    color: #4f46e5;
    font-weight: 500;
    cursor: default;
    transition: transform 0.15s;
}
.mini-cloud .mc-kw:hover { transform: scale(1.15); }
.mini-cloud .mc-em {
    position: absolute;
    white-space: nowrap;
    cursor: default;
    transition: transform 0.15s;
}
.mini-cloud .mc-em:hover { transform: scale(1.15); }
.mini-insight-title {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a2e;
    margin-bottom: 4px;
}
.mini-insight-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .feature-section { padding: 70px 0; }
    .feature-title { font-size: 1.6rem; }
    .feature-desc { font-size: 1rem; }
}

/* Instagram showcase cards */
.ig-showcase-scroll {
    overflow-x: auto;
    padding-bottom: 16px;
    /* Break out of container to full viewport width */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.ig-showcase-scroll::-webkit-scrollbar { display: none; }
.ig-showcase-nav-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 4px;
}
.ig-showcase-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, background 0.15s, color 0.15s;
}
.ig-showcase-nav:hover {
    background: #f0f0ff;
    color: #667eea;
}
.ig-showcase-nav.hidden {
    opacity: 0.3;
    pointer-events: none;
}
.ig-showcase-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: box-shadow 0.15s;
}
.ig-showcase-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}
.ig-showcase-card iframe {
    width: 100%;
    min-height: 400px;
    border: none;
    background: #fff;
}
.ig-showcase-card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    background: #1a1a2e;
    cursor: pointer;
    color: #fff;
    transition: background 0.15s;
}
.ig-showcase-card-info:hover {
    background: #16213e;
}
.ig-showcase-username {
    font-weight: 600;
    font-size: 0.85rem;
}
.ig-showcase-view-btn {
    font-size: 0.72rem;
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    white-space: nowrap;
    transition: background 0.15s;
}
.ig-showcase-card-info:hover .ig-showcase-view-btn {
    background: rgba(255,255,255,0.25);
}

/* Guide Chatbot styles removed - chatbot functionality moved to sidebar */

/* Board list switch in offcanvas */
.board-switch {
    display: flex;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 3px;
    margin: 10px 0 12px;
}
.board-switch-btn {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    padding: 7px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.board-switch-btn:hover {
    color: rgba(255,255,255,0.85);
}
.board-switch-btn.active {
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-weight: 600;
}

/* 보드 탭 패널 — row 사이 간격을 mt-2(8px) 보다 살짝 넓게 (가독성). */
.board-tab-panel > .d-flex.align-items-center.mt-2 {
    margin-top: 0.875rem !important;
}

/* Navigation header links */
.nav-header-link {
    color: #fff;
    opacity: 0.75;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}
.nav-header-link:hover { opacity: 1; color: #fff; }
.nav-header-link.active { opacity: 1; border-bottom: 2px solid rgba(255,255,255,0.8); padding-bottom: 2px; }
#navMobileMenu { background: rgba(0,0,0,0.2); border-radius: 8px; padding: 12px; backdrop-filter: blur(10px); }
/* Additional icon box variants */
.feature-icon-box.instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.feature-icon-box.sentiment { background: linear-gradient(135deg, #10b981, #059669); }
.feature-icon-box.competitor { background: linear-gradient(135deg, #f59e0b, #f97316); }

/* Platform Selection Buttons */
.platform-select-btn {
    width: 200px;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}
.platform-select-active {
    border-color: #6366f1;
    color: #6366f1;
    cursor: pointer;
}
.platform-select-active:hover {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}
.platform-select-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.platform-select-disabled .badge {
    font-size: 0.65rem;
    font-weight: 400;
    background: #e9ecef !important;
    color: #6c757d !important;
}
