/* --- News Engine Custom Styles --- */
.engine-main {
    padding: 2rem 2rem 5rem;
}

.engine-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
}

#news-topic {
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    font-family: 'Times New Roman', serif;
    font-weight: 600;
    background: #fcfcfc;
}

.bulk-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: #f0f7ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    animation: slideInTop 0.3s ease;
}

#selected-count {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid #fee2e2;
    color: #ef4444;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-danger-outline:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

/* --- Draft List --- */
.draft-list {
    display: grid;
    gap: 1rem;
}

.draft-item {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.draft-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.draft-check {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.draft-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    background: #f1f5f9;
}

.draft-info {
    flex: 1;
}

.draft-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.draft-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.draft-meta {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-top: 8px;
    display: flex;
    gap: 10px;
}

.draft-actions {
    display: flex;
    gap: 8px;
}

/* --- Loader Animation --- */
.loader-container {
    padding: 5rem;
    text-align: center;
    color: var(--primary-color);
}

.dna-loader {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding-top: 3rem;
}

#page-info {
    font-weight: 700;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 8rem 2rem;
    border: 2px dashed var(--border-soft);
    border-radius: 30px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.status-badge {
    font-size: 0.7rem;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .engine-controls {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .bulk-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .draft-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .draft-img {
        width: 100%;
        height: 140px;
    }
}

@keyframes slideInTop {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}