.recent-views-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 1200px) {
    .recent-views-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .recent-views-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .recent-views-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .recent-views-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.recent-view-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.recent-view-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.recent-view-card .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-view-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-view-card .no-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #6eb3ff 0%, #295eaf 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-view-card .no-image img {
    width: 80px;
    height: 80px;
    opacity: 0.9;
    filter: brightness(0) saturate(100%) invert(100%);
}

.recent-view-card .card-body {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.recent-view-card .card-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 36px;
}

.recent-view-card .card-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 8px;
    background-color: #e3f2fd;
    color: #1976d2;
}

.recent-view-card .card-date {
    font-size: 11px;
    color: #999;
    margin-top: auto;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state-icon img {
    width: 72px;
    height: 72px;
}

.empty-state-text {
    font-size: 18px;
    margin-bottom: 10px;
}

.empty-state-subtext {
    font-size: 14px;
}
