/* CMS Split Layout Styles */

/* Layout Container */
.dashboard-split-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 80px; /* Space between multiple sections */
    position: relative;
}

/* Left Side: Text/Annotations */
.layout-text-side {
    flex: 1;
    min-width: 0;
}

/* Right Side: Sticky Image */
.layout-image-side {
    flex: 1.2;
    position: -webkit-sticky;
    position: sticky;
    top: 30px; /* Stick to top when scrolling */
    background: #ffffff;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.dashboard-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}

.dashboard-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.dashboard-img:hover {
    transform: scale(1.02);
}

.img-caption {
    text-align: center;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Annotation Cards (The numbered list) */
.annotation-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    gap: 20px;
    transition: all 0.2s ease;
}

.annotation-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Red Number Badge */
.marker-badge {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: #ef4444; /* Matches red markers in screenshots */
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.25);
}

/* Content Typography */
.item-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.item-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Feature Grid for specific items inside cards */
.mini-feature-list {
    margin-top: 12px;
    padding-left: 0;
    list-style: none;
}
.mini-feature-list li {
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text-muted);
}
.mini-feature-list li i {
    color: var(--accent);
    width: 20px;
}

/* Lightbox Utility */
.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 1050;
    display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.lightbox-overlay.active { display: flex; opacity: 1; }
.lightbox-content { max-width: 90vw; max-height: 90vh; border-radius: 4px; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
.lightbox-close {
    position: absolute; top: 20px; right: 30px;
    color: #fff; font-size: 40px; cursor: pointer;
    z-index: 1060;
}

/* Responsive */
@media (max-width: 991px) {
    .dashboard-split-layout {
        flex-direction: column-reverse; /* Image on top on mobile */
        gap: 20px;
    }
    .layout-image-side {
        position: relative;
        top: 0;
        width: 100%;
    }
}