/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 212, 191, 0.3);
}

/* Glass panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Nav tabs */
.nav-btn {
    color: #94a3b8;
    transition: all 0.3s ease;
}
.nav-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}
.nav-btn.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Tab panes */
.tab-pane {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.tab-pane.active {
    display: flex;
}

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

/* Date Items */
.date-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.date-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}
.date-item.active {
    background: rgba(45, 212, 191, 0.1);
    border-color: rgba(45, 212, 191, 0.3);
    color: #2dd4bf;
    font-weight: 600;
}

/* Report Card */
.report-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}
.report-card:hover {
    border-color: rgba(45, 212, 191, 0.2);
    background: rgba(255, 255, 255, 0.02);
}

/* Markdown rendering styling */
.markdown-body {
    line-height: 1.7;
    color: #cbd5e1;
    font-size: 1.05rem;
}
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
    color: white;
    font-family: 'Cinzel Decorative', cursive;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.markdown-body h1 {
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}
.markdown-body h2 {
    font-size: 1.3rem;
}
.markdown-body h3 {
    font-size: 1.15rem;
}
.markdown-body p {
    margin-bottom: 0.9rem;
}
.markdown-body ul, .markdown-body ol {
    margin-left: 1.5rem;
    margin-bottom: 0.9rem;
}
.markdown-body li {
    margin-bottom: 0.3rem;
}
.markdown-body blockquote {
    border-left: 3px solid #2dd4bf;
    padding-left: 1.25rem;
    margin: 1.25rem 0;
    color: #94a3b8;
    font-style: italic;
    background: rgba(45, 212, 191, 0.02);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-radius: 0 10px 10px 0;
}
.markdown-body strong {
    color: #f472b6; /* pink highlight to fit Kiki theme */
}
.markdown-body a {
    color: #2dd4bf;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}
.markdown-body a:hover {
    color: #fbbf24;
}

/* Topic Card */
.topic-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}
.topic-card:hover {
    transform: translateY(-4px);
    border-color: rgba(192, 132, 252, 0.3); /* purple highlight */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Modal overlays and cards */
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-overlay.active .modal-card {
    transform: scale(1);
}

/* Toast Messages */
.toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast.success {
    border-left-color: #2dd4bf;
}
.toast.danger {
    border-left-color: #ef4444;
}
.toast.info {
    border-left-color: #c084fc;
}
