/* CS List Pages - Minimal & Sophisticated */

/* Page Header */
.cs-list-header {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.cs-list-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.cs-list-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.cs-list-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cs-list-title {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.cs-list-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin: 0.5rem 0 0 0;
    font-size: 0.9375rem;
}

/* Tabs */
.cs-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.cs-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cs-tab:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1a202c;
}

.cs-tab.active {
    background: #1a202c;
    border-color: #1a202c;
    color: white;
}

.cs-tab-icon {
    font-size: 1.125rem;
    display: none; /* Hide icons for cleaner look */
}

/* Content Container */
.cs-list-container {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

/* Loading State */
.cs-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f1f5f9;
    border-top-color: #4A9F40;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.cs-loading p {
    margin-top: 1rem;
    color: #64748b;
    font-weight: 500;
}

/* Skeleton UI */
.cs-skeleton {
    padding: 0;
}

.cs-skeleton-item {
    height: 60px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-bottom: 1px solid #f1f5f9;
}

.cs-skeleton-item:last-child {
    border-bottom: none;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* List Items */
.cs-list-items {
    display: flex;
    flex-direction: column;
}

.cs-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
}

.cs-list-item:last-child {
    border-bottom: none;
}

.cs-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: #4A9F40;
    transition: height 0.2s ease;
}

.cs-list-item:hover {
    background: #f8fafc;
}

.cs-list-item:hover::before {
    height: 100%;
}

.cs-list-item.pinned {
    background: linear-gradient(90deg, #fef3c7 0%, #fef9e7 100%);
}

.cs-list-item.pinned::before {
    height: 100%;
    background: #f59e0b;
}

.cs-list-item-content {
    flex: 1;
    min-width: 0;
}

.cs-list-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.cs-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.cs-badge.pinned {
    background: #f59e0b;
    color: white;
}

.cs-list-item-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-list-item.pinned .cs-list-item-title {
    font-weight: 700;
}

.cs-list-item-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.cs-list-item-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Empty State */
.cs-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.cs-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.cs-empty-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.cs-empty-text {
    color: #64748b;
}

/* Pagination */
.cs-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.cs-pagination .page-link {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.cs-pagination .page-link:hover {
    background: #1a202c;
    border-color: #1a202c;
    color: white;
}

.cs-pagination .page-item.active .page-link {
    background: #1a202c;
    border-color: #1a202c;
}

/* Responsive */
@media (max-width: 768px) {
    .cs-list-header {
        padding: 1.5rem;
    }

    .cs-list-header-content {
        gap: 1rem;
    }

    .cs-list-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .cs-list-title {
        font-size: 1.5rem;
    }

    .cs-list-subtitle {
        font-size: 0.875rem;
    }

    .cs-tabs {
        gap: 0.25rem;
    }

    .cs-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .cs-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem 1.5rem;
    }

    .cs-list-item-meta {
        flex-wrap: wrap;
    }
}
