.fade-loader {
    opacity: 0;
    animation: fadeInOut 2s ease-in-out infinite;
    text-align: center;
    font-size: 1.2rem;
    color: #3aa56e;
    transition: opacity 0.3s ease;
}

#loading-container {
    width: 100%;
    grid-column: 1 / -1;
    box-sizing: border-box;
    margin: 0 auto;
}

.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #888;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2e7d32;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

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

.skeleton-wrapper {
    display: grid;
    gap: 1rem;
    padding: 1rem 0;
}

.skeleton-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
    padding: 1.5rem;
    max-width: 300px;
    min-width: 260px;
    flex-shrink: 0;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.skeleton-card {
    margin-left: auto;
    margin-right: auto;
}

.skeleton-line {
    border-radius: 4px;
    background-color: #e0e0e0;
    background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}
.skeleton-title { height: 24px; width: 60%; }
.skeleton-text { height: 16px; width: 100%; }
.skeleton-tag { height: 20px; width: 30%; margin-top: 5px; }

/* ========== Modern Empty State ========== */
.empty-state-modern {
    text-align: center;
    padding: 4rem 1rem;
    background: #fafafa;
    border-radius: 16px;
    border: 2px dashed #eee;
    margin: 2rem auto;
    max-width: 600px;
}

.empty-icon-wrapper {
    margin-bottom: 1.5rem;
}

.empty-state-modern h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.empty-state-modern p {
    color: #777;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.btn-reset {
    display: inline-block;
    padding: 12px 28px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-reset:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}