/* Slideshow View Styles */

.slideshow-viewer {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.slide-container {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.thumb-item {
    transition: all var(--transition-base);
}

.thumb-item:hover {
    transform: translateY(-4px);
}

.thumb-item.active img {
    border-color: var(--primary-color) !important;
    border-width: 3px !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.prev-slide, .next-slide {
    transition: all var(--transition-base);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.5) !important;
    color: #fff;
}

.prev-slide:hover, .next-slide:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    transform: scale(1.1);
}

.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-title {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1.125rem;
}

.thumbnail-strip {
    background: var(--gray-50) !important;
}

.thumbnail-strip::-webkit-scrollbar {
    height: 8px;
}

.thumbnail-strip::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: var(--radius-md);
}

.thumbnail-strip::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-md);
}

.thumbnail-strip::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

.badge {
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

/* Tag badges */
.tag-badge {
    font-size: 0.875rem;
    transition: all var(--transition-base);
}

.tag-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background-color: var(--primary-dark) !important;
}

/* Related slideshows */
.related-item {
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.related-item:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-200);
    transform: translateX(5px);
}

.related-thumb img {
    transition: all var(--transition-base);
}

.related-item:hover .related-thumb img {
    transform: scale(1.05);
}

/* Stat boxes */
.stat-box {
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.stat-item .progress {
    border-radius: var(--radius-full);
}

/* Description toggle */
.description-content {
    line-height: 1.6;
}

#toggleDescription {
    font-weight: 600;
    transition: all var(--transition-base);
}

#toggleDescription:hover {
    text-decoration: none;
    transform: translateX(5px);
}

/* Metadata inline layout */
.metadata-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.metadata-item {
    white-space: nowrap;
}

/* Fullscreen improvements */
.slideshow-viewer:fullscreen {
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

.slideshow-viewer:fullscreen .slide-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.slideshow-viewer:fullscreen .slide img {
    max-height: 100vh;
    max-width: 100vw;
    object-fit: contain;
}

.slideshow-viewer:fullscreen .thumbnail-strip {
    display: none;
}

/* Quick Actions styling */
.card-body .row.g-2 .btn-sm {
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-width: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-body .row.g-2 .btn-sm::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.card-body .row.g-2 .btn-sm:hover::before {
    width: 300px;
    height: 300px;
}

.card-body .row.g-2 .btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-body .row.g-2 .btn-outline-primary:hover,
.card-body .row.g-2 .btn-primary:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-color: #0d6efd;
    color: white;
}

.card-body .row.g-2 .btn-outline-info:hover,
.card-body .row.g-2 .btn-info:hover {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
    border-color: #0dcaf0;
    color: white;
}

.card-body .row.g-2 .btn-outline-warning:hover,
.card-body .row.g-2 .btn-warning:hover {
    background: linear-gradient(135deg, #ffc107 0%, #d39e00 100%);
    border-color: #ffc107;
    color: white;
}

.card-body .row.g-2 .btn-outline-secondary:hover,
.card-body .row.g-2 .btn-secondary:hover {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    border-color: #6c757d;
    color: white;
}

.card-body .row.g-2 .btn-outline-danger:hover,
.card-body .row.g-2 .btn-danger:hover {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    border-color: #dc3545;
    color: white;
}

.card-body .row.g-2 .btn-sm i {
    font-size: 1rem;
    margin-right: 0.25rem;
    vertical-align: middle;
}

/* Statistics professional styling */
.card-body ul.list-unstyled li {
    padding: 0.5rem 0.25rem;
    transition: all 0.3s ease;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}

.card-body ul.list-unstyled li:hover {
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.05) 0%, rgba(13, 110, 253, 0.02) 100%);
    transform: translateX(3px);
}

.card-body ul.list-unstyled li:last-child {
    border-bottom: none !important;
    margin-bottom: 0;
}

.card-body ul.list-unstyled li .text-muted {
    font-weight: 500;
    font-size: 0.8125rem;
}

.card-body ul.list-unstyled li .text-muted i {
    font-size: 0.875rem;
    margin-right: 0.375rem;
    vertical-align: middle;
    opacity: 0.8;
}

.card-body ul.list-unstyled li strong {
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    background: rgba(0, 0, 0, 0.03);
}

.card-body ul.list-unstyled li strong.text-primary {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.card-body ul.list-unstyled li strong.text-success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.card-body ul.list-unstyled li strong.text-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Card title enhancement */
.card .card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card .card-title i {
    font-size: 1.25rem;
    color: var(--primary-color, #0d6efd);
}

/* Breadcrumb styling */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '\203a';
    font-size: 1.25rem;
    color: rgba(0, 0, 0, 0.3);
    padding: 0 0.5rem;
}

.breadcrumb-item a {
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #0d6efd;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 600;
}

/* Print styles */
@media print {
    body * {
        visibility: hidden;
    }
    
    .slideshow-viewer,
    .slideshow-viewer * {
        visibility: visible;
    }
    
    .slideshow-viewer {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
        border: none;
    }
    
    .slide-container {
        background: white !important;
    }
    
    .prev-slide,
    .next-slide,
    .thumbnail-strip,
    .p-3.bg-light.border-top {
        display: none !important;
    }
    
    .slide img {
        max-height: 100vh;
        page-break-after: always;
    }
}

.related-slideshows .d-flex {
    overflow: hidden;
}