﻿.audience-label {
    padding: 0 0.4rem;
    position: absolute;
    top: 0;
    right: 0;
    height: 1.4rem;
    font-size: 0.8rem;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 5px;
    color: #FFF;
}

.audience-label-admin {
    background: #000;
}

.audience-label-internal {
    background: #14767B;
}

.audience-label-organisation {
    background: #F15A29;
}

    .padlock-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        /* backdrop-filter: blur(2px); */
    }

.padlock-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 32px;
    color: #444;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.padlock-circle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border: 4px solid #1B7C8E;
    border-radius: 50%;
    color: #1B7C8E;
}

    .padlock-circle svg {
        font-size: 32px;
    }

    /* Size variants */
    .padlock-circle.small {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }

        .padlock-circle.small svg {
            font-size: 20px;
        }

    .padlock-circle.large {
        width: 120px;
        height: 120px;
        border-width: 4px;
    }

        .padlock-circle.large svg {
            font-size: 48px;
        }

    /* Color variants */
    .padlock-circle.orange {
        border-color: #FF5722;
        color: #FF5722;
    }

    .padlock-circle.dark {
        border-color: #000000;
        color: #000000;
    }

    .padlock-circle.grey {
        border-color: #666666;
        color: #666666;
    }

    /* Filled variant */
    .padlock-circle.filled {
        background-color: #1B7C8E;
        color: #ffffff;
    }

        .padlock-circle.filled.orange {
            background-color: #FF5722;
        }

        .padlock-circle.filled.dark {
            background-color: #000000;
        }

.report-card.background-indevelopment {
    background-color: #e6e6e6;
}
.report-card.background-draft {
    background-color: #fff4f1;
}
.card.loading {
    pointer-events: none;
}

    .card.loading::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1B7C8E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Active filters container */
#active-filters {
    display: none;
    padding: 0;
    /*background-color: #F5F5F5;*/
    border-radius: 8px;
    /*margin-bottom: 24px;*/
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.active-filters-label {
    font-weight: 600;
    color: #333;
    margin-right: 8px;
}

.active-filter-tag {
    margin-right: 0!important;
    margin-left: 10px!important;
}
/* Active filter tag with close button */
.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-right: 8px;
}

.clear-filter-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

    .clear-filter-btn:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }

/* Clear all button */
.clear-all-btn {
    padding: 6px 14px;
    background-color: #1B7C8E;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .clear-all-btn:hover {
        background-color: #156271;
    }

/* Active state for tags */
.tag.active {
    background-color: #1B7C8E;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(27, 124, 142, 0.3);
}
/* View Controls Row */
.view-controls-row {
    display: flex;
    justify-content: end;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

/* View Toggle Buttons */
.view-toggle {
    display: flex;
    gap: 4px;
    background-color: #F5F5F5;
    padding: 4px;
    border-radius: 6px;
}

.view-toggle-btn {
    padding: 8px 16px;
    background-color: transparent;
    border: none;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

    .view-toggle-btn:hover {
        background-color: #E0E0E0;
        color: #333;
    }

    .view-toggle-btn.active {
        background-color: #1B7C8E;
        color: #ffffff;
    }


.report-container[data-current-view="list"] .report-grid-view {
    display:none;
}
.report-container[data-current-view="grid"] .report-grid-view {
    display: grid;
}
.report-container[data-current-view="grid"] .report-list-view {
    display: none;
}
.report-container[data-current-view="list"] .report-list-view {
    display: block!important;
}
/* Active Filters */
#active-filters {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

/* Grid View - maintain existing styles */
.report-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Table List View */
.report-list-view {
    width: 100%;
    overflow-x: auto;
}

.responsive-table {
    width: 100%;
}

.responsive-table-inner {
    overflow-x: auto;
}

.report-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background-color: white;
}

    .report-list-table thead th {
        text-align: left;
        font-size: 12px;
        color: #666;
        padding: 12px 16px;
        border-bottom: 2px solid #E0E0E0;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

        .report-list-table thead th:last-child {
            text-align: right;
        }

    .report-list-table tbody tr {
        border-bottom: 1px solid #E0E0E0;
        transition: background-color 0.2s ease;
        cursor: pointer;
    }

        .report-list-table tbody tr:hover {
            background-color: #F5F9FA;
        }

    .report-list-table tbody td {
        padding: 16px;
        vertical-align: top;
    }

/* Image Cell */
.report-list-image-cell {
    width: 140px;
    position: relative;
}

.report-list-thumbnail {
    width: 120px;
    height: auto;
    display: block;
    border-radius: 4px;
}

.list-padlock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: transparent;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B7C8E;
    font-size: 18px;
}

/* Description Cell */
.report-list-description-cell {
    min-width: 300px;
}

.report-list-content {
    display: flex;
    align-items: center;
    height: 100%;
}

.report-list-title {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: #1B7C8E;
    text-decoration: none;
    margin-bottom: 8px;
    transition: text-decoration 0.2s ease;
}

    .report-list-title:hover {
        text-decoration: underline;
    }

.report-list-description {
    display: block;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Category Cell */
.report-list-category-cell {
    width: 150px;
}

.category-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    background-color: #F5F5F5;
    color: #333;
}

/* Tags Cell */
.report-list-tags-cell {
    width: 200px;
    text-align: right;
    padding-right: 0 !important;
}

.report-list-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.report-tag-list {
    font-size: 11px;
    padding: 6px 12px;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .report-list-tags-cell {
        width: 180px;
    }
}

@media (max-width: 992px) {
    .report-list-description-cell {
        min-width: 250px;
    }

    .report-list-category-cell {
        width: 120px;
    }

    .report-list-tags-cell {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .view-controls-row {
        justify-content: end;
        /*flex-direction: column-reverse;*/
        align-items: stretch;
    }

    .view-toggle {
        justify-content: center;
    }

    .report-list-table {
        font-size: 14px;
    }

    .report-list-image-cell {
        width: 100px;
    }

    .report-list-thumbnail {
        width: 80px;
    }

    .report-list-description-cell {
        min-width: 200px;
    }

    .report-list-title {
        font-size: 14px;
    }

    .report-list-description {
        font-size: 12px;
    }
}

.html-content {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.html-truncate-wrapper {
    margin-bottom: 1rem;
}

    .html-truncate-wrapper .btn-link {
        font-size: 0.875rem;
        color: #0d6efd;
        margin-top: 0.25rem;
    }

        .html-truncate-wrapper .btn-link:hover {
            color: #0a58ca;
            text-decoration: underline !important;
        }

        .html-truncate-wrapper .btn-link i {
            font-size: 0.75rem;
        }