/* Open Iconic removed — now using Lucide icons via CDN */

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--color-brand-secondary, #0071c1);
}

.btn-primary {
    color: #fff;
    background-color: var(--color-brand-secondary, #1b6ec2);
    border-color: var(--color-brand-secondary-dark-20, #1861ac);
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* For add, edit, delete icons ------ */
.nounderline {
    text-decoration: none !important
}

/* Sticky footer styles------ */
html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px; /* Margin bottom by footer height */
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px; /* Set the fixed height of the footer here */
    line-height: 60px; /* Vertically center the text there */
    background-color: #f5f5f5;
}

a {
    cursor: pointer
}

.app-container {
    min-height: 320px;
    overflow: hidden;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.checkbox-button {
    padding: 5px 10px;
    border: none;
    color: white;
    font-size: 12px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: inline-block; /* Ensures the button is inline with the text */
    vertical-align: middle; /* Vertically aligns the button and text */
}

.btn-green {
    background-color: green;
}

.btn-red {
    background-color: red;
}

.btn-disabled {
    cursor: not-allowed;
    opacity: 0.6; /* Reduce opacity to visually indicate the button is disabled */
}

.checkbox-button span {
    font-weight: bold;
}

.button-container {
    display: inline-flex;
    align-items: center; /* Vertically center the button and the text */
}

.button-text {
    margin-left: 10px; /* Adds space between the button and the text */
    font-weight: normal; /* Keeps the text style normal unless you want bold */
}

/* ========================================
   Channel Pack Dashboard Card Styles

   Add this to the END of:
   Jargan.Client/wwwroot/css/app.css
   ======================================== */

/* ===================
   FOUC Prevention - Fade in content after styles load
   =================== */
@keyframes fadeInContent {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===================
   Card Grid Layout
   =================== */
.channel-pack-grid {
    margin-top: 1rem;
    animation: fadeInContent 0.2s ease-out forwards;
}

/* ===================
   Main Card Container
   =================== */
.channel-pack-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.channel-pack-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.channel-pack-card.selected,
.voice-pack-card.selected {
    border-color: var(--color-brand-secondary, #3b82f6);
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.channel-pack-card.selected:hover,
.voice-pack-card.selected:hover {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Pack Customization Section (for engagement pages) */
.pack-customization {
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
}

.pack-customization .intensity-section {
    border-bottom: 1px solid #e5e7eb;
}

/* ===================
   Header Section
   =================== */
.card-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.header-left {
    flex: 1;
}

.pack-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.type-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
}

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

.header-actions .btn {
    padding: 0.375rem 0.5rem;
}

/* ===================
   KPI Strip
   =================== */
.kpi-strip {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
}

.kpi-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem;
}

.kpi-icon {
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.kpi-label {
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.125rem;
}

/* ===================
   Card Body - Two Column Layout
   =================== */
.card-body-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
}

@media (max-width: 576px) {
    .card-body-section {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.chart-column {
    min-width: 0;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

/* ===================
   Platform Bar Charts
   =================== */
.bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.bar-label {
    font-size: 0.8rem;
    color: #374151;
    width: 80px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bar-container {
    flex: 1;
    height: 12px;
    background: #f3f4f6;
    border-radius: 6px;
    overflow: hidden;
}

.bar {
    height: 100%;
    border-radius: 6px;
    min-width: 4px;
    transition: width 0.3s ease;
}

.bar-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    width: 24px;
    text-align: right;
    flex-shrink: 0;
}

/* Platform Bar Colors */
.platform-bar.platform-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.platform-bar.platform-facebook {
    background: #1877f2;
}

.platform-bar.platform-linkedin {
    background: #0a66c2;
}

.platform-bar.platform-youtube {
    background: #ff0000;
}

.platform-bar.platform-tiktok {
    background: #000000;
}

.platform-bar.platform-twitter {
    background: #1da1f2;
}

.platform-bar.platform-email {
    background: #6b7280;
}

.platform-bar.platform-blog {
    background: #14b8a6;
}

.platform-bar.platform-default {
    background: #9ca3af;
}

/* ===================
   Platform List Scroll Container
   =================== */
.platform-list-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.platform-list-scrollable {
    max-height: 120px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.platform-list-scrollable::-webkit-scrollbar {
    width: 6px;
}

.platform-list-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.platform-list-scrollable::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.platform-list-scrollable::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===================
   Funnel Visualization
   =================== */
.funnel-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.funnel-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 140px;
    padding: 2px 0;
}

.funnel-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 32px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    cursor: default;
}

.funnel-shape {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    max-width: 180px;
}

.funnel-level {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    border-radius: 4px;
    transition: opacity 0.3s ease;
    background: #6366f1; /* Single indigo color - opacity varies by dominance */
}

/* ===================
   Footer Section
   =================== */
.card-footer-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: #fafafa;
    border-top: 1px solid #f3f4f6;
}

.card-footer-section .description {
    font-size: 0.8rem;
    color: #6b7280;
    font-style: italic;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 1rem;
}

.card-footer-section .created-date {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
}

/* ===================
   Empty Pack State
   =================== */
.empty-pack .empty-pack-body {
    padding: 2rem 1.25rem;
    text-align: center;
}

/* ===================
   Responsive Adjustments
   =================== */
@media (max-width: 991.98px) {
    .kpi-strip {
        flex-wrap: wrap;
    }

    .kpi-item {
        width: 33.33%;
        margin-bottom: 0.5rem;
    }

    .bar-label {
        width: 70px;
        font-size: 0.75rem;
    }

    .funnel-shape {
        max-width: 150px;
    }
}

@media (max-width: 767.98px) {
    .card-header-section {
        flex-direction: column;
        gap: 1rem;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .kpi-value {
        font-size: 1.25rem;
    }

    .funnel-container {
        justify-content: center;
    }
}

/* ===================
   Animation
   =================== */
@keyframes barGrow {
    from {
        width: 0;
    }
}

.bar {
    animation: barGrow 0.5s ease-out;
}

/* ========================================
   Voice Pack Dashboard Card Styles
   ======================================== */

/* ===================
   Voice Pack Grid Layout
   =================== */
.voice-pack-grid {
    margin-top: 1rem;
    animation: fadeInContent 0.2s ease-out forwards;
}

/* ===================
   Voice Pack Card Container
   =================== */
.voice-pack-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.voice-pack-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Voice Badge - Purple theme to differentiate from Channel Packs */
.type-badge.voice-badge {
    background: #f3e8ff;
    color: #7c3aed;
}

/* Voice Funnel - Purple theme */
.voice-funnel .funnel-level {
    background: #8b5cf6;
}

/* ===================
   Position Bar Colors
   =================== */
.position-bar.position-founder {
    background: linear-gradient(45deg, #7c3aed, #a855f7);
}

.position-bar.position-ceo {
    background: #6366f1;
}

.position-bar.position-cmo {
    background: #ec4899;
}

.position-bar.position-cto {
    background: #06b6d4;
}

.position-bar.position-manager {
    background: #10b981;
}

.position-bar.position-director {
    background: #f59e0b;
}

.position-bar.position-specialist {
    background: #3b82f6;
}

.position-bar.position-analyst {
    background: #8b5cf6;
}

.position-bar.position-default {
    background: #9ca3af;
}

/* ===================
   Voice List in Cards
   =================== */
.voice-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.voice-list-scrollable {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.voice-list-scrollable::-webkit-scrollbar {
    width: 6px;
}

.voice-list-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.voice-list-scrollable::-webkit-scrollbar-thumb {
    background: #c4b5fd;
    border-radius: 3px;
}

.voice-list-scrollable::-webkit-scrollbar-thumb:hover {
    background: #a78bfa;
}

.voice-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
    background: #faf5ff;
    border-radius: 6px;
    border: 1px solid #e9d5ff;
}

.voice-name {
    font-weight: 500;
    color: #581c87;
    font-size: 0.85rem;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 0.5rem;
}

.voice-position {
    font-size: 0.75rem;
    color: #7c3aed;
    background: #ede9fe;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}

/* ===================
   Pack Scroll Containers
   =================== */
.pack-scroll-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0.25rem 1rem 0.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.pack-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.pack-scroll-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.pack-scroll-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.pack-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.pack-scroll-item {
    flex: 0 0 auto;
    width: 680px;
    min-width: 680px;
    max-width: 680px;
    scroll-snap-align: start;
}

/* Applied Pack Scroll Container - slightly different styling */
.applied-pack-scroll-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0.25rem 1rem 0.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.applied-pack-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.applied-pack-scroll-container::-webkit-scrollbar-track {
    background: #dcfce7;
    border-radius: 4px;
}

.applied-pack-scroll-container::-webkit-scrollbar-thumb {
    background: #86efac;
    border-radius: 4px;
}

.applied-pack-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #4ade80;
}

.applied-pack-scroll-item {
    flex: 0 0 auto;
    width: 550px;
    min-width: 500px;
    max-width: 700px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.applied-pack-scroll-item:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ===================
   Pack Navigation Buttons
   =================== */
.pack-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pack-nav-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-brand-secondary, #3b82f6);
    border: none;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.pack-nav-btn:hover {
    background: var(--color-brand-secondary-dark-10, #2563eb);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
    transform: scale(1.05);
}

.pack-nav-btn:active {
    transform: scale(0.95);
}

.pack-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.pack-nav-btn svg {
    width: 16px;
    height: 16px;
}

/* ===================
   Pack Customization Table Styling
   =================== */
.pack-customization .table {
    font-size: 0.8rem;
    table-layout: fixed;
    width: 100%;
}

.pack-customization .table th,
.pack-customization .table td {
    padding: 0.3rem 0.4rem;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pack-customization .table .form-control-sm,
.pack-customization .table .form-select-sm {
    font-size: 0.75rem;
    padding: 0.15rem 0.3rem;
}

/* Column widths - total should fit within ~650px */
.pack-customization .table th:nth-child(1),
.pack-customization .table td:nth-child(1) {
    width: 110px;
}

.pack-customization .table th:nth-child(2),
.pack-customization .table td:nth-child(2) {
    width: 100px;
}

.pack-customization .table th:nth-child(3),
.pack-customization .table td:nth-child(3) {
    width: 100px;
}

.pack-customization .table th:nth-child(4),
.pack-customization .table td:nth-child(4) {
    width: 55px;
}

.pack-customization .table th:nth-child(5),
.pack-customization .table td:nth-child(5) {
    width: 85px;
}

.pack-customization .table th:last-child,
.pack-customization .table td:last-child {
    width: 36px;
    text-align: center;
    padding: 0.2rem !important;
}

/* ========================================
   Position Visualization Styles
   ======================================== */

/* ===================
   Visualization Container
   =================== */
.position-visualization {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #FFFFFF;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin: 1rem 0;
}

.position-visualization .vis-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
    text-align: center;
}

.position-visualization .vis-subtitle {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.position-visualization svg {
    max-width: 100%;
    height: auto;
}

/* ===================
   Node Hover Effects
   =================== */
.position-visualization svg g[class*="-node"]:hover circle,
.position-visualization svg g[class*="-node"]:hover rect {
    stroke: var(--color-visualization-highlight, #3B82F6);
    stroke-width: 3;
    cursor: pointer;
}

.position-visualization svg g[class*="-text"]:hover text:first-child {
    fill: var(--color-visualization-highlight, #3B82F6);
    cursor: pointer;
}

/* ===================
   Responsive Scaling
   =================== */
@media (max-width: 768px) {
    .position-visualization {
        padding: 15px 10px;
    }

    .position-visualization .vis-title {
        font-size: 20px;
    }

    .position-visualization .vis-subtitle {
        font-size: 10px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .position-visualization {
        padding: 10px 5px;
    }

    .position-visualization .vis-title {
        font-size: 18px;
    }
}

/* ===================
   Visualization Popovers
   =================== */
.visualization-container {
    position: relative;
}

.visualization-container svg.dimmed {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.visualization-container .clickable-node {
    cursor: pointer;
}

.visualization-container .clickable-node:hover rect,
.visualization-container .clickable-node:hover circle {
    stroke: var(--color-visualization-highlight, #3B82F6);
    stroke-width: 3;
}

.attribute-popover .popover-content {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    min-width: 220px;
    max-width: 300px;
}

.attribute-popover .popover-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px 12px;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.attribute-popover .popover-header strong {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.attribute-popover .popover-body {
    padding: 12px;
    max-height: 250px;
    overflow-y: auto;
}

.attribute-popover .btn-close-sm {
    width: 0.75rem;
    height: 0.75rem;
    padding: 0.25rem;
    flex-shrink: 0;
}

.attribute-popover .children-label {
    font-size: 10px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
    margin-bottom: 8px;
}

.popover-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
}
