/**
 * Screenshot UI Styles
 */

/* Screenshot section styling */
#screenshot-section {
    margin-bottom: 1rem;
}

#screenshot-display {
    min-height: 150px;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
}

#screenshot-thumb {
    transition: transform 0.2s ease;
}

#screenshot-thumb:hover {
    transform: scale(1.02);
}

#screenshot-timestamp {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Lightbox overlay */
.screenshot-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

/* History grid */
.screenshot-history-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
}

.screenshot-history-item {
    flex: 0 0 auto;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s;
}

.screenshot-history-item:hover {
    transform: translateY(-2px);
}

.screenshot-history-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

.screenshot-history-item:hover img {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.screenshot-history-label {
    font-size: 11px;
    color: #6c757d;
    margin-top: 4px;
    white-space: nowrap;
}

/* Loading spinner in display area */
#screenshot-display .spinner-border {
    width: 2rem;
    height: 2rem;
}
