:root {
  --primary-color: #d20a11;
}
#apa-gallery-filter-form .form-control{
    min-height: 50px;
    min-width: auto;
}
#apa-gallery-filter-form .btn-primary{
    min-width: auto;
    padding:12px 24px;
    text-decoration: none;
}
.btn-outline-secondary.btn-copy-link{
    padding:13px 25px;
}
.btn.btn-primary.disabled{
    background-color:var(--primary-color);
}
.pix-gallery-container .btn.btn-outline-primary{
    background-color:transparent;
    --bs-btn-color: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--primary-color);
    --bs-btn-hover-border-color: var(--primary-color);
    --bs-btn-focus-shadow-rgb: 81, 69, 83;
    --bs-btn-active-color: var(--primary-color);
    --bs-btn-active-bg: var(--primary-color);
    --bs-btn-active-border-color: var(--primary-color);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--primary-color);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--primary-color);
    --bs-gradient: none;
    padding: 13px 25px;
}
.pix-gallery-container .btn.btn-outline-primary:hover{
    background-color:var(--primary-color);
}
.asset-navigation .btn.btn-outline-primary{
    padding:5px 10px;
}
.pix-gallery-container .form-check-input:checked{
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.apa-gallery-view.list-view .view-detail {
    display: inline-block;
    margin-top: 0.5rem;
}
.apa-gallery-item-image{
    cursor: pointer;
}
.apa-gallery-view{
    column-count: 6;
    column-gap: 10px;
}
.apa-gallery-item{
    margin: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    margin-bottom: 10px;
    break-inside: avoid;
    position:relative;
}

/* Terms Acceptance Checkbox Styles */
.asset-terms-confirmation {

}

.asset-terms-confirmation .form-check {
    margin-bottom: 0;
}

.asset-terms-confirmation .form-check-input {
    transform: scale(1.1);
    margin-top: 0.125rem;
}

.asset-terms-confirmation .form-check-label {
    line-height: 1.4;
    font-size: 0.99rem;
}

.frame .asset-terms-confirmation .form-check-label a {
    text-decoration: none;
    color:#d20a11;
    --frame-link-color:#d20a11;
}

.frame .asset-terms-confirmation .form-check-label a:hover {
    text-decoration: underline;
     color:#d20a11;
    --frame-link-hover-color:#d20a11;
}

/* Asset Actions */
.asset-actions {
    transition: opacity 0.3s ease-in-out;
}

.asset-actions.show {
    display: block !important;
}

/* Image Overlay Styles */
.apa-gallery-overlay {
    background: rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease-in-out;
}
.apa-gallery-title {
    font-size: 0.875rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    margin: 0;
}

/* Collections in Grid Layout */
.collection-item-grid {
    cursor: pointer;
}

.collection-placeholder-grid {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 160px;
}

.collection-placeholder-grid .folder-icon {
    color: #6c757d;
    opacity: 0.7;
}

.collection-meta-grid {
    margin-top: 4px;
}

.collection-meta-grid .item-count {
    background: rgba(255, 255, 255, 0.9);
    color: #1976d2;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.7rem;
}

/* Update existing collection styles for card layout (keep for compatibility) */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
    margin-bottom: 2rem;
}

.collection-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
}

.collection-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.collection-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
}

.collection-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 160px;
}

.collection-item:hover .collection-thumbnail {
    transform: scale(1.05);
}

.collection-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.folder-icon {
    color: #6c757d;
    opacity: 0.7;
}
.folder-icon-onimage{
    position: absolute;
    z-index: 9;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.collection-icon {
    color: #6c757d;
    opacity: 0.7;
}

.collection-info {
    padding: 15px;
}

.collection-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #2c3e50;
    line-height: 1.3;
}

.collection-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6c757d;
}

.item-count {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.75rem;
}

.event-date {
    font-size: 0.8rem;
}

/* Breadcrumb Styles */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    font-weight: bold;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Section Headers */
.collections-section h3,
.assets-section h3 {
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
    margin-bottom: 20px;
}
.pagination  .page-item .page-link{
    border-radius:0 !important;
}
/* No Content Message */
.no-content {
    color: #6c757d;
}

.no-content h4 {
    color: #495057;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (min-width: 980px) {
    #apa-gallery-filter-form #search-input{
        margin-right:-18px;
    }
}
@media (max-width: 980px) {
    .apa-gallery-view{
        column-count: 4;
    }
}
@media (max-width: 768px) {
    .apa-gallery-view{
        column-count: 2;
    }
    
    .collections-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 10px;
    }
    
    .collection-image {
        height: 150px;
    }
    
    .collection-info {
        padding: 12px;
    }
    
    .collection-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .asset-terms-confirmation .form-check-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .collections-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .collection-image {
        height: 120px;
    }
    
    .apa-gallery-view {
        column-count: 1;
    }
}

/* Loading states */
.collection-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.collection-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}