/* Blacklist Manager Styles */

/* Section divider between device and blacklist sections */
.section-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gray-300), transparent);
    margin: 60px 0 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray-600);
}

/* Platform breakdown in stats card */
.platform-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.platform-stat {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Search and filter inputs */
.search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-select {
    padding: 10px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Blacklist items grid */
.blacklist-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.blacklist-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    border-left: 4px solid var(--primary);
}

.blacklist-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.blacklist-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.blacklist-title {
    flex: 1;
}

.blacklist-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
    line-height: 1.4;
}

.blacklist-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--gray-600);
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}

/* Responsive adjustments for blacklist */
@media (max-width: 768px) {
    .blacklist-list {
        grid-template-columns: 1fr;
    }
    
    .platform-breakdown {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-input {
        width: 100%;
        min-width: unset;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    color: var(--gray-900);
}

.pagination button:hover:not(:disabled) {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .page-info {
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-state {
    text-align: center;
    padding: 60px 20px;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}
