/* Custom scrollbar to match app feel */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1f2937;
}
::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

.rust-font {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Lightbox */
.lightbox-img {
    cursor: zoom-in;
    transition: opacity 0.15s ease;
}
.lightbox-img:hover {
    opacity: 0.88;
}

#lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.2s ease;
}
#lightbox-overlay.open {
    display: flex;
    opacity: 1;
}
#lightbox-overlay img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
    cursor: default;
    transform: scale(0.96);
    transition: transform 0.2s ease;
}
#lightbox-overlay.open img {
    transform: scale(1);
}
#lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    color: rgba(255,255,255,0.6);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    transition: color 0.15s;
}
#lightbox-close:hover {
    color: #fff;
}
