/* General Styles (Not theme-specific) */
/* This file should contain general layout and component styling that applies regardless of the active theme. */

/* Footer Styles */
.footer {
    padding: 20px 0;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Sidebar General Styles */
.list-group-item-action {
    transition: all 0.3s ease;
}

/* Card General Styles */
.card {
    transition: all 0.3s ease;
}

/* Navbar General Styles */
.navbar {
    transition: all 0.3s ease;
}

/* Lightbox Styles */
#lightboxModal .modal-content {
    background-color: transparent;
    border: none;
    height: 100vh;
}

#lightboxModal .modal-body {
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

.lightbox-main-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    width: 100%;
    cursor: zoom-out;
    overflow: hidden;
}

/* Zoomed State */
.lightbox-main-container.is-zoomed {
    cursor: crosshair;
}

.lightbox-main-container.is-zoomed #lightboxImage {
    max-height: 85vh;
    /* Keep within viewport bounds for calculation */
    max-width: 90vw;
    transform: scale(2.5);
    /* Higher zoom for better detail */
    box-shadow: 0 0 100px rgba(0, 0, 0, 1);
    transition: transform 0.1s ease-out;
    /* Slight lag for smooth feel */
}

#lightboxImage {
    max-height: 85vh;
    max-width: 90vw;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    background-color: #000;
    cursor: zoom-in;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

/* Floating Caption */
.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    pointer-events: none;
    width: auto;
    min-width: 200px;
}

#lightboxTitle {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    margin: 0;
    font-size: 1.25rem;
}

/* Elegant Floating Navigation Buttons */
.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: none;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 2rem;
    outline: none !important;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

/* Action Buttons (Close, Zoom) */
.lightbox-action-btn {
    position: fixed;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3001;
    transition: all 0.3s;
}

.lightbox-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-zoom {
    top: 20px;
    right: 80px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-zoom {
        right: 70px;
    }
}

/* Floating Thumbnail Strip */
.lightbox-thumb-strip {
    display: flex;
    gap: 15px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 40px;
    margin-bottom: 30px;
    max-width: 90vw;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 20;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.lightbox-thumb-strip::-webkit-scrollbar {
    display: none;
}

.lightbox-thumb {
    height: 40px;
    width: 55px;
    object-fit: cover;
    cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.5;
    flex-shrink: 0;
}

.lightbox-thumb:hover {
    opacity: 0.8;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.5);
}

.lightbox-thumb.active {
    border-color: #fff;
    opacity: 1;
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

#lightboxModal .modal-dialog {
    max-width: 100vw;
    margin: 0;
    height: 100vh;
}